How to refine keywords with Google Ads API?

144 views
Skip to first unread message

xxx...@gmail.com

unread,
Jan 7, 2022, 12:00:26 PM1/7/22
to AdWords API and Google Ads API Forum
The kind and number of keyword refining options offered by the Keyword Planner's GUI depend on the keyword seed - having "insurance" as seed gives other refining options, then with a "buy iPhone" as seed. 

Generation of keyword ideas with new Google Ads API seems to offer a keyword refining too. 

But, looking at the linked documentation https://developers.google.com/google-ads/api/reference/rpc/v9/GenerateKeywordIdeasRequest#keyword_annotation - I can't find any refining options like they are in Keyword Planner in the screenshot. What is the way to refine keyword ideas generation done by Google Ads API?

Screenshot 2022-01-07 174734.png

Google Ads API Forum Advisor

unread,
Jan 7, 2022, 3:50:33 PM1/7/22
to xxx...@gmail.com, adwor...@googlegroups.com
Hi,

You can try the following REST example with curl:
curl -i --request POST https://googleads.googleapis.com/v9/customers/<CID>:generateKeywordIdeas \
--header "Content-Type: application/json" \
--header "login-customer-id: <MCCID>" \
--header "developer-token: <DT>" \
--header "Authorization: Bearer <AT>" \
--data '{

"keywordSeed": {
    "keywords": [
    "Legal services","legal plan","legal expenses","legal costs","insurance","health insurance","vehicle insurance"
  ]
  },
"keywordAnnotation": [
   "KEYWORD_CONCEPT"
  ]
}'

​​​​​​​I tried it and the categories showed.

Regards,

Google Logo
Aryeh Baker
Google Ads API Team
 
​​​​​​​

ref:_00D1U1174p._5004Q2UheYX:ref

xxx...@gmail.com

unread,
Jan 9, 2022, 12:11:30 PM1/9/22
to AdWords API and Google Ads API Forum
Hello Aryeh!

Could you please publish here a screenshot of your cURL response? I seem to do something wrong and want to know, how looks an answer in case of correct querying. Specially I'm interesting how looks "and the categories showed".

Thank you!
Evgeniy

Google Ads API Forum Advisor

unread,
Jan 10, 2022, 12:59:16 AM1/10/22
to xxx...@gmail.com, adwor...@googlegroups.com

Hi Evgeniy,

Thanks for getting back to us. I work with Aryeh.

Kindly note that posting complete responses on the forum is not encouraged due to privacy reasons. However, you may provide us if you’ve not received the expected response for your API call so our team can better check. You may send to us via Reply privately to author option. 

Regards,

Google Logo
Yasar
Google Ads API Team
 


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