Hi, 

You need to use CustomerService.getCustomers() 
<https://developers.google.com/adwords/api/docs/reference/v201705/CustomerService#getcustomers>
 method 
without setting the clientCustomerId in the request header as shown here 
<https://github.com/googleads/googleads-dotnet-lib/blob/master/examples/AdWords/CSharp/v201705/Extensions/AddSitelinks.cs#L69>
 to 
get the list of accounts directly accessible by the authenticated user 
account. If the account returned in the response is a manager account (
canManageClients 
<https://developers.google.com/adwords/api/docs/reference/v201705/CustomerService.Customer#canmanageclients>
 is 
true), you need to use ManagedCustomerService 
<https://developers.google.com/adwords/api/docs/reference/latest/ManagedCustomerService>
 to 
get the list of accounts under this manager account. The 
GetAccountHierarchy.cs 
<https://github.com/googleads/googleads-dotnet-lib/blob/master/examples/AdWords/CSharp/v201705/AccountManagement/GetAccountHierarchy.cs>
 example 
shows how to use ManagedCustomerService to get the account hierarchy under 
an AdWords Manager account. 

Regards,
Shwetha, AdWords API Team.

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords 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 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/6b74c6f0-a944-4314-a7c7-a02fcb3937ec%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
  • How can find Ma... adwords . test . zinfi
    • Re: How ca... 'Shwetha Vastrad (AdWords API Team)' via AdWords API Forum

Reply via email to