Hi Shwetha,

I just checked your code sample. 


is it able to run under MCC account ? I just test it, no any campaign ids 
return. when I set the customer id to my manager account id.


On Friday, August 4, 2017 at 1:59:49 AM UTC+8, Shwetha Vastrad (AdWords API 
Team) wrote:
> 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+:

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
For more options, visit this group at
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 
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