Tuesday 24 November 2015

Re: Invalid grant when using Token Refresh

Today we had 2 invalid grants, both authorized yesterday. I did what you said and logged into the account and checked  https://myaccount.google.com/ -> Connected apps & sites -> Manage apps. Both had 'has access to manage your AdWords campaigns'. 

Starting with the first one, I logged into the account and checked access. After that, I attempted to refresh the access token with the supposedly 'invalid' refresh token and to my surprise it worked fine. Got a new access token and was able to make api calls again. Before I logged in and checked the second account I attempted to refresh the access token, but it failed with 'invalid grant'. So, I logged in and checked if we had access, to no surprise we did. After verifying access I attempted to refresh the access token and again it worked fine, no errors. 

In short, both were returning 'invalid grant' and after verifying access both were able to use there refresh tokens to retrieve a new access token; rather than having to re-oauth each.  By the way we are using the .Net client library.

--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/62c0308a-8c5c-44c7-93a6-7474591df91d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment