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: > > Hello Marc, > > For now there is no way to identify the canceled accounts via API. I will > let my team know regarding your suggestion and update you once I have more > information. Meanwhile you could use AccountLabels > <https://developers.google.com/adwords/api/docs/reference/v201806/ManagedCustomerService.AccountLabel> > to > see the cancelled accounts as an alternative way to identify them via the > API as mentioned on that thread > <https://groups.google.com/forum/#!topic/adwords-api/NC5vIw0_Shs>. Also, > you could keep an eye on our blog for information related to future > releases and latest versions. > > Regards, > Sai Teja, Google Ads API Team > > On Thursday, January 3, 2019 at 6:23:41 AM UTC-5, Marc Selman wrote: >> >> There was a question in this forum earlier about the Adwords API >> returning cancelled accounts: >> https://groups.google.com/forum/#!topic/adwords-api/NC5vIw0_Shs >> >> I'm using the new Ads API (v0.7) and when retieving CustomerClientLinks >> I'm also receiving cancelled accounts. >> There is no way to identify whether an account is cancelled or not. >> I do receive a 'hidden' parameter but not a 'cancelled' parameter. >> In the Google Ads UI I can select whether I want to show hidden or >> cancelled accounts or not. But there seems to be no way to do that with the >> API. >> >> Since the new Ads API is still being built will there be a field added to >> identify whether an account is cancelled or not? >> > -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our blog: https://googleadsdeveloper.blogspot.com/ =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ You received this message because you are subscribed to the Google Groups "AdWords API and Google Ads API Forum" group. To post to this group, send email to adwords-api@googlegroups.com To unsubscribe from this group, send email to adwords-api+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/adwords-api?hl=en --- You received this message because you are subscribed to the Google Groups "AdWords API and Google Ads API Forum" group. To unsubscribe from this group and stop receiving emails from it, send an email to adwords-api+unsubscr...@googlegroups.com. Visit this group at https://groups.google.com/group/adwords-api. To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-api/bf174ab4-ec0f-4e98-8c9b-4a6a95429673%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.