The Criterion is not allowed to be excluded. Cannot exclude Content Label Criterion "GAMES".

50 views
Skip to first unread message

vibhesh kaul

unread,
Jun 25, 2019, 3:18:30 PM6/25/19
to AdWords API and Google Ads API Forum
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 criterion of contentLabelType = GAMES as a 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!

vibhesh kaul

unread,
Jun 28, 2019, 7:14:30 AM6/28/19
to AdWords API and Google Ads API Forum
Is there anyone who can help me please?

Google Ads API Forum Advisor Prod

unread,
Jun 30, 2019, 1:25:33 PM6/30/19
to vibhe...@gmail.com, adwor...@googlegroups.com
Hi Vibhesh,

I sent you a private response to you on June 26th. Please check your inbox for that message and let me know if you have further questions.

Thanks,
Josh, Google Ads API Team

ref:_00D1U1174p._5001UCZT4Y:ref

vibhesh kaul

unread,
Jul 1, 2019, 2:31:02 AM7/1/19
to AdWords API and Google Ads API Forum
Hi Josh,

By inbox do you mean my email inbox? Because I did not receive any email from you on the 26th. And I don't see any notifications anywhere of a response.

Thanks,
Vibhesh

Paul

unread,
Jul 1, 2019, 9:24:46 AM7/1/19
to AdWords API and Google Ads API Forum
API Team, could you also post a public response about why this is happening? We are also encountering this issue. 

Google Ads API Forum Advisor Prod

unread,
Jul 2, 2019, 5:57:58 PM7/2/19
to ple...@clickrain.com, adwor...@googlegroups.com
Hi,

Please see my latest update to another post on the same topic .
Reply all
Reply to author
Forward
0 new messages