Hi,

We are having trouble with removing big product partitions (20000 of nodes 
in tree), after creating such tree with api we are not able to replace 
whole tree with single leaf:

SOAP request
<?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/v201402";>
      <ns1:developerToken 
soapenv:actor="http://schemas.xmlsoap.org/soap/actor/next"; 
soapenv:mustUnderstand="0">__REMOVED__</ns1:developerToken>
      <ns1:userAgent 
soapenv:actor="http://schemas.xmlsoap.org/soap/actor/next"; 
soapenv:mustUnderstand="0">__REMOVED__</ns1:userAgent>
      <ns1:clientCustomerId 
soapenv:actor="http://schemas.xmlsoap.org/soap/actor/next"; 
soapenv:mustUnderstand="0">__REMOVED__</ns1:clientCustomerId>
      <ns1:partialFailure 
soapenv:actor="http://schemas.xmlsoap.org/soap/actor/next"; 
soapenv:mustUnderstand="0" />
    </ns1:RequestHeader>
  </soapenv:Header>
  <soapenv:Body>
    <mutate xmlns="https://adwords.google.com/api/adwords/cm/v201402";>
      <operations>
        <operator>REMOVE</operator>
        <Operation.Type>AdGroupCriterionOperation</Operation.Type>
        <operand xsi:type="ns2:BiddableAdGroupCriterion" 
xmlns:ns2="https://adwords.google.com/api/adwords/cm/v201402";>
          <ns2:adGroupId>__ADGROUP_ID__</ns2:adGroupId>
          <ns2:criterion xsi:type="ns2:ProductPartition">
            <ns2:id>18283950120</ns2:id>
            <ns2:Criterion.Type>ProductPartition</ns2:Criterion.Type>
            <ns2:partitionType>SUBDIVISION</ns2:partitionType>
          </ns2:criterion>
          
<ns2:AdGroupCriterion.Type>BiddableAdGroupCriterion</ns2:AdGroupCriterion.Type>
        </operand>
      </operations>
      <operations>
        <operator>ADD</operator>
        <Operation.Type>AdGroupCriterionOperation</Operation.Type>
        <operand xsi:type="ns3:BiddableAdGroupCriterion" 
xmlns:ns3="https://adwords.google.com/api/adwords/cm/v201402";>
          <ns3:adGroupId>__ADGROUP_ID__</ns3:adGroupId>
          <ns3:criterion xsi:type="ns3:ProductPartition">
            <ns3:id>-1</ns3:id>
            <ns3:Criterion.Type>ProductPartition</ns3:Criterion.Type>
            <ns3:partitionType>UNIT</ns3:partitionType>
          </ns3:criterion>
          
<ns3:AdGroupCriterion.Type>BiddableAdGroupCriterion</ns3:AdGroupCriterion.Type>
          <ns3:biddingStrategyConfiguration>
            <ns3:bids xsi:type="ns3:CpcBid">
              <ns3:Bids.Type>CpcBid</ns3:Bids.Type>
              <ns3:bid>
                <ns3:microAmount>110000</ns3:microAmount>
              </ns3:bid>
              <ns3:cpcBidSource>CRITERION</ns3:cpcBidSource>
            </ns3:bids>
          </ns3:biddingStrategyConfiguration>
        </operand>
      </operations>
    </mutate>
  </soapenv:Body>
</soapenv:Envelope>


SOAP response
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/";>
  <soap:Header>
    <ResponseHeader 
xmlns="https://adwords.google.com/api/adwords/cm/v201402";>
      <requestId>0004fe377dbf6fc80aecce5082007ea9</requestId>
      <serviceName>AdGroupCriterionService</serviceName>
      <methodName>mutate</methodName>
      <operations>0</operations>
      <responseTime>11625</responseTime>
    </ResponseHeader>
  </soap:Header>
  <soap:Body>
    <soap:Fault>
      <faultcode>soap:Server</faultcode>
      <faultstring>[SizeLimitError.REQUEST_SIZE_LIMIT_EXCEEDED @ 
]</faultstring>
      <detail>
        <ApiExceptionFault 
xmlns="https://adwords.google.com/api/adwords/cm/v201402";>
          <message>[SizeLimitError.REQUEST_SIZE_LIMIT_EXCEEDED @ ]</message>
          
<ApplicationException.Type>ApiException</ApplicationException.Type>
          <errors xsi:type="SizeLimitError" 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
            <fieldPath />
            <trigger />
            
<errorString>SizeLimitError.REQUEST_SIZE_LIMIT_EXCEEDED</errorString>
            <ApiError.Type>SizeLimitError</ApiError.Type>
            <reason>REQUEST_SIZE_LIMIT_EXCEEDED</reason>
          </errors>
        </ApiExceptionFault>
      </detail>
    </soap:Fault>
  </soap:Body>
</soap:Envelope>

is this a correct way to replace the whole tree ?

Regards
Radosław Pociecha

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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