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
> Since Campaigns are associated with AdWords client accounts, and not
> AdWords manager accounts, CampaignService
> 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
> be used to get account information, and if
> 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
> example shows how to use ManagedCustomerService to get the account
> hierarchy under a manager account. Example code in other languages can be
> found here
> 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 email@example.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
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.