Replacement for ManagedCustomerServiceInterface in Google Ads API

37 views
Skip to first unread message

Yosi Kalmanson

unread,
Oct 26, 2021, 7:53:54 AM10/26/21
to AdWords API and Google Ads API Forum
I'm working on migrating from Adwords API to Google Ads API. In order to get the list of accounts with their id and name I was using  ManagedCustomerServiceInterface. 
In Google Ads API the only replacement I found for ManagedCustomerServiceInterface is CustomerServiceClient.listAccessibleCustomers. However it returns only the id. To get the customer/account name and id I have to make additional call to getCustomer per each customer. 
Is there a better way to get all account/customer id and name?

Google Ads API Forum Advisor

unread,
Oct 26, 2021, 10:21:38 PM10/26/21
to yosi...@gmail.com, adwor...@googlegroups.com

Hello Yosi,

Thank you for reaching out to us.

As per this migration guide, the ManagedCustomerService is associated to these 3 API services (CustomerClientLinkService | CustomerClientService | CustomerManagerLinkService). As for your question on getting all account/customer id and name, you can check on this Get Account Hierarchy guide instead.

Hope this helps.

Regards,

Google Logo
Mark Kevin Albios
Google Ads API Team
 


ref:_00D1U1174p._5004Q2QFGfh:ref
Reply all
Reply to author
Forward
0 new messages