Issue with generate historical metrics API call

78 views
Skip to first unread message

Trent Raynard

unread,
May 11, 2023, 1:41:37 PM5/11/23
to Google Ads API and AdWords API Forum
After creating the keyword plan to call on so I can get search volume metrics for the keywords in the plan, I always hit this error after the first 2 results come back.

File "/generate_historical_metrics.py", line 65, in main f"\tCompetition level: {metric.keyword_metrics.competition.name}." AttributeError: 'int' object has no attribute 'name'
Could anyone help provide guidance on this? I get the results of the first two keywords but hit that error and cannot get the rest of the other 50-60 in the list.

Thanks

Google Ads API Forum Advisor

unread,
May 11, 2023, 4:36:32 PM5/11/23
to tre...@helium10.com, adwor...@googlegroups.com

Hi,

Thanks for reaching out to the Google Ads API Forum.

Can you confirm if your concern is related to this forum thread(https://groups.google.com/g/adwords-api/c/12vYHJD7s9Q/m/FaSM2vqlAwAJ?utm_medium=email&utm_source=footer)? If yes, can you try to see the solution provided on that thread if it could help you? 

If issue exists for flag use_proto_plus to TRUE, then you may reach out to the Python client library owner, via issue tracker here.

Regards,

Google Logo Google Ads API Team

 



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