Using the Google Ads API, I'm trying to retrieve all of the client accounts 
under a manager account.

I'm using the GetCustomerClient 
<https://developers.google.com/google-ads/api/reference/rpc/google.ads.googleads.v0.services#google.ads.googleads.v0.services.CustomerClientService.GetCustomerClient>
 method. 
The documentation for the CustomerClient 
<https://developers.google.com/google-ads/api/reference/rpc/google.ads.googleads.v0.resources#google.ads.googleads.v0.resources.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(c 
<https://developers.google.com/google-ads/api/reference/rpc/google.ads.googleads.v0.services#google.ads.googleads.v0.services.GetCustomerClientRequest>
ustomers/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.

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/508a4969-11f2-441b-bfa9-972b83194d97%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
  • ... George G
    • ... 'Luis Xander Talag (AdWords API Team)' via AdWords API and Google Ads API Forum

Reply via email to