I'm having the same problem.
I did the following for a test account :
* download the PHP API library
* use developer token from production account
* get "native" client ID + client secret
* add client ID + client secret to API library
* run the "GetRefreshToken" file to get a refresh token
* add refresh token to API library
I managed to create a simple PHP app using these settings.
Then, my developer key was approved.
I got the "native" client ID + client secret for the production account as
well and generated a refresh token. I followed the same procedure I
followed with my test account.
Yet, I still keep getting the following error : An error has occurred: {
"error" : "invalid_grant" }
I repeated the process several times. I have no idea what could be wrong...
Op vrijdag 8 november 2013 15:19:56 UTC+1 schreef Anash P. Oommen (AdWords
API Team):
>
> Hi Naman,
>
> The problem is that invalid grant is a generic error that says your OAuth
> signup failed. It doesn't give any more details, and that is by design.
> That makes it all the more difficult to debug the issue.
>
> Let's start one step at a time. I'm sure you might have tried these steps
> before, but it would be nice if you could do this again from beginning and
> help me figure out at what stage the code fails:
>
> 1. Were you able to able to run the offline credentials application and
> generate a refresh token and access token?
> 2. Did you copy this refresh token to your ads.properties file and run a
> Java code example?
> 3. Could you double-check if you don't have any trailing spaces on the
> refresh token in the ads.properties?
> 4. When you run code example, does the refresh token belong to the
> customer pointed to by clientCustomerId, or its parent / ancestor MCC?
>
> Cheers,
> Anash P. Oommen,
> AdWords API Advisor.
>
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://googleadsdeveloper.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 [email protected]
To unsubscribe from this group, send email to
[email protected]
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 [email protected].
For more options, visit https://groups.google.com/groups/opt_out.