Re: AuthenticationError.OAUTH_TOKEN_INVALID while accessing AdWord API

2015-02-26 Thread Stephen Burrows
at the issue is limited to the values you're passing to the > constructor and we can proceed from there. > > Thanks, > Josh, AdWords API Team > > On Thursday, February 26, 2015 at 2:29:11 PM UTC-5, Stephen Burrows wrote: >> >> If I hardcode a customer client ID, I

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