Get a list of Adwords accounts a Google account has access to?

74 views
Skip to first unread message

Nima Gardideh

unread,
Jul 21, 2017, 4:01:15 AM7/21/17
to AdWords API Forum
Hey folks,

Using an OAuth authorized Google account, I'm using the CustomerService.getCustomers endpoint without supplying a customerId but only seeing one account listed.

The authorized account has access to two accounts: a Manager Adwords account (which is the one returned when using getCustomers) and a normal AdWords account (which the user was given Standard permissions to).

Am I doing something wrong here that I don't see the second account when calling getCustomers? Or is it just because I'm using a test account for all of this that it's making it work this way?

Ivan Bautista

unread,
Jul 21, 2017, 5:51:24 AM7/21/17
to AdWords API Forum
Hi Nima,

As per this blog postCustomerService.getCustomers() returns the AdWords accounts associated with the Google account you used to generate your OAuth2 credentials and not child accounts under a manager account.

If you wish to retrieve the client accounts under your manager account, then you may use the ManagedCustomerService.get()Here is a sample code to help you get started with development.

Let me know if this helps or if you need further assistance.

Regards,
Ivan
AdWords API Team

Ivan Bautista

unread,
Jul 21, 2017, 7:13:44 AM7/21/17
to AdWords API Forum
Hi Nima,

Apologies if I misunderstood your question in my first response. 

If you are indeed trying to return the AdWords accounts associated with the Google account that you used to generate your OAuth2 credentials, then could you share to us privately (using reply privately to author option) the SOAP request and response logs captured when executing the CustomerService.getCustomers() as well as the AdWords account Ids in question?

Nima Gardideh

unread,
Jul 23, 2017, 11:16:06 PM7/23/17
to AdWords API Forum
Send a private reply! Thanks for helping out :)

Nima Gardideh

unread,
Jul 30, 2017, 8:08:07 AM7/30/17
to AdWords API Forum
Hey Ivan,

Haven't heard back. This has become a blocker on our end before we submit for Basic Access.

Any word?


On Friday, July 21, 2017 at 6:13:44 PM UTC+7, Ivan Bautista wrote:

Thanet Knack Praneenararat (AdWords API Team)

unread,
Jul 31, 2017, 2:32:07 AM7/31/17
to AdWords API Forum
Hi Nima,

Unfortunately, no updates yet. 
I'm following up this issue and will get back to you when I hear more.

Best,
Thanet, AdWords API Team
Reply all
Reply to author
Forward
0 new messages