Hi,

Since Campaigns are associated with AdWords client accounts, and not 
AdWords manager accounts, CampaignService 
<https://developers.google.com/adwords/api/docs/reference/v201705/CampaignService>
 will 
not return any results if the target account is an AdWords Manager account. 
You need to set the clientCustomerId in the request to the customerId of a 
non-manager account. The ManagedCustomerService 
<https://developers.google.com/adwords/api/docs/reference/latest/ManagedCustomerService>
 can 
be used to get account information, and if ManagedCustomer.canManageClients 
<https://developers.google.com/adwords/api/docs/reference/latest/ManagedCustomerService.ManagedCustomer#canManageClients>
 is 
true then the account is a manager account. You can then submit a separate 
request for each client account by setting the clientCustomerId 
appropriately. The GetAccountHierarchy 
<https://github.com/googleads/googleads-java-lib/blob/master/examples/adwords_axis/src/main/java/adwords/axis/v201705/accountmanagement/GetAccountHierarchy.java>
 Java 
example shows how to use ManagedCustomerService to get the account 
hierarchy under a manager account. Example code in other languages can be 
found here <https://developers.google.com/adwords/api/docs/clientlibraries>.

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/35f54c40-22c7-499c-8c11-c5b2f8c8d570%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
  • Load campaigns ... Krzysztof Trzos
    • Re: Load c... 'Shwetha Vastrad (AdWords API Team)' via AdWords API Forum
      • Re: Lo... ihsgdeveloper
        • Re... 'Shwetha Vastrad (AdWords API Team)' via AdWords API Forum

Reply via email to