Re: Can't reuse oauth2 token - gives me OAUTH_TOKEN_INVALID (Ruby client lib)

2013-07-29 Thread Paul Matthews (AdWords API Team)
Hi Matthew, Looking at your response, it seems like your scope is incorrect. Below is an example if I perform the same request. { issued_to: 0-a0a00a00a00aa0aa0aa000aa.apps.googleusercontent.com, audience:

Re: Can't reuse oauth2 token - gives me OAUTH_TOKEN_INVALID (Ruby client lib)

2013-07-25 Thread Matthew Ledom
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,

Re: Can't reuse oauth2 token - gives me OAUTH_TOKEN_INVALID (Ruby client lib)

2013-07-22 Thread Paul Matthews (AdWords API Team)
Hi Matthew, The Ruby OAuth2 infohttps://code.google.com/p/google-api-ads-ruby/wiki/OAuth2 along with the READMEhttps://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

Re: Can't reuse oauth2 token - gives me OAUTH_TOKEN_INVALID (Ruby client lib)

2013-07-22 Thread Matthew Ledom
I was finally able to get it working. I had to merge my stored token values with the loaded config params from the adwords_api.yml file. Trying to figure out how to set the token after the api object was created was causing issues. I used the setup_oauth2.rb example to write the values to my

Re: Can't reuse oauth2 token - gives me OAUTH_TOKEN_INVALID (Ruby client lib)

2013-07-19 Thread Matthew Ledom
I assume Temla that you have since got your code to work. Did you ever figure out what the cause was? I'm experiencing the same issue now. I have updated the gem to the latest. When I authorize I get a new token and we as some other info but when I got to use the token I get the same error:

Can't reuse oauth2 token - gives me OAUTH_TOKEN_INVALID (Ruby client lib)

2012-08-08 Thread Temla
Hi, I'm using the Ruby client library and I have studied the v201206 example named use_oauth2.rb and also the adwords_on_rails application. I can't figure out how to reuse the given token without getting OAUTH_TOKEN_INVALID error. Since it's hard to put a finger on the problem I'm going to

Re: Can't reuse oauth2 token - gives me OAUTH_TOKEN_INVALID (Ruby client lib)

2012-08-08 Thread Danial Klimkin
Hello Temla, What version on google-ads-common are you using? Please try the same code with the latest ads-common from git. See this issue which was recently closed: http://code.google.com/p/google-api-ads-ruby/issues/detail?id=80 -Danial, AdWords API Team. On Wednesday, August 8, 2012