Hi, The *ALLOWED_GAMBLING_CONTENT* ContentLabel <https://developers.google.com/adwords/api/docs/reference/v201509/CampaignCriterionService.ContentLabel> is excluded by default. This is why it cannot be included as a negative Criterion. Trying to exclude a criterion that is already excluded by default will result in a *CANNOT_EXCLUDE_CRITERION *error, which is what you're seeing.
Cheers, Nadine, AdWords API Team On Monday, November 16, 2015 at 2:43:06 AM UTC-5, Gasper Mis wrote: > > [Nov 16 2015 08:33:59.000000 - ERROR] POST > /api/adwords/cm/v201509/CampaignCriterionService HTTP/1.1 > Host: adwords.google.com > Connection: Keep-Alive > User-Agent: PHP-SOAP/5.5.12, gzip > Accept-Encoding: gzip, deflate > Content-Encoding: gzip > Content-Type: text/xml; charset=utf-8 > SOAPAction: "" > Content-Length: 524 > Authorization: Bearer > ya29.LgKs9s7vmJR4QCpXsj-azW05rnZeX1oTHNM67Xpg691x_x_XVc3Svk3ULRchHTNyTSr_ > > <?xml version="1.0" encoding="UTF-8"?> > <SOAP-ENV:Envelope xmlns:SOAP-ENV=" > http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1=" > https://adwords.google.com/api/adwords/cm/v201509" xmlns:xsi=" > http://www.w3.org/2001/XMLSchema-instance"> > <SOAP-ENV:Header> > <ns1:RequestHeader> > <ns1:clientCustomerId>8515598967</ns1:clientCustomerId> > <ns1:developerToken></ns1:developerToken> > <ns1:userAgent>MrGapoAppTeam (AwApi-PHP/6.4.0, Common-PHP/6.4.0, > PHP/5.5.12)</ns1:userAgent> > </ns1:RequestHeader> > </SOAP-ENV:Header> > <SOAP-ENV:Body> > <ns1:mutate> > <ns1:operations> > <ns1:operator>ADD</ns1:operator> > <ns1:operand xsi:type="ns1:NegativeCampaignCriterion"> > <ns1:campaignId>195810261</ns1:campaignId> > <ns1:criterion xsi:type="ns1:ContentLabel"> > <ns1:type>CONTENT_LABEL</ns1:type> > <ns1:contentLabelType>JUVENILE</ns1:contentLabelType> > </ns1:criterion> > </ns1:operand> > </ns1:operations> > <ns1:operations> > <ns1:operator>ADD</ns1:operator> > <ns1:operand xsi:type="ns1:NegativeCampaignCriterion"> > <ns1:campaignId>195810261</ns1:campaignId> > <ns1:criterion xsi:type="ns1:ContentLabel"> > <ns1:type>CONTENT_LABEL</ns1:type> > > <ns1:contentLabelType>ALLOWED_GAMBLING_CONTENT</ns1:contentLabelType> > </ns1:criterion> > </ns1:operand> > </ns1:operations> > </ns1:mutate> > </SOAP-ENV:Body> > </SOAP-ENV:Envelope> > > HTTP/1.1 500 Internal Server Error > Content-Type: text/xml; charset=UTF-8 > Content-Encoding: gzip > Date: Mon, 16 Nov 2015 07:33:50 GMT > Expires: Mon, 16 Nov 2015 07:33:50 GMT > Cache-Control: private, max-age=0 > X-Content-Type-Options: nosniff > X-Frame-Options: SAMEORIGIN > X-XSS-Protection: 1; mode=block > Content-Length: 558 > Server: GSE > > <?xml version="1.0"?> > <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> > <soap:Header> > <ResponseHeader xmlns=" > https://adwords.google.com/api/adwords/cm/v201509"> > <requestId>000524a36e3484700a8126c340041740</requestId> > <serviceName>CampaignCriterionService</serviceName> > <methodName>mutate</methodName> > <operations>2</operations> > <responseTime>98</responseTime> > </ResponseHeader> > </soap:Header> > <soap:Body> > <soap:Fault> > <faultcode>soap:Server</faultcode> > <faultstring>[CriterionError.CANNOT_EXCLUDE_CRITERION @ > operations[1].operand.criterion.contentLabelType; > trigger:'ALLOWED_GAMBLING_CONTENT']</faultstring> > <detail> > <ApiExceptionFault xmlns=" > https://adwords.google.com/api/adwords/cm/v201509"> > <message>[CriterionError.CANNOT_EXCLUDE_CRITERION @ > operations[1].operand.criterion.contentLabelType; > trigger:'ALLOWED_GAMBLING_CONTENT']</message> > > <ApplicationException.Type>ApiException</ApplicationException.Type> > <errors xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xsi:type="CriterionError"> > > <fieldPath>operations[1].operand.criterion.contentLabelType</fieldPath> > <trigger>ALLOWED_GAMBLING_CONTENT</trigger> > > <errorString>CriterionError.CANNOT_EXCLUDE_CRITERION</errorString> > <ApiError.Type>CriterionError</ApiError.Type> > <reason>CANNOT_EXCLUDE_CRITERION</reason> > </errors> > </ApiExceptionFault> > </detail> > </soap:Fault> > </soap:Body> > </soap:Envelope> > > -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our blog and Google+: https://googleadsdeveloper.blogspot.com/ https://plus.google.com/+GoogleAdsDevelopers/posts =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ You received this message because you are subscribed to the Google Groups "AdWords API Forum" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] 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 Forum" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. Visit this group at http://groups.google.com/group/adwords-api. To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-api/f542a0da-b059-4a9d-a657-f35916250a1e%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
