get_account_hierarchy in google-ads-python library not working

16 views
Skip to first unread message

Frank Harvey McManus

unread,
Jan 7, 2021, 5:01:57 PM1/7/21
to AdWords API and Google Ads API Forum
Hi,

I'm trying to run the get_account_heirarchy.py example and I keep running into this error:
Traceback (most recent call last):
  File ".\get_account_hierarchy.py", line 202, in <module>
    main(google_ads_client, args.login_customer_id)
  File ".\get_account_hierarchy.py", line 101, in main
  File "C:\Python\Python38\lib\site-packages\google\protobuf\message.py", line 94, in __hash__
    raise TypeError('unhashable object')
TypeError: unhashable object

I'm running this command from the project directory:
python .\get_account_hierarchy.py -l 0123456789

Also, I've tried:
python .\get_account_hierarchy.py --manager_customer_id 0123456789

(the argument/number is actually our google ads account customer id and I do have the yaml file with our creds in the directory)

I think I'm sending the arguments wrong in the command line - I haven't used arg.parser before.

Could you please tell me what I'm doing wrong? Any help would be appreciated

Google Ads API Forum Advisor Prod

unread,
Jan 7, 2021, 10:39:32 PM1/7/21
to fr...@thefrankharvey.com, adwor...@googlegroups.com
Hi Frank,

Thank you for posting your concern.

You may post this issue to this support channel as it is specific to client library. The author of the client library, which is more technical to Python client library, will reply to your post to address it.

Regards,
Google Logo
Ernie John Blanca Tacata
Google Ads API Team
 


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