Hi, I had added a negative campaign criterion for excluding Games from being targeted in my campaigns and it was working fine until a last couple of days as it suddenly started throwing exceptions for not allowing the negative campaign criterion to be added to the campaign. I get the following exception every time I try to add the negative criterion.
AdWordsApiException: Exception of type 'Google.Api.Ads.AdWords.Lib.AdWordsApiException' was thrown. The Criterion is not allowed to be excluded.. (Error: CriterionError.CANNOT_EXCLUDE_CRITERION , FieldPath: operations[21].operand.criterion.contentLabelType, Trigger: GAMES ) > Based on your suggestion in > https://groups.google.com/forum/?pli=1#!topic/adwords-api/BHCZoySx10g I > added a ContentLabel > <https://developers.google.com/adwords/api/docs/reference/v201809/CampaignCriterionService.ContentLabel> > criterion > of contentLabelType > <https://developers.google.com/adwords/api/docs/reference/v201809/CampaignCriterionService.ContentLabel#contentlabeltype> > = > GAMES as a NegativeCampaignCriterion > <https://developers.google.com/adwords/api/docs/reference/v201809/CampaignCriterionService.NegativeCampaignCriterion> > to > exclude them from my campaign's ads. It worked perfectly for quite some > time until the last few days. Can you please help me with why this suddenly > started happening and how can I avoid getting these exceptions. Here's the > C# code I use to add a negative criterion to the campaign just in case you > need to know. CampaignCriterion negativeCriterion = new NegativeCampaignCriterion() { campaignId = campaignId, criterion = new ContentLabel() { contentLabelType = ContentLabelType.GAMES } }; CampaignCriterionOperation negativeCriterionOperation = new CampaignCriterionOperation() { operand = negativeCriterion, @operator = Operator.ADD }; I'd really appreciate your help on this one. Thanks! -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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. To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-api/e03aa5a1-b628-4900-87e5-01d0826984c7%40googlegroups.com.