Remove Negative Keywords at Campaign Level

28 views
Skip to first unread message

Suriya Prakash

unread,
Mar 16, 2018, 3:33:11 PM3/16/18
to AdWords API Forum
Hi,
  We need to remove a set of negative keywords from Campaign level through API. We found the reference for deleting negative keywords at the adGroup level here,  https://developers.google.com/adwords/api/docs/samples/php/basic-operations#remove-a-keyword
  
  But we need the code reference to delete negative campaigns at the campaign level. So could anyone provide us the reference?
  
Thanks  

Peter Oliquino

unread,
Mar 19, 2018, 1:44:09 AM3/19/18
to AdWords API Forum
Hi,

For those keyword criteria that are created and associated to a campaign, the correct service to do this would be the CampaignCriterionService. To REMOVE the said keywords, you should use the CampaignCriterionService.mutate() method and just use the said service's CampaignCriterionOperation and other related fields, instead of those that are related to the AdGroupCriterionService as seen in the sample code.

Let me know if this helps.

Best regards,
Peter
AdWords API Team
Reply all
Reply to author
Forward
0 new messages