get account hierarchy issue

32 views
Skip to first unread message

Frank Harvey McManus

unread,
Jan 5, 2021, 12:56:12 PM1/5/21
to AdWords API and Google Ads API Forum
Hi I was getting this error message in Python when trying to fetch campaigns for our MCC account:

message: "Metrics cannot be requested for a manager account. To retrieve metrics, issue separate requests against each client account under the manager account."

So, I am trying to use the get_account_hierarchy.py example from the google-ads-python code on git - my question is:

Where do I add in my login customer id in order to run the code?

I am not familiar with arge.parser and I don't see where/how to add this as an argument. 

Google Ads API Forum Advisor Prod

unread,
Jan 5, 2021, 10:27:52 PM1/5/21
to fr...@thefrankharvey.com, adwor...@googlegroups.com
Hi Frank,

Thank you for reaching out.

The login-customer-id should be specified in the properties file along with other details such as your OAuth2 credentials and developer token.

For the Python configuration of the said properties file, you may reach out to the Python client library owners, via this link, for further guidance.

Best regards,

Google Logo
Peter Laurence Napa Oliquino
Google Ads API Team
 


ref:_00D1U1174p._5004Q2AHdAK:ref

Frank Harvey McManus

unread,
Jan 7, 2021, 5:02:07 PM1/7/21
to AdWords API and Google Ads API Forum
Thank you!
Reply all
Reply to author
Forward
0 new messages