You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to AdWords API Forum
How to load all customers campaigns from the level of manager account? While trying to load it, the `CampaignService` return none of them.
Do i need to start new session for each customer account to load them separately?
Shwetha Vastrad (AdWords API Team)
unread,
Aug 3, 2017, 1:59:49 PM8/3/17
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to AdWords API Forum
Hi,
Since Campaigns are associated with AdWords client accounts, and not AdWords manager accounts, 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 can be used to get account information, and if 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 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.
Regards, Shwetha, AdWords API Team.
ihsgde...@gmail.com
unread,
Aug 8, 2017, 10:36:34 AM8/8/17
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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.
Thanks,
Jerry
Shwetha Vastrad (AdWords API Team)
unread,
Aug 8, 2017, 2:04:57 PM8/8/17
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to AdWords API Forum
Hi Jerry,
You need to run this example against an AdWords client account, not a manager account. You need to provide the list of CampaignIds in the CustomerSyncSelector. Since Campaigns are associated with client accounts, CampaignService will not return any results and you'll get a CustomerSyncError if you run this example against a manager account.