How to add a keyword to negative keyword list using Google Ads API using SDK?

23 views
Skip to first unread message

Oleksandr Chekanskyi

unread,
Jul 2, 2019, 6:22:46 AM7/2/19
to AdWords API and Google Ads API Forum

Hello Google Ads API team,

Currently, we are using Google Ads SDK with java (https://github.com/googleads/google-ads-java) for interaction with the platform. Could you give me a hint on how to add a keyword to the account negative keyword list using it?


Thank you




Google Ads API Forum Advisor Prod

unread,
Jul 3, 2019, 12:02:33 PM7/3/19
to oleksandr....@omio.com, adwor...@googlegroups.com
Hello Oleksandr, 

You may use the SharedCriterionService to add the keyword to the negative keyword list created at the account level. You will need to include the shared_set and the Keyword Id in the mutate request. The code sample available here should be helpful to get started.

Please let me know if you face any issues.

Thanks,
Bharani, Google Ads API Team

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