CANNOT_UNSET_DISPLAY_SELECT_CAMPAIGN when creating new campaign

228 views
Skip to first unread message

usaw...@gmail.com

unread,
May 22, 2014, 12:25:57 PM5/22/14
to adwor...@googlegroups.com
Hi,

I have posted new campaign Request  as follows:
<?xml version="1.0" encoding="UTF-8"?>
  <SOAP-ENV:Header>
    <ns1:RequestHeader>
      <ns1:clientCustomerId>xxx-xxx-xxxx</ns1:clientCustomerId>
      <ns1:developerToken>MNTMFwDdvmrVJxxxxxxxx</ns1:developerToken>
      <ns1:userAgent>Adword Account (AwApi-PHP/5.2.3, Common-PHP/5.2.3, PHP/5.4.7)</ns1:userAgent>
    </ns1:RequestHeader>
  </SOAP-ENV:Header>
  <SOAP-ENV:Body>
    <ns1:mutate>
      <ns1:operations>
        <ns1:operator>ADD</ns1:operator>
        <ns1:operand>
          <ns1:name>My Campaign 3</ns1:name>
          <ns1:status>PAUSED</ns1:status>
          <ns1:startDate>20140523</ns1:startDate>
          <ns1:endDate>20140622</ns1:endDate>
          <ns1:budget>
            <ns1:budgetId>xxxxx</ns1:budgetId>
          </ns1:budget>
          <ns1:adServingOptimizationStatus>ROTATE</ns1:adServingOptimizationStatus>
          <ns1:frequencyCap>
            <ns1:impressions>5</ns1:impressions>
            <ns1:timeUnit>DAY</ns1:timeUnit>
            <ns1:level>ADGROUP</ns1:level>
          </ns1:frequencyCap>
          <ns1:settings xsi:type="ns1:KeywordMatchSetting">
            <ns1:optIn>true</ns1:optIn>
          </ns1:settings>
          <ns1:settings xsi:type="ns1:DynamicSearchAdsSetting">
            <ns1:domainName>www.usaweb.net</ns1:domainName>
            <ns1:languageCode>en</ns1:languageCode>
          </ns1:settings>
          <ns1:settings xsi:type="ns1:GeoTargetTypeSetting">
            <ns1:positiveGeoTargetType>DONT_CARE</ns1:positiveGeoTargetType>
            <ns1:negativeGeoTargetType>DONT_CARE</ns1:negativeGeoTargetType>
          </ns1:settings>
          <ns1:advertisingChannelType>SEARCH</ns1:advertisingChannelType>
          <ns1:networkSetting>
            <ns1:targetGoogleSearch>true</ns1:targetGoogleSearch>
            <ns1:targetSearchNetwork>true</ns1:targetSearchNetwork>
            <ns1:targetContentNetwork>true</ns1:targetContentNetwork>
            <ns1:targetPartnerSearchNetwork>false</ns1:targetPartnerSearchNetwork>
          </ns1:networkSetting>
          <ns1:biddingStrategyConfiguration>
            <ns1:biddingStrategyType>MANUAL_CPC</ns1:biddingStrategyType>
            <ns1:biddingScheme xsi:type="ns1:ManualCpcBiddingScheme">
              <ns1:enhancedCpcEnabled>false</ns1:enhancedCpcEnabled>
            </ns1:biddingScheme>
          </ns1:biddingStrategyConfiguration>
          <ns1:displaySelect>false</ns1:displaySelect>
        </ns1:operand>
      </ns1:operations>
    </ns1:mutate>
  </SOAP-ENV:Body>
</SOAP-ENV:Envelope>
-------------------------------------------------
And get the response as follows:
-----------------------------------------------
<?xml version="1.0"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Header>
      <requestId>0004f9fe15977b080a42db8900002b15</requestId>
      <serviceName>CampaignService</serviceName>
      <methodName>mutate</methodName>
      <operations>1</operations>
      <responseTime>348</responseTime>
    </ResponseHeader>
  </soap:Header>
  <soap:Body>
    <soap:Fault>
      <faultcode>soap:Server</faultcode>
      <faultstring>[CampaignError.CANNOT_UNSET_DISPLAY_SELECT_CAMPAIGN @ operations[0].operand.displaySelect]</faultstring>
      <detail>
        <ApiExceptionFault xmlns="https://adwords.google.com/api/adwords/cm/v201402">
          <message>[CampaignError.CANNOT_UNSET_DISPLAY_SELECT_CAMPAIGN @ operations[0].operand.displaySelect]</message>
          <ApplicationException.Type>ApiException</ApplicationException.Type>
          <errors xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="CampaignError">
            <fieldPath>operations[0].operand.displaySelect</fieldPath>
            <trigger/>
            <errorString>CampaignError.CANNOT_UNSET_DISPLAY_SELECT_CAMPAIGN</errorString>
            <ApiError.Type>CampaignError</ApiError.Type>
            <reason>UNKNOWN</reason>
          </errors>
        </ApiExceptionFault>
      </detail>
    </soap:Fault>
  </soap:Body>
</soap:Envelope>

Please let me know what I am doing wrong and how to create "search network only" campaign through adwords api.

Thank you.

Michael Cloonan (AdWords API Team)

unread,
May 23, 2014, 9:00:37 AM5/23/14
to adwor...@googlegroups.com
Hello,

The displaySelect flag is a little confusing right now, but we are actively working on updating our documentation on it to clarify. For now, I will give you a quick overview here.

You can see (and set) what networks a campaign is targeting using the campaign's NetworkSetting. If the NetworkSetting has targetSearchNetwork set to true and the other fields set to false, then you are safely targeting the search network only, regardless of the state of the displaySelect flag. So in order to create a "search network only" campaign, you would simply set up the NetworkSetting the same way you always have for such a campaign.

The displaySelect flag is true (and cannot be set false) for all new campaigns, as an indicator that if that campaign targets display network, then it will do so using Search Networks with Display Select rather than the old way. Starting in September, we will migrate all existing display network campaigns to Search Network with Display Select, after which we will remove this flag from the API since it will no longer be necessary.

The only time you should interact with the flag via the API is if you want to voluntarily migrate your display campaigns to Search Network with Display Select early, in which case you would set the flag to true.

Regards,
Mike, AdWords API Team

usaw...@gmail.com

unread,
May 23, 2014, 11:10:37 AM5/23/14
to adwor...@googlegroups.com
Hi Michael,

Thank you for the reply and I can create "Search Network Only" campaign using but when I set targetPartnerSearchNetwork = true end up with an error as TargetError.CANNOT_TARGET_PARTNER_SEARCH_NETWORK @ operations[0].operand.networkSetting. 

Is it true?

Thank you.

Michael Cloonan (AdWords API Team)

unread,
May 23, 2014, 11:34:36 AM5/23/14
to adwor...@googlegroups.com
Hello,

Yes, if you read the description from the wsdl for the NetworkSetting, you'll see:

 This is available to only some specific Google partner accounts.

This means that you will not be able to use this feature.

Regards,
Mike, AdWords API Team

Linh Doan Manh

unread,
Dec 10, 2014, 4:58:17 AM12/10/14
to adwor...@googlegroups.com
Hi Michael Cloonan,

I am using Google AdWords Api v201409, I created NetworkSetting with {targetSearchNetwork = true, targetGoogleSearch = false, targetContentNetwork = false}. But after posting to Google, i still saw campaign setting type is "Search Network with Display Select".

Please help me to set Campaign settings Type is "Search Network only".

Michael Cloonan (AdWords API Team)

unread,
Dec 10, 2014, 1:04:45 PM12/10/14
to adwor...@googlegroups.com
Hello,

You must set targetGoogleSearch to true for all SEARCH type campaigns.

Regards,
Mike, AdWords API Team

Linh Doan Manh

unread,
Dec 10, 2014, 8:29:26 PM12/10/14
to adwor...@googlegroups.com
Hi Michael,

Thank you for your support, I can set campaign type is "Search Network Only".
Reply all
Reply to author
Forward
0 new messages