Hi Jesús, Thanks for reaching out to us.
You may get the account hierarchy of your manager account, by building a Google Ads Query Language statement to query all the child accounts specified by the client_customer field from CustomerClient, and executing it recursively on the sub-manager accounts. This will allow you to check which accounts are directly linked to your manager account and which are indirectly linked through sub-managers. For more information, you may refer to this document in the Google Ads API. Kindly note that the hierarchical tree of the accounts are built dynamically as the tree structure of the accounts itself is dynamic and keeps changing all the time. It would be impractical to persist all the subtree structure for each node in the tree as the amount of data to be stored would be huge. I would suggest you to use your local cache to save the accounts info that you have retrieved so you don’t have to query them each time. If you still see performance issues, you may provide us with the complete request and response logs with the request-id, so our team can better check. If you are using a client library, you may first enable logging by navigating to the Client libraries > Your client library (ex. Java) > Logging documentation, which you can access from this link. You may then send the requested information via the Reply privately to author option. If this option is not available, you may send the details directly to our [email protected] alias instead. Regards, Yasar Google Ads API Team ref:_00D1U1174p._5004Q2NVhKa:ref -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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 [email protected] To unsubscribe from this group, send email to [email protected] 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-api/wGB_u000000000000000000000000000000000000000000000QZSCCI00YftbgVoWRIOHdioy_qhcSw%40sfdc.net.
