Using the Google Ads API, I'm trying to retrieve all of the client accounts under a manager account.
I'm using the
GetCustomerClient method. The documentation for the
CustomerClient resource states that "For a manager, it returns all the customers in its hierarchy and self." This suggests that if I call GetCustomerClient with the manager resource ID as the client, it should return all of the customers at the same time. For example, if my manager ID is 1234567890, I would expect the following to return all of the 20+ customers that are clients:
GetCustomerClient(customers/1234567890/customerClients/1234567890)
Instead, I'm only getting the manager ID back:
resource_name: "customers/1234567890/customerClients/1234567890"
client_customer {
value: "customers/1234567890"
}
hidden {
}
level {
}
Is this the correct approach, or is there another service I should be using to achieve this goal?
Thanks in advance.