Re: AuthenticationError.OAUTH_TOKEN_INVALID while accessing AdWord API

2015-02-27 Thread Josh Radcliff (AdWords API Team)
Hi Stephen, Thanks for clarifying - this makes a lot more sense now. :) Cheers, Josh, AdWords API Team On Thursday, February 26, 2015 at 8:04:00 PM UTC-5, Stephen Burrows wrote: > > For some reason my responses got posted in reverse order... as mentioned > above, the issue ended up being that I

Re: AuthenticationError.OAUTH_TOKEN_INVALID while accessing AdWord API

2015-02-26 Thread Stephen Burrows
For some reason my responses got posted in reverse order... as mentioned above, the issue ended up being that I was using the auth code instead of first getting an actual access token. On Thursday, February 26, 2015 at 2:18:32 PM UTC-8, Josh Radcliff (AdWords API Team) wrote: > > Hi, > > To sim

Re: AuthenticationError.OAUTH_TOKEN_INVALID while accessing AdWord API

2015-02-26 Thread Josh Radcliff (AdWords API Team)
Hi, To simplify things, have you tried setting the values in your auth.ini file, and then using the no-args *AdWordsUser* constructor? If that works, then we know that the issue is limited to the v

Re: AuthenticationError.OAUTH_TOKEN_INVALID while accessing AdWord API

2015-02-26 Thread Stephen Burrows
Just tried again with a test account - got the same error. On Thursday, January 8, 2015 at 7:18:45 AM UTC-8, Josh Radcliff (AdWords API Team) wrote: > > Hi, > > Could you provide some more details? For example, are you using one of the > client libraries, or just constructing the OAuth and API r

Re: AuthenticationError.OAUTH_TOKEN_INVALID while accessing AdWord API

2015-02-26 Thread Stephen Burrows
My issue ended up being that I was using the authorization code as the access token. Ugh. For future reference, don't forget this step: $OAuth2Handler = $user->GetOAuth2Handler(); $user->SetOAuth2Info($OAuth2Handler->GetAccessToken($user->GetOAuth2Info(), $_GET['code'], REDIRECT_URI)); On Thur

Re: AuthenticationError.OAUTH_TOKEN_INVALID while accessing AdWord API

2015-02-26 Thread Stephen Burrows
If I hardcode a customer client ID, I get the same error when I finally try to download the report. On Thursday, January 8, 2015 at 7:18:45 AM UTC-8, Josh Radcliff (AdWords API Team) wrote: > > Hi, > > Could you provide some more details? For example, are you using one of the > client libraries

Re: AuthenticationError.OAUTH_TOKEN_INVALID while accessing AdWord API

2015-02-26 Thread Stephen Burrows
I just ran into this error as well. I tried to go to the URL you provided, Josh, and got the following error: { "error": "invalid_token", "error_description": "Invalid Value" } Which is weird since I *just* used that token to generate a refresh token. Here's my code (essentially): $oauth2Inf

Re: AuthenticationError.OAUTH_TOKEN_INVALID while accessing AdWord API

2015-01-08 Thread Josh Radcliff (AdWords API Team)
Hi, Could you provide some more details? For example, are you using one of the client libraries, or just constructing the OAuth and API requests manually? You mentioned that it works after your second attempt -- are you referring to your second attempt to get an access token using a refresh tok

Re: AuthenticationError.OAUTH_TOKEN_INVALID while accessing AdWord API

2015-01-07 Thread Van Sereyboth
Hi I keep getting the above error while writing rspec in RoR. The first attempt to request is always causing me this mentioned error. the second attempt is working so fine without any glitches. here is how I get after testing my access_token: { - scope: "https://adwords.google.com/api/adword

Re: AuthenticationError.OAUTH_TOKEN_INVALID while accessing AdWord API

2014-04-17 Thread Josh Radcliff (AdWords API Team)
Hi, The error code AuthenticationError.OAUTH_TOKEN_INVALID indicates that there's an issue with the access token in the *Authorization* header. It usually means the token has expired, which you can confirm via the URL below after appending your *access* (not refresh) token to the end. https://

AuthenticationError.OAUTH_TOKEN_INVALID while accessing AdWord API

2014-04-16 Thread Sandeep Gupta
HI This is Sandeep here, i am trying to integrate Google Adword API to utilize it better way, but i am getting below error. faultString: [AuthenticationError.OAUTH_TOKEN_INVALID @ ; trigger:''] i have generated CLient ID, Client secret and Refresh token and added these values in ads.prop