V201409, How to get a full list of accounts via ManagedCustomerService

165 views
Skip to first unread message

Liqun Chen

unread,
Nov 20, 2014, 10:01:52 AM11/20/14
to adwor...@googlegroups.com
After upgraded to V201409, for all request, we need to provide customer id, otherwise you get CLIENT_CUSTOMER_ID_IS_REQUIRED, but you provided a valid customer id, only return this customer/account.
Now I am not able to get a full list of accounts, please advise.



Josh Radcliff (AdWords API Team)

unread,
Nov 20, 2014, 4:49:55 PM11/20/14
to adwor...@googlegroups.com
Hi,

You can get the full list of accounts under an MCC by setting clientCustomerId to your MCC's customer ID and running the GetAccountHierarchy.java example.

To get the customer ID of the authenticated user (derived from your OAuth credentials) you can use CustomerService.get -- that's the one service that does not require clientCustomerId (see the release notes).

Cheers,
Josh, AdWords API Team

Liqun Chen

unread,
Nov 21, 2014, 9:45:38 AM11/21/14
to adwor...@googlegroups.com
It does work as you suggested now. thanks!
Reply all
Reply to author
Forward
0 new messages