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.