Hello,

I am trying to debug why my access tokens are invalid. When using them with 
the API, I get the following error: AuthenticationError.OAUTH_TOKEN_INVALID

I did some research, but I couldn't find a reason why that would be the 
case (I don't think the common issues are applicable in this case). I am 
also sending along a refresh token with my requests. I cannot seem to 
figure out a pattern as to when the tokens yield this error. For instance, 
I tried to get a completely fresh access + refresh token, and use it 
immediately for a request, but also got this error.

The application is a web application which uses the oauth2 flow. Since I am 
trying to debug this in an application that I didn't write myself (nor have 
I seen the code before now), I still have a bit of debugging to do. But I 
can verify that the oauth2 flow completes without errors, and that both an 
access token and refresh token is saved as a result. The problem then 
occurs whenever I try to use these tokens for API requests using the Google 
Ads API Client Library for PHP 
(https://github.com/googleads/googleads-php-lib). Everything used to work, 
but suddenly things stopped working without any code being changed at all. 
>From what I was told, the problems started occurring sometime in January.

I have tried to take a completely fresh access token to verify it on the 
below URL.

https://www.googleapis.com/oauth2/v2/tokeninfo?access_token=[TOKEN]

But I just get the following response.

{ "error_description": "Invalid Value" }

Like I said, I have to dive a bit deeper in my debugging, but does anyone have 
any pointers as to what could possibly cause this? Anything that could give me 
a clue would be helpful.


Thanks a lot in advance.

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/a0b5d3f2-c906-4aeb-ac05-cb441b8cb490%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
  • Invalid access t... Bo Andersen
    • Re: Invalid... 'Vishal Vinayak (Adwords API Team)' via AdWords API Forum

Reply via email to