Hi,
We manage multiple adwords accounts and have been doing so for some time now without seeing this issue before.
When we request a new access token with the refresh token we have saved for a client:
HTTP METHOD: POST
HEADERS: 'content-type': 'application/x-www-form-urlencoded'
BODY: grant_type=refresh_token&client_id=<client_id>&client_secret=<client_secret>&refresh_token=<refresh_token>
( We use python and the request is being constructed and sent by - google/oauth2/_client.py._token_endpoint_request() )
We get the following response:
status: 400
{
"error": "invalid_grant",
"error_description": "Bad Request"
}
Now if we just redo the OAuth entirely for that client account then everything starts working again - so we can be sure the client has not revoked the refresh token from us.
Our OAuth code has not changed in a long while and we cant seem to understand what the issue is.
Could you please advise.
Thanks
Sanjay