Application-only Authentication - Getting Response 408



I am following the documentation to make a application-only authentication but I keep getting a 408 response error code.

I am using python requests to post to to retrieve the bearer access token.

import requests
headers = {'Content-Type': 'application/x-www-form-urlencoded;charset=UTF-8', 'Authorization': 'Basic <<base64 encoded bearer token credentials>>', 'Content-Length': '29', 'Accept-Encoding': 'gzip', 'grant_type': 'client_credentials'}"", headers=headers)

Please advise.

Ads API 403 'Unauthorized Access"

Are you using the Ads API? The standard API does not return an HTTP 408 response code.

I have a simple shell sample for requesting an app-only token here. You may find it a useful guide.


Thanks for the quick reply. I am able to retrieve the bearer access token now and I am using the Ads API.


Hey Andy,

I am getting a response 403 'Unauthorized Access" when accessing this endpoint. “” with the bearer access token. However I am able to retrieve data with this endpoint “

headers = {'Authorization': 'Bearer <<bearer access token from application-only authentication>>'}
requests.get("", headers=headers)

closed #5