Python API: No Campaigns Found

19 views
Skip to first unread message

eadan...@currencyfair.com

unread,
Sep 27, 2016, 9:27:00 AM9/27/16
to AdWords API Forum
I am new to both AdWords and it's API. I want to get a list of all campaigns using the Python AdWords library. When I run the get_campaigns.py example it does not find any campaigns. I suspect this may be due to our AdWords account hierarchy. When I run the get_account_hierarchy.py example the API returns our account hierarchy as the MCC account with several sub accounts.

Shwetha Vastrad (AdWords API Team)

unread,
Sep 27, 2016, 2:03:31 PM9/27/16
to AdWords API Forum
Hi,

You will not be able to fetch campaigns from a manager account. Campaigns are associated with AdWords client accounts. If you set clientCustomerId in the API request to the ID of the AdWords accounts under your manager account, you'll be able to get the campaigns associated with that account. 

Regards,
Shwetha, AdWords API Team.
Reply all
Reply to author
Forward
0 new messages