Get Manager Client and Customer Client information

50 views
Skip to first unread message

Shivam Kumar

unread,
Mar 15, 2024, 2:05:18 AM3/15/24
to Google Ads API and AdWords API Forum
Hi there, I want to fetch manager client information and customer client information corresponding to each manager client.
I tried to use: 
https://developers.google.com/google-ads/api/samples/get-account-hierarchy

https://github.com/googleads/google-ads-python/blob/main/examples/account_management/list_accessible_customers.py

and 

query = f"""
                    SELECT
                    customer_client.descriptive_name,
                    customer_client.id
                    FROM customer_client
                    WHERE customer_client.level < 1
                """
I am getting both manager client and customer client, I want both separately. Please help me with this. Thank You

Google Ads API Forum Advisor

unread,
Mar 15, 2024, 7:40:55 AM3/15/24
to shiv...@vaticai.com, adwor...@googlegroups.com
Hi,

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

After reviewing your query, I understand that you want to fetch the manager client information and customer client information separately via the API. Kindly note that the customer_client is a link between the given customer and a client customer. CustomerClients only exist for manager customers. All direct and indirect client customers are included, as well as the manager itself. With this, please be informed that getting the manager client information and customer client information separately is not possible via the API. I would recommend you refer to the document Get Account Hierarchy to get more information.
 
This message is in relation to case "ref:!00D1U01174p.!5004Q02rzymr:ref" (ADR-00227384)

Thanks,
 
Google Logo Google Ads API Team


Shivam Kumar

unread,
Mar 15, 2024, 3:21:44 PM3/15/24
to Google Ads API Forum Advisor, adwor...@googlegroups.com
Thank you for your response. 
--

Reply all
Reply to author
Forward
0 new messages