Hi, Please see the following post for a breakdown of which account to use for each of the values in the auth.ini file.
https://groups.google.com/d/msg/adwords-api/-K7DuDOAVEM/9Um-qE4Di3AJ Looking at your list, I see a few issues/questions: 1. The developer token should be your pending developer token from your non-test MCC 2. The clientCustomerId should be a child AdWords account of your test MCC account Let me know if the thread + these suggestions doesn't clear things up for you. Cheers, Josh, AdWords API Team On Wednesday, January 15, 2014 10:26:42 PM UTC-5, [email protected] wrote: > > I can't get a refresh token with getRefreshToken.php in the example, but I > did get the auth code. > > Here's more information; > * I created a test MCC and two accounts in the MCC. > * I got my developer token from my test MCC and put it in auth.ini > * I got my clientCustomerId from an account in my MCC and put it in > auth.ini > * I got my client_id and client_secret which I made in the Google console > and put it in auth.ini (it's an "installed program") > * I am running getRefreshToken.php from the console. I copied the URL in > the browser, granted access and got my auth code. > * I now put the auth code in the console and I get: > Your OAuth2 Credentials are incorrect. > Please see the GetRefreshToken.php example. > { > "error" : "invalid_grant", > "error_description" : "Invalid code." > } > -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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.
