Confusion Over Account Levels And Programatically Obtaining Account Information

19 views
Skip to first unread message

dke...@giantmedia.com

unread,
Dec 19, 2017, 4:17:07 AM12/19/17
to AdWords API Forum
It seems to me that in the given test account set up, there are actually 3 layers, not two.

When the user authenticates you get your tokens that are for that user's account NOT the manager account below it.

Using the tokens and the Customer service you can get a list of customers which has the manager account and from there you can get the client customer id of that manager account.

However, there exists no way that I can see to get the client customer id of the AUTHENTICATED ACCOUNT. Again, this is different from the manager account or the client account below that.

This id is the one needed to use the Managed Customer service. So, I'm stuck not being able to use the Managed Customer service because I can't get my own client customer id.

How can I go about getting this information programmatically/via API?

Thanks

Bharani Cherukuri (AdWords API Team)

unread,
Dec 19, 2017, 2:20:27 PM12/19/17
to AdWords API Forum
Hello, 

The Customerservice.getCustomers provides information about your accounts. The getCustomers() method takes no arguments and returns details of all the customers directly accessible by the user authenticating the call. If no clientCustomerId is specified in a request, the response will contain multiple entries if more than one account is directly accessible by the authenticated account.

On the other hand, ManagedCustomerService can be used to determine the client accounts linked to a manager account. Code snippets for these services can be found here. If you're still having trouble implementing this, could you enable logging and share the SOAP request and response logs, so I can take a look and assist you further. Please use Reply privately to author option to provide us the details.

Regards,
Bharani, AdWords API Team
Reply all
Reply to author
Forward
0 new messages