AdWords test account setup

482 views
Skip to first unread message

cisc...@gmail.com

unread,
Jul 17, 2015, 3:09:31 PM7/17/15
to adwor...@googlegroups.com
I'm trying to set up a test account to use while my AdWords Developer token is awaiting approval. The documentation says that I need to request a refresh token specifically for my test account... but the normal process I used to get a refresh token is to go through the same OAuth process I used for my production account - do the approval web flow. Which requires client_id. My test account "Account settings" does not have the "AdWords API Center" - how can I get a client_id for my test account? I just used my own personal Google account for a test account - do I need to create another completely new, fresh account to use for a test account?

I tried using the "GetRefreshToken.php" example, but that requires a client_id, and also a code..


Anthony Madrigal

unread,
Jul 17, 2015, 4:20:12 PM7/17/15
to adwor...@googlegroups.com, cisc...@gmail.com
Hello,

In order to make API requests from a test account, you will need to have a developer token (either pending or approved). Once you do, navigate to the Developer Console to create a project, which should give you the client_id.

Regards,
Anthony
AdWords API Team

cisc...@gmail.com

unread,
Jul 17, 2015, 4:33:36 PM7/17/15
to adwor...@googlegroups.com, cisc...@gmail.com
I do have a developer token, I'm awaiting it's approval, so am trying to work with a test account, as directed by the documentation. My question is specifically about the RefreshToken, as described on this page:


Specifically:
"OAuth 2.0 and the test account user

In order to access the test account using OAuth 2.0, you will need to have the test MCC account user grant permission to your client application. Hence, when requesting a refresh token, please make sure you are logged in as the test MCC account user rather than the production MCC account user"

Ok, so I did the following: 
Generated a new client_id/secret for my "main" MCC account.
Used that to get a new access_token/refresh token, logging into my test account in the process


So now I have a refresh token, an access token, and the (unapproved) developer token, and am trying to run the sample report from DownloadCriteriaReport.php. And I get the CUSTOMER_SERVING_TYPE_REPORT_MISMATCH error. Dangit.

andy

Anthony Madrigal

unread,
Jul 17, 2015, 4:43:27 PM7/17/15
to adwor...@googlegroups.com, cisc...@gmail.com
Hey Andy,

The CUSTOMER_SERVING_TYPE_REPORT_MISMATCH means that you are trying to run a report under your MCC account. You will need to modify your clientCustomerId in your properties file so that it is the ID of your AdWords (client) account not the MCC account.

Hope this helps!
Message has been deleted

cisc...@gmail.com

unread,
Jul 17, 2015, 6:40:37 PM7/17/15
to adwor...@googlegroups.com, cisc...@gmail.com
Thanks, Anthony... 

But I guess I'm having a little trouble understanding the relationships. I want to be able to run a report across all the accounts underneath my MCC account... is that possible? When I manually run reports from the MCC window, that's how it seems to work if I don't specify an account. Seems like, if I have to specify an account to run a report with the API, I'm going to have to make a LOT of API calls (our production MCC account currently has 26 AdWords accounts under it, and we're always trying to add more). 

andy

Anthony Madrigal

unread,
Jul 20, 2015, 10:38:09 AM7/20/15
to adwor...@googlegroups.com, cisc...@gmail.com
Hi Andy,

You will not be able to run a report on multiple accounts with a single request. In order to run a report on multiple accounts, you will need to submit a separate report for each account by setting your clientCustomerId header.
Reply all
Reply to author
Forward
0 new messages