Hi Teja,
Thanks for your reply.
I'm happy to hear my suggestion will reach the team.
Your suggestion for using AccountLabels is not possible using the new Ads API I think... There is nog ManagedCustomerService in that API and no AccountLabel methods on the CustomerService.
I'm trying to show the listing of all customers and possible sub-customers available to the connected account. At the moment that's a recursive function where I need to get the CustomerClientLinks for every customer to see if there are sub-customers.
And then I need to get the customer data to retrieve the DescriptiveName.
It takes a lot of call for a large tree and is thus very slow.
If I would also need to get the labels for every customer to see if it's cancelled that would add more calls to the function and make it even slower.
Also I would reach the requests/minute rate limit easily.
I would like to be able to get the complete customers tree in one (paged) request with at least the properties: id, name, hidden, cancelled and something like a parentId.
That way I can make a dropdown selection similar to the customer selector dropdown in the Google Ads UI.
I've also tried querying the data with the Google Ads Query Laguage but it seems to always be in the scope of 1 customer.
Op donderdag 3 januari 2019 21:58:03 UTC+1 schreef Teja Makani: