Hello,

Here is the SOAP Request and Response.

*Request : *

<?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>4688642237</ns1:clientCustomerId>
      <ns1:developerToken>WBtb6OP766Ur51L8MTlXhg</ns1:developerToken>
      <ns1:userAgent>perfectstormmedia (AwApi-PHP/6.4.0, Common-PHP/6.4.0, 
PHP/5.5.23)</ns1:userAgent>
    </ns1:RequestHeader>
  </SOAP-ENV:Header>
  <SOAP-ENV:Body>
    <ns1:mutate>
      <ns1:operations>
        <ns1:operator>SET</ns1:operator>
        <ns1:operand>
          <ns1:id>27908753009</ns1:id>
          <ns1:settings xsi:type="ns1:TargetingSetting">
            <ns1:Setting.Type>TargetingSetting</ns1:Setting.Type>
            <ns1:details>
              
<ns1:criterionTypeGroup>USER_INTEREST_AND_LIST</ns1:criterionTypeGroup>
              <ns1:targetAll>false</ns1:targetAll>
            </ns1:details>
            <ns1:details>
              <ns1:criterionTypeGroup>VERTICAL</ns1:criterionTypeGroup>
              <ns1:targetAll>false</ns1:targetAll>
            </ns1:details>
            <ns1:details>
              <ns1:criterionTypeGroup>GENDER</ns1:criterionTypeGroup>
              <ns1:targetAll>false</ns1:targetAll>
            </ns1:details>
            <ns1:details>
              <ns1:criterionTypeGroup>AGE_RANGE</ns1:criterionTypeGroup>
              <ns1:targetAll>false</ns1:targetAll>
            </ns1:details>
            <ns1:details>
              <ns1:criterionTypeGroup>PLACEMENT</ns1:criterionTypeGroup>
              <ns1:targetAll>false</ns1:targetAll>
            </ns1:details>
          </ns1:settings>
        </ns1:operand>
      </ns1:operations>
    </ns1:mutate>
  </SOAP-ENV:Body>
</SOAP-ENV:Envelope>

HTTP/1.1 200 OK
Content-Type: text/xml; charset=UTF-8
Content-Encoding: gzip
Date: Wed, 17 Feb 2016 07:56:35 GMT
Expires: Wed, 17 Feb 2016 07:56:35 GMT
Cache-Control: private, max-age=0
X-Content-Type-Options: nosniff
X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
Content-Length: 910
Server: GSE

*Response : *

<?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>00052bf296c9e8c00a0dddc7e2065001</requestId>
      <serviceName>AdGroupService</serviceName>
      <methodName>mutate</methodName>
      <operations>1</operations>
      <responseTime>206</responseTime>
    </ResponseHeader>
  </soap:Header>
  <soap:Body>
    <mutateResponse 
xmlns="https://adwords.google.com/api/adwords/cm/v201509";>
      <rval>
        <ListReturnValue.Type>AdGroupReturnValue</ListReturnValue.Type>
        <value>
          <id>27908753009</id>
          <campaignId>417292049</campaignId>
          <campaignName>TEST - ADWORDS - Remarketing - US #2</campaignName>
          <name>[BANNER] Remarketing US</name>
          <status>PAUSED</status>
          <settings xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
xsi:type="ExplorerAutoOptimizerSetting">
            <Setting.Type>ExplorerAutoOptimizerSetting</Setting.Type>
            <optIn>false</optIn>
          </settings>
          <settings xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
xsi:type="TargetingSetting">
            <Setting.Type>TargetingSetting</Setting.Type>
            <details>
              
<criterionTypeGroup>USER_INTEREST_AND_LIST</criterionTypeGroup>
              <targetAll>false</targetAll>
            </details>
            <details>
              <criterionTypeGroup>VERTICAL</criterionTypeGroup>
              <targetAll>false</targetAll>
            </details>
            <details>
              <criterionTypeGroup>GENDER</criterionTypeGroup>
              <targetAll>false</targetAll>
            </details>
            <details>
              <criterionTypeGroup>AGE_RANGE</criterionTypeGroup>
              <targetAll>false</targetAll>
            </details>
            <details>
              <criterionTypeGroup>PLACEMENT</criterionTypeGroup>
              <targetAll>false</targetAll>
            </details>
            <details>
              <criterionTypeGroup>UNKNOWN</criterionTypeGroup>
              <targetAll>false</targetAll>
            </details>
          </settings>
          <biddingStrategyConfiguration>
            <biddingStrategyType>MANUAL_CPC</biddingStrategyType>
            <biddingStrategySource>CAMPAIGN</biddingStrategySource>
            <biddingScheme 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
xsi:type="ManualCpcBiddingScheme">
              
<BiddingScheme.Type>ManualCpcBiddingScheme</BiddingScheme.Type>
              <enhancedCpcEnabled>false</enhancedCpcEnabled>
            </biddingScheme>
            <bids xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
xsi:type="CpcBid">
              <Bids.Type>CpcBid</Bids.Type>
              <bid>
                <ComparableValue.Type>Money</ComparableValue.Type>
                <microAmount>200000</microAmount>
              </bid>
              <cpcBidSource>ADGROUP</cpcBidSource>
            </bids>
            <bids xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
xsi:type="CpmBid">
              <Bids.Type>CpmBid</Bids.Type>
              <bid>
                <ComparableValue.Type>Money</ComparableValue.Type>
                <microAmount>35000000</microAmount>
              </bid>
              <cpmBidSource>ADGROUP</cpmBidSource>
            </bids>
          </biddingStrategyConfiguration>
          
<contentBidCriterionTypeGroup>PLACEMENT</contentBidCriterionTypeGroup>
          <urlCustomParameters>
            <parameters>
              <key>myadgroup</key>
              <value>%5BBANNER%5D+Remarketing+US</value>
              <isRemove>false</isRemove>
            </parameters>
            <doReplace>false</doReplace>
          </urlCustomParameters>
        </value>
      </rval>
    </mutateResponse>
  </soap:Body>
</soap:Envelope>

It does not remove *ExplorerAutoOptimizerSetting *from adgroup.

Thanks.




On Wednesday, February 17, 2016 at 1:02:18 PM UTC+5:30, Anil wrote:
>
> Hello,
>
> I have tried the same but it does not remove *ExplorerAutoOptimizerSetting 
> *from adwords account*.*
> Below are our details we are submitting for mutate process.
>
> Array
> (
>     [0] => AdGroupOperation Object
>         (
>             [operand] => AdGroup Object
>                 (
>                     [id] => 27908753009
>                     [campaignId] => 
>                     [campaignName] => 
>                     [name] => 
>                     [status] => 
>                     [settings] => Array
>                         (
>                             [0] => TargetingSetting Object
>                                 (
>                                     [details] => Array
>                                         (
>                                             [0] => TargetingSettingDetail 
> Object
>                                                 (
>                                                     [criterionTypeGroup] => 
> USER_INTEREST_AND_LIST
>                                                     [targetAll] => 
>                                                 )
>
>                                             [1] => TargetingSettingDetail 
> Object
>                                                 (
>                                                     [criterionTypeGroup] => 
> VERTICAL
>                                                     [targetAll] => 
>                                                 )
>
>                                             [2] => TargetingSettingDetail 
> Object
>                                                 (
>                                                     [criterionTypeGroup] => 
> GENDER
>                                                     [targetAll] => 
>                                                 )
>
>                                             [3] => TargetingSettingDetail 
> Object
>                                                 (
>                                                     [criterionTypeGroup] => 
> AGE_RANGE
>                                                     [targetAll] => 
>                                                 )
>
>                                             [4] => TargetingSettingDetail 
> Object
>                                                 (
>                                                     [criterionTypeGroup] => 
> PLACEMENT
>                                                     [targetAll] => 
>                                                 )
>
>                                         )
>
>                                     [SettingType] => TargetingSetting
>                                     [_parameterMap:Setting:private] => Array
>                                         (
>                                             [Setting.Type] => SettingType
>                                         )
>
>                                 )
>
>                         )
>
>                     [experimentData] => 
>                     [labels] => 
>                     [forwardCompatibilityMap] => 
>                     [biddingStrategyConfiguration] => 
>                     [contentBidCriterionTypeGroup] => 
>                     [trackingUrlTemplate] => 
>                     [urlCustomParameters] => 
>                 )
>
>             [operator] => SET
>             [OperationType] => 
>             [_parameterMap:Operation:private] => Array
>                 (
>                     [Operation.Type] => OperationType
>                 )
>
>         )
>
> )
>
>
> We do not get any error in this but *ExplorerAutoOptimizerSetting  *not 
> getting removed*.*
>
>
>
> Thanks
>
>
>
>
> On Tuesday, February 16, 2016 at 9:29:09 PM UTC+5:30, Josh Radcliff 
> (AdWords API Team) wrote:
>>
>> Hi,
>>
>> If you want to remove the *ExplorerAutoOptimizerSetting*, you can submit 
>> an AdGroupService.mutate 
>> <https://developers.google.com/adwords/api/docs/reference/v201601/AdGroupService#mutate>
>>  request 
>> with an operation where the *operator = SET* and  the *operand* (AdGroup 
>> <https://developers.google.com/adwords/api/docs/reference/v201601/AdGroupService.AdGroup>)
>>  
>> has:
>>
>>    - id 
>>    
>> <https://developers.google.com/adwords/api/docs/reference/v201601/AdGroupService.AdGroup#id>
>>  = 
>>    your ad group ID
>>    - settings 
>>    
>> <https://developers.google.com/adwords/api/docs/reference/v201601/AdGroupService.AdGroup#settings>
>>  = 
>>    an array *without* the *ExplorerAutoOptimizerSetting* 
>>    
>> Cheers,
>> Josh, AdWords API Team
>>
>> On Tuesday, February 16, 2016 at 3:41:21 AM UTC-5, Anil wrote:
>>>
>>> Hello,
>>>
>>> Is it possible to uncheck "*Let AdWords automatically find new 
>>> customers" via API? *Sending optIn = false via API set Targeting 
>>> Optimization to Conservative*. *As you mentioned How can we remove 
>>> ExplorerAutoOptimizerSetting 
>>> <https://developers.google.com/adwords/api/docs/reference/v201409/AdGroupService.ExplorerAutoOptimizerSetting>
>>>  from 
>>> ad group via API?
>>>
>>> *Thanks,*
>>>
>>>
>>> On Friday, January 23, 2015 at 3:54:45 AM UTC+5:30, Josh Radcliff 
>>> (AdWords API Team) wrote:
>>>>
>>>> Hi Nick,
>>>>
>>>> The AdWords API does not have the concept of *ad group type* - that 
>>>> appears to be an AdWords Editor feature. I don't see anything related to 
>>>> ad 
>>>> group type in the AdWords UI either.
>>>>
>>>> The *targeting optimization* setting you mentioned is configurable in 
>>>> the AdWords API by adding or removing an ExplorerAutoOptimizerSetting 
>>>> <https://developers.google.com/adwords/api/docs/reference/v201409/AdGroupService.ExplorerAutoOptimizerSetting>
>>>>  in 
>>>> your *AdGroup* object's settings collection 
>>>> <https://developers.google.com/adwords/api/docs/reference/v201409/AdGroupService.AdGroup#settings>.
>>>>  
>>>> You can further configure the *ExplorerAutoOptimizerSetting* by 
>>>> setting its optIn 
>>>> <https://developers.google.com/adwords/api/docs/reference/v201409/AdGroupService.ExplorerAutoOptimizerSetting#optIn>
>>>>  field 
>>>> as follows:
>>>>
>>>>    - false -> This is equivalent to *Conservative* targeting in the UI
>>>>    - true -> This is equivalent to *Aggressive* targeting in the UI 
>>>>    (enabling *Display Campaign Optimizer*)
>>>>
>>>> Regarding finding objects in the API that correspond to AdWords UI 
>>>> objects, the API services are organized by object type. For example, if 
>>>> you 
>>>> are looking for attributes that you set on the *Campaigns* tab in the 
>>>> UI, chances are they are on the Campaign object 
>>>> <https://developers.google.com/adwords/api/docs/reference/v201409/CampaignService.Campaign>
>>>>  in 
>>>> the CampaignService 
>>>> <https://developers.google.com/adwords/api/docs/reference/v201409/CampaignService>.
>>>>  
>>>> Similarly, *Ad groups* tab settings are mostly in the *AdGroupService*.
>>>>
>>>> Another good resource is the set of guides we have under Developer's 
>>>> Guide <https://developers.google.com/adwords/api/docs/>. These are 
>>>> grouped by Campaign, Ads, Reporting, etc., and each guide will contain 
>>>> links to the relevant services and object types for the features covered 
>>>> in 
>>>> the guide.
>>>>
>>>> Best regards,
>>>> Josh, AdWords API Team
>>>>
>>>> On Thursday, January 22, 2015 at 5:10:20 AM UTC-5, Nikola Jordanovski 
>>>> wrote:
>>>>>
>>>>> Hello, 
>>>>> so i am given a task to replicate the ad-words editor, and i am having 
>>>>> trouble making the replica using the API, because some of the features 
>>>>> are 
>>>>> very hard to find.
>>>>> Can you help me with something?
>>>>> So i am trying to set the :
>>>>>
>>>>> *Ad group type -> Default*
>>>>>
>>>>> *Targeting optimization -> Disabled*
>>>>>
>>>>>
>>>>> but can't find the appropriate API methods to do so.
>>>>>
>>>>> Can you give me a hand?
>>>>> Also what is the best practice for finding the wanted functions , 
>>>>> because the API is endless :D
>>>>>
>>>>>
>>>>> Thank you,
>>>>> Nick 
>>>>>  
>>>>>
>>>>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/f976c69d-cf22-443a-8b90-524bcb77ebcc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to