Hi Team

27 views
Skip to first unread message

Leonel Pedraza

unread,
Apr 20, 2024, 11:42:36 PM4/20/24
to Google Ads API and AdWords API Forum
I need to obtain the entire inheritance tree of my accounts accessible from Google Ads, I am using the python client library, to obtain the accessible accounts I am using the "list_accessible_customers" function of "CustomerService" and for the inheritance tree the example function that It is included with the client library documentation. The problem lies in the waiting time, one of my accessible accounts is quite extensive and takes too long to obtain the complete tree. What do you recommend to reduce the data loading time? I was reviewing a system that does the same thing and loads the entire inheritance tree of my accounts in just 2.8s while my minimum implementation takes about 1 hour.

Thank´s for your help

Google Ads API Forum Advisor

unread,
Apr 22, 2024, 7:13:07 AM4/22/24
to leopedr...@gmail.com, adwor...@googlegroups.com
Hi,

Thank you for reaching out to the Google Ads API support team.

I understand that the list_accessible_customers function is taking too long to obtain the complete tree. A large inheritance hierarchy can definitely contribute to slow loading times when retrieving the entire account structure using the Google Ads API because the API call needs to traverse each node in the hierarchy, and the more levels there are, the longer it takes to process the request.
 
This message is in relation to case "ref:!00D1U01174p.!5004Q02tPGb0:ref" (ADR-00231934)

Thanks,
 
Google Logo Google Ads API Team


Reply all
Reply to author
Forward
0 new messages