I finally got my test account working. The setup should be as follows:

api.adwords.refreshToken
This should be from the test account, after doing the two-step oAuth 
handshake.

api.adwords.clientId
This should be from the test account.  Create an api project at 
https://cloud.google.com/console, then set up a client id under "APIs and 
Auth" -> Credentials -> Create new ClientID.

api.adwords.clientSecret
Same as above.

api.adwords.clientCustomerId
This is the customer id of an account under the test MCC, not the id of the 
test MCC itself.  You will need to create an account under the test MCC in 
adwords.  Accounts -> Create account.

api.adwords.userAgent
I don't believe this is necessary, but I'm using the email address of the 
MCC account.

api.adwords.developerToken
This is the developer token from a NON-test MCC account.  Does not need to 
be approved.

So, in short, make sure everything is from the test account, except the 
developer token.  In order to help out everyone else, here are some 
potential pitfalls I ran into that I ran into:

Attempting to link Test MCC with Production MCC, "The following customer 
IDs had errors", "An error occurred. Please try again later"...
It is not necessary to link your accounts -- the Test MCC should remain 
unlinked from the MCC you are getting the developer token from.  

400 Bad Request / "error" : "invalid_grant":
Make sure that you are using a valid developer token.  This should be the 
token in your Production account under "My Account" -> Adwords API center
QuotaCheckError.INVALID_TOKEN_HEADER:
Make sure that you are using the actual refresh token, which is the final 
step of the oAuth handshake, NOT the intermediate token that you receive in 
the browser callback.  Copy the intermediate token back into the 
application ("Type the code you received here: ") to receive the refresh 
token.

QuotaCheckError.INCOMPLETE_SIGNUP:
Make sure that you've accepted the terms and conditions and set up billing 
on your account(s).  I'm not sure if its necessary for the test MCC, but I 
just set it up for both and this problem went away.

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
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 adwords-api+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to