Wednesday 25 November 2015

Re: Invalid grant when using Token Refresh

Hi,

Thanks for providing all of those details. Since you found that the tokens that were giving invalid grant eventually worked again, this suggests a temporary issue with generating access tokens. When you encounter these failures, do you wait (with exponential backoff) and retry? I suspect that you'll find that waiting and retrying will fix this in almost all cases.

Regarding the URLs, the Auth Url looks correct, but according to the latest OAuth2 guide, ideally you should use https://www.googleapis.com/oauth2/v3/token to retrieve new access tokens. However, I confirmed that the URL you are using does still work, so I don't think that's the source of this problem.

Thanks,
Josh, AdWords API Team

On Wednesday, November 25, 2015 at 8:43:17 AM UTC-5, jnewman0817@gmail.com wrote:
Just noticed our urls are different then what I posted.

Auth Url:

Token Url:

--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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+unsubscribe@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+unsubscribe@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/7d26ab23-bc16-448d-85db-629c65033ccd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment