Hi,

I have posted new campaign Request  as follows:
<?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/v201402"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
  <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>
    <ResponseHeader 
xmlns="https://adwords.google.com/api/adwords/cm/v201402";>
      <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.

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 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 Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to