>From further investigation, it appears to me this may be related to the CustomerClient records not properly filtering based on inactive/canceled status. I see from other postings on the forum that a feature request has been added to support this, so I'm hoping that a future release will fix this.
In the meantime, the "workaround" I have found is to get all the CustomerClients, then loop through them one by one and try to GetCustomer. If it's inactive/canceled I get an unauthorized exception returned instead of receiving the customer info, so that seems to be how I can filter them out for now. This is a non-ideal solution, as it requires me to make MANY additional calls to the API (one per account, including inactive ones), and getting my whole account hierarchy takes 12-15 minutes (for ~1100 customer/clients, but over 2300 when inactives are included in the count). Looking forward to a fix to include this status in the object so it can be used for filtering, and consistent filtering across objects (Customer, CustomerClient, CustomerClientLink). On Wednesday, May 1, 2019 at 8:06:32 AM UTC-7, googleadsapi-forumadvisor wrote: > > Hello Jordan, > > The ListAccessibleCustomers will return the list of accounts that are > directly accessible through the OAuth credentials that you're using. The > CustomerClient > <https://developers.google.com/google-ads/api/reference/rpc/google.ads.googleads.v1.resources#google.ads.googleads.v1.resources.CustomerClient> > will > return the complete hierarchy of the account specified. > > The customer_client_link will return the customer client link > relationship. If you're specifying the manager account, this should return > the direct links to that MCC. If you're seeing a discrepancy, could you > please share the request and response logs to check this further? You can > share the details privately via Reply privately to author option. > > Regards. > Bharani, Google Ads API Team > > =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ > Also find us on our blog and discussion group: > https://ads-developers.googleblog.com/search/label/google_ads_api > https://developers.google.com/adwords/api/community/ > =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ > -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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/e0091e43-8e33-4cb2-92ac-3d6545890e8b%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.