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'
URI: https://accounts.google.com/o/oauth2/token
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

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/01d6dd31-45ee-4e91-9a17-ec53966f271d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
  • ... sanjay
    • ... sanjay
    • ... 'Milind Sankeshware (AdWords API Team)' via AdWords API and Google Ads API Forum
      • ... Sanjay Hallan
        • ... Sanjay Hallan
      • ... sanjay

Reply via email to