Why doesn't the CustomerClientService return all clients?

20 views
Skip to first unread message

George G

unread,
Jan 7, 2019, 7:57:27 PM1/7/19
to AdWords API and Google Ads API Forum
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.

Luis Xander Talag (AdWords API Team)

unread,
Jan 7, 2019, 10:47:55 PM1/7/19
to AdWords API and Google Ads API Forum
Hi George,

Yes, the CustomerClientService.GetCustomerClient() method should be the right way to pull the customers under your MCC account as stated on the CustomerClient's guide. However, to further investigate this, could you provide your MCC ID so I could take a look at my end? Please reply via Reply privately to author.

Thanks and regards,
Luis
AdWords API Team
Reply all
Reply to author
Forward
0 new messages