Getting the Manager Account of a specific customer id with code

27 views
Skip to first unread message

Andreas Chouliaras

unread,
Jun 12, 2025, 12:54:59 PMJun 12
to Google Ads API and AdWords API Forum
Hello,

Is there a way to get the manager account of a specific customer id with code?

I would like to do it with Python. 

The user has gone through Google OAuth.

Thank you.

Google Ads API and AdWords API Forum

unread,
Jun 13, 2025, 3:46:53 AMJun 13
to Google Ads API and AdWords API Forum
Hi,

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

Based on the information provided, I understand that you are trying to retrieve the manager account ID from your client account using the Google Ads API. I would recommend you to use the customer_manager_link report to fetch the manager account ID of your client account using the Google Ads API. 

SELECT customer_manager_link.manager_customer FROM customer_manager_link

I would recommend you to refer to this sample Python code as it explains on how to retrieve the data using the Google Ads API. Similarly, you can modify the code with the query which I have provided and you can retrieve the manager account details from the Google Ads API. You can use the search or searchStream methods in making the API calls while retrieving the data. Additionally, you can utilize the Google Ads Query Builder and Query Validator to build and validate the queries for retrieving the data from the Google Ads API. 

Thanks & Regards,
Google Ads API Team. 

Reply all
Reply to author
Forward
0 new messages