Getting API access to a Google Ads testing account

37 views
Skip to first unread message

Milan van Dijck

unread,
Jun 3, 2019, 6:34:10 AM6/3/19
to AdWords API and Google Ads API Forum
I have created an Ad Manager production account and applied for a developer token. I then created an Ad manager test account on a different email address. 

I used the PHP Authentication/AuthenticateInStandaloneApplication.php example to get a refresh token. During this process I authenticated using the ad manager testing account. I added the information to the settings file and added it to my home directory.

For some reason when executing the BasicOperations/GetCampaigns.php it tells me that I don't have access to the client ID of the testing account.

When running the AccountManagements/ListAccessibleCustomers.php example it only shows the production management account.

I've been breaking my brain over this for a few days, how do I access my testing account with the production developer token?

Google Ads API Forum Advisor Prod

unread,
Jun 3, 2019, 12:21:43 PM6/3/19
to mi...@livewallgroup.com, adwor...@googlegroups.com
Hello Milan, 

Could you please confirm if you're referring to the Ad Manager account or the Google Ads account? If you're using the Google Ads account, could you please share the error logs so I can take a look at the error you're receiving? The CustomerService.ListAccessibleCustomers will return the customers directly accessible by the user authenticating the call. Could you please share the email address you're using to generate the OAuth credentials? You may share the details privately via Reply privately to author option.

Regards,
Bharani, Google Ads API Team

ref:_00D1U1174p._5001UBl8ON:ref

Google Ads API Forum Advisor Prod

unread,
Jun 4, 2019, 10:36:52 AM6/4/19
to mi...@livewallgroup.com, adwor...@googlegroups.com
Hello Milan,

Thank you for sharing the details privately. If you are making the API calls using the OAuth credentials from a manager account and are accessing a related customer account, you will need to set the login-customer-id header to the customer ID of the manager account, removing any hyphens in the ID. Please refer to this blog post as a reference. Could you please make sure that you're adding the manager account CID?
Reply all
Reply to author
Forward
0 new messages