Hi Carmela You are right. There is an example about how to use CampaignCriterionService in https://github.com/googleads/google-ads-python/blob/main/examples/advanced_operations/create_and_attach_shared_keyword_set.py
Thank you! Best regards, Radu. On Thursday, February 16, 2023 at 7:28:50 PM UTC+2 Google Ads API Forum Advisor wrote: Hi Radu, Thank you for raising this concern to the Google Ads API support team. As per this guide <https://developers.google.com/google-ads/api/docs/targeting/criteria>, the CampaignCriterionService <https://developers.google.com/google-ads/api/reference/rpc/v13/CampaignCriterionService> and AdGroupCriterionService <https://developers.google.com/google-ads/api/reference/rpc/v13/AdGroupCriterionService> support targeting or excluding various types of criteria. Having said that, you may add the negative keywords by using the CampaignCriterionService <https://developers.google.com/google-ads/api/reference/rpc/v13/CampaignCriterionService> . Additionally, you may also use the SharedSetService.MutateSharedSets <https://developers.google.com/google-ads/api/reference/rpc/v12/MutateSharedSetsRequest> to create negative_keywords shared set too. Note that SharedSets are used for sharing criterion exclusions across multiple campaigns. Let us know if this is what you're looking for. Regards, [image: Google Logo] Carmela Google Ads API Team ref:_00D1U1174p._5004Q2j0rui:ref -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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 "Google Ads API and AdWords API Forum" group. To unsubscribe from this group and stop receiving emails from it, send an email to adwords-api+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-api/5a9f6aab-0465-4f18-b06a-2a12455bfecen%40googlegroups.com.