migrating from AdWordsAPI, no able to execute get_campaigns.py

52 views
Skip to first unread message

Felix Garcia

unread,
Dec 10, 2020, 6:30:34 AM12/10/20
to AdWords API and Google Ads API Forum
hello everyone, im kinda a newbie in the AdWordAPI and GoogleAdsAPI

I successfully obtained the developer token, client_id, client_secret, and i use the customer_id of test account (not manager test account) and everything works correctly, list campaigns, create campaigns, create groups, bid modifiers, etc.

I am using the same developer_token, client_id, client_secret and customer_id in the yaml file of GoogleAdsApi. No matter what I do, when I try to run get_campaigns.py I always get the same error message "ValueError: The specified login customer ID is invalid. It must be a ten digit number represented as a string, i.e." 1234567890 ""



Note that the customer id parameter requirement message is not even prompted

my customer id (of the test manager account) on yaml file



any idea of  what i'm doing wrong?

Felix Garcia

unread,
Dec 10, 2020, 6:53:57 AM12/10/20
to AdWords API and Google Ads API Forum
sorry, dont know what happened with the screens on firts message
customer_id.png
error.png

Google Ads API Forum Advisor Prod

unread,
Dec 14, 2020, 2:59:51 PM12/14/20
to fg.sos...@gmail.com, adwor...@googlegroups.com
Hi Felix,

You can try to add both the customer id (child account) and login customer id (manager account) in your yaml file. Please be sure that your credentials were created from the test manager account level. If you face any issues, you can reply privately to author your full request and response so that I can take a closer look.

Regards,
Anthony
Google Ads API Team

Google Logo
Anthony
Google Ads API Team
 


ref:_00D1U1174p._5004Q28ovNe:ref
Reply all
Reply to author
Forward
0 new messages