Hello,

About 3 weeks ago we started seeing this error when we refresh the access 
token for many random accounts, {   "error" : "invalid_grant" }. We never 
had any problems refreshing access tokens up until now. Also, not all 
accounts are having problems refreshing their tokens; many refresh just 
fine. To temporarily fix the issue we have been reauthorizing each account, 
but other accounts start to have the same problem. The only information I 
could find on the forum is that the refresh token has manually been 
revoked, which doesn't make sense to me. I've read through the 
documentation at 
"https://developers.google.com/adwords/api/docs/guides/authentication"; and 
it looks like our TokenUrl, AuthUrl and Scope are up to date. Any help is 
greatly appreciated, thanks.
Get Authorization Code:

https://accounts.google.com/o/oauth2/auth?client_id=XXXXX&redirect_uri=XXXXXX&scope=
https://www.googleapis.com/auth/adwords
&response_type=code&access_type=offline&approval_prompt=force";



Below is an example of the url and parameters we are using to retrieve 
initial access and refresh token:

https://www.googleapis.com/oauth2/v3/token?code=XXXXXXXXXXXXX&client_id=XXXXXXXXX&client_secret=XXXXXXXXX&grant_type=authorization_code&redirect_uri=XXXXXXXX



Below is an example of the url and parameters we are using to refresh 
access tokens:

https://www.googleapis.com/oauth2/v3/token?refresh_token=XXXXX&client_id=XXXXX&client_secret=XXXXX&grant_type=refresh_token

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords 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 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 http://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/f73517ab-ffb3-4278-bab4-880fe8d005d4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to