Hello,
Thank you for writing to us regarding your concern. It is only possible to get the account hierarchy using the customer_client resource via API. Unfortunately, we do not have any service in Google Ads API that you could use to get the account hierarchy by making a call from your App Scripts. However, great news is that, the feature request for your concern is already raised within our team. Please keep an eye on our blog post for future updates and announcements.
Regards,
Nikisha Patel, Google Ads API Team
Hello,
We already have a feature request raised for your concern internally. Please keep an eye on our blog post for future updates and announcements.
Regards,
Nikisha Patel, Google Ads API Team
Hi Ky, you must start with some customer Id in order to perform the search request. I would imagine that this would be the Id of your root manager account. The customer_client resource will then give you all of the accounts that are lower in the account hierarchy, even if there are multiple levels in that hierarchy. The response is flattened, as I mentioned, so you won't be able to see the hierarchy, just all of the accounts in the hierarchy. However, you can request the customer_client.level or customer_client.manager to piece this together client-side.
Best,