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:
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,
Hi Matthew,
Looks like the access_token (it expires in one hour) was issued at
2013-07-19 14:56:06 -0400.
So at the time you made a request, the access token seemed to expire.
If you make the oauth token request in offline mode, the response should
contain refresh_token (that never expires).
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
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
Thanks I would like to know the correct way to do this. I have not found an
example the uses a refresh token that is stored in a db. I have seen the
setup_oauth2.rb example where the refresh token is written to a file.
Creating a new AdwordsApi::Api with the yml file and setting credentials
Hi,
Looks like you are already talking with the ruby library maintainer in
another mail thread.
Please update the thread about it.
Best,
- Takeshi, AdWords API Team
On Tuesday, July 23, 2013 2:53:29 AM UTC+9, Matthew Ledom wrote:
Thanks I would like to know the correct way to do this. I
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:
I keep receiving this error when I try to use a service. In this instance
I'm use the campaign service. I had everything working with ClientLogin and
found that Reports are only supported with OAUTH2 so I'm trying to get that
implemented.
I have setup my app to retrieve a offline token via the
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
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
11 matches
Mail list logo