Hello, To get the search terms which triggered the ads in an ad group, you can use the Search Query Performance Report <https://developers.google.com/adwords/api/docs/appendix/reports/search-query-performance-report>. To get the data at the ad group level, you could add a predicate to filter by adgroupid <https://developers.google.com/adwords/api/docs/appendix/reports/search-query-performance-report#adgroupid>. You will not be able to delete the search terms. If you would like to delete the keywords which are same as search terms, you will need to use AdgroupCriterionService.mutate() <https://developers.google.com/adwords/api/docs/reference/v201809/AdGroupCriterionService#mutate> and perform a mutate call to remove the specific keyword. Please check the RemoveKeyword <https://github.com/googleads/googleads-java-lib/blob/master/examples/adwords_axis/src/main/java/adwords/axis/v201809/basicoperations/RemoveKeyword.java> code sample in Java for reference. To add that as a negative criterion at the campaign level, you could use the CampaignCriterionService <https://developers.google.com/adwords/api/docs/reference/v201809/CampaignCriterionService> and add the NegativeCampaignCriterion <https://developers.google.com/adwords/api/docs/reference/v201809/CampaignCriterionService.NegativeCampaignCriterion>. Please check this code <https://github.com/googleads/googleads-java-lib/blob/master/examples/adwords_axis/src/main/java/adwords/axis/v201809/targeting/AddCampaignTargetingCriteria.java#L208> sample in Java for reference. Code sample in other languages can also be found here <https://developers.google.com/adwords/api/docs/clientlibraries>. Please let me know if you have any additional questions.
We are running an annual developer feedback survey. Please take opportunity to leave feedback <https://google.qualtrics.com/jfe/form/SV_8AJmKtdyZLWVWrb> on how we can make managing campaigns at scale even easier. Thanks, Sreelakshmi, AdWords API Team -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our blog: https://googleadsdeveloper.blogspot.com/ =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ You received this message because you are subscribed to the Google Groups "AdWords API and Google Ads API Forum" group. To post to this group, send email to adwords-api@googlegroups.com To unsubscribe from this group, send email to adwords-api+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/adwords-api?hl=en --- You received this message because you are subscribed to the Google Groups "AdWords API and Google Ads API Forum" group. To unsubscribe from this group and stop receiving emails from it, send an email to adwords-api+unsubscr...@googlegroups.com. Visit this group at https://groups.google.com/group/adwords-api. To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-api/73175f99-6ff5-48a5-98b7-b5ff5c0c5d87%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.