I deployed my working setup to a staging environment and now I get 
the OAUTH_TOKEN_INVALID issue. I have checked the tokeninfo service and it 
says its a valid token. I pasted the  output below. What are some reasons 
for invalid tokens?

{
   
   - issued_to: "106...96.apps.googleusercontent.com",
   - audience: "106...96.apps.googleusercontent.com",
   - user_id: "116...117",
   - scope: "https://www.googleapis.com/auth/userinfo.email 
   https://www.googleapis.com/auth/plus.me";,
   - expires_in: 2589,
   - email: "adwords...@test.com",
   - verified_email: true,
   - access_type: "offline"
   
}

On Monday, July 22, 2013 9:57:59 AM UTC-4, Paul Matthews (AdWords API Team) 
wrote:
>
> Hi Matthew,
>
> The Ruby OAuth2 
> info<https://code.google.com/p/google-api-ads-ruby/wiki/OAuth2> along 
> with the 
> README<https://code.google.com/p/google-api-ads-ruby/source/browse/adwords_api/README#31>
>  should 
> explain all the steps for configuring your client. But it's worth testing 
> the setup_oauth2.rb 
> example<https://code.google.com/p/google-api-ads-ruby/source/browse/adwords_api/examples/v201306/misc/setup_oauth2.rb>,
>  
> to see if that resolves the issue.
>
> Finally, if you're receiving a token, but when used it responds with 
> OAUTH_TOKEN_INVALID, we recommend checking your token with the tokeninfo 
> service<https://developers.google.com/accounts/docs/OAuth2Login#validatinganidtoken>.
>  
> Once you've received a token response, you can send it to the tokeninfo 
> service, for information on the token. See below for an example.
>
> https://www.googleapis.com/oauth2/v1/tokeninfo?id_token=*<TOKEN 
> HERE>*<https://www.googleapis.com/oauth2/v1/tokeninfo?id_token=>
> .
>
> Regards,
>
> - Paul, AdWords API Team.
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://adwordsapi.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

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.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to