We are trying to implement a Campaign setting, specifically * KeywordMatchSetting,* and are running into an ERROR:
<message>[TargetError.CANNOT_MODIFY_CONTENT_CONTEXTUAL @ operations[0].operand.networkSetting]</message> Thinking this was related to network targeting I tried all possible combinations: <networkSetting><targetGoogleSearch>*true* </targetGoogleSearch><targetSearchNetwork>*true* </targetSearchNetwork><targetContentNetwork>*false* </targetContentNetwork><targetContentContextual>*false* </targetContentContextual></networkSetting> <networkSetting><targetGoogleSearch>*false* </targetGoogleSearch><targetSearchNetwork>*false* </targetSearchNetwork><targetContentNetwork>*true* </targetContentNetwork><targetContentContextual>*true* </targetContentContextual></networkSetting> <networkSetting><targetGoogleSearch>*true* </targetGoogleSearch><targetSearchNetwork>*true* </targetSearchNetwork><targetContentNetwork>*true* </targetContentNetwork><targetContentContextual>*true* </targetContentContextual></networkSetting> This one is an error condition on our end, but I tried it anyways: <networkSetting><targetGoogleSearch>*false* </targetGoogleSearch><targetSearchNetwork>*false* </targetSearchNetwork><targetContentNetwork>*false* </targetContentNetwork><targetContentContextual>*false* </targetContentContextual></networkSetting> Each request failing with the same ERROR as above. I found that if I do not set: campaign.networkSetting. targetContentContextual (to either TRUE or FALSE), I can successfully post. Given this documentation I do not see why I should be getting this error if I include targetContentContextual as part of the v201206 networkSettings: https://developers.google.com/adwords/api/docs/reference/latest/CampaignService.NetworkSetting#targetContentContextual: Ads will be served on the Google Display Network based on Keyword criteria contextually matching the placement's content (requires CONTENT_NETWORK). This field can be selected using the value "TargetContentContextual". *This field can be filtered on.This is disabled for AdX.* https://developers.google.com/adwords/api/docs/reference/v201109/CampaignService.NetworkSetting#targetContentContextual: Ads will be served on the Google Display Network based on Keyword criteria contextually matching the placement's content (requires CONTENT_NETWORK). This field can be selected using the value "TargetContentContextual". This field can be filtered on. Thoughts? -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our blog and discussion group: http://adwordsapi.blogspot.com http://groups.google.com/group/adwords-api =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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
<?xml version="1.0" encoding="UTF-8"?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><soapenv:Header><ns1:RequestHeader soapenv:actor="http://schemas.xmlsoap.org/soap/actor/next" soapenv:mustUnderstand="0" xmlns:ns1="https://adwords.google.com/api/adwords/cm/v201206"><ns1:authToken>XXX-xxx</ns1:authToken><ns1:clientCustomerId>6038427475</ns1:clientCustomerId><ns1:developerToken>XXXX</ns1:developerToken><ns1:userAgent>XXXX</ns1:userAgent><ns1:validateOnly>false</ns1:validateOnly><ns1:partialFailure>false</ns1:partialFailure></ns1:RequestHeader></soapenv:Header><soapenv:Body><mutate xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="https://adwords.google.com/api/adwords/cm/v201206"><operations><operator>ADD</operator><operand><name>DVCXQAqOEKdYaSp</name><status>PAUSED</status><budget><period>DAILY</period><amount><microAmount>60070000</microAmount></amount><deliveryMethod>STANDARD</deliveryMethod></budget><biddingStrategy xsi:type="ns2:ManualCPC" xmlns:ns2="https://adwords.google.com/api/adwords/cm/v201206"/><adServingOptimizationStatus>OPTIMIZE</adServingOptimizationStatus><settings xsi:type="ns3:KeywordMatchSetting" xmlns:ns3="https://adwords.google.com/api/adwords/cm/v201206"><optIn>false</optIn></settings><networkSetting><targetGoogleSearch>true</targetGoogleSearch><targetSearchNetwork>true</targetSearchNetwork><targetContentNetwork>false</targetContentNetwork><targetContentContextual>false</targetContentContextual></networkSetting></operand></operations></mutate></soapenv:Body></soapenv:Envelope> 2012-07-30 10:44:39,299 DEBUG [org.apache.axis.transport.http.HTTPSender] - HTTP/1.0 500 Internal Server Error 2012-07-30 10:44:39,299 DEBUG [org.apache.axis.transport.http.HTTPSender] - Content-Type text/xml; charset=UTF-8 2012-07-30 10:44:39,299 DEBUG [org.apache.axis.transport.http.HTTPSender] - Date Mon, 30 Jul 2012 17:44:38 GMT 2012-07-30 10:44:39,299 DEBUG [org.apache.axis.transport.http.HTTPSender] - Expires Mon, 30 Jul 2012 17:44:38 GMT 2012-07-30 10:44:39,299 DEBUG [org.apache.axis.transport.http.HTTPSender] - Cache-Control private, max-age=0 2012-07-30 10:44:39,299 DEBUG [org.apache.axis.transport.http.HTTPSender] - X-Content-Type-Options nosniff 2012-07-30 10:44:39,299 DEBUG [org.apache.axis.transport.http.HTTPSender] - X-Frame-Options SAMEORIGIN 2012-07-30 10:44:39,299 DEBUG [org.apache.axis.transport.http.HTTPSender] - X-XSS-Protection 1; mode=block 2012-07-30 10:44:39,299 DEBUG [org.apache.axis.transport.http.HTTPSender] - Server GSE 2012-07-30 10:44:39,299 DEBUG [org.apache.axis.transport.http.HTTPSender] - no Content-Length 2012-07-30 10:44:39,299 DEBUG [org.apache.axis.transport.http.HTTPSender] - XML received: 2012-07-30 10:44:39,299 DEBUG [org.apache.axis.transport.http.HTTPSender] - ----------------------------------------------- 2012-07-30 10:44:39,310 DEBUG [org.apache.axis.transport.http.HTTPSender] - <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Header><ResponseHeader xmlns="https://adwords.google.com/api/adwords/cm/v201206"><requestId>0004c60f9d9b01280a42658e00003d61</requestId><serviceName>CampaignService</serviceName><methodName>mutate</methodName><operations>1</operations><responseTime>874</responseTime><units>1</units></ResponseHeader></soap:Header><soap:Body><soap:Fault><faultcode>soap:Server</faultcode><faultstring>[TargetError.CANNOT_MODIFY_CONTENT_CONTEXTUAL @ operations[0].operand.networkSetting]</faultstring><detail><ApiExceptionFault xmlns="https://adwords.google.com/api/adwords/cm/v201206"><message>[TargetError.CANNOT_MODIFY_CONTENT_CONTEXTUAL @ operations[0].operand.networkSetting]</message><ApplicationException.Type>ApiException</ApplicationException.Type><errors xsi:type="TargetError" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><fieldPath>operations[0].operand.networkSetting</fieldPath><trigger/><errorString>TargetError.CANNOT_MODIFY_CONTENT_CONTEXTUAL</errorString><ApiError.Type>TargetError</ApiError.Type><reason>CANNOT_MODIFY_CONTENT_CONTEXTUAL</reason></errors></ApiExceptionFault></detail></soap:Fault></soap:Body></soap:Envelope>
