Can't get keywords in Google Ads API

27 views
Skip to first unread message

Zhen Guo

unread,
Jun 5, 2020, 5:29:19 PM6/5/20
to AdWords API and Google Ads API Forum
Hi,

I tried to get a map of my keywords and their ids, but can't really make the query work. I used the example to get all keywords, but it does not give me any results nor errors. I don't have any issue when running forecast metrics for the same account and keywordplan. Here is the command I used ./get_keywords.py -c *******. What could be the problem?

Thank you,
Zhen

Google Ads API Forum Advisor Prod

unread,
Jun 8, 2020, 9:44:16 AM6/8/20
to gzx...@gmail.com, adwor...@googlegroups.com
Hi Zhen,

If you are using a manager account to make API calls, you will get empty results. You will need to make the call from the client account level. If this is not your issue, please double check any filters that may result in zero results such including enabled and paused keywords. 

Cheers,
Anthony
Google Ads API Team

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