problem with big product partitions removal

108 views
Skip to first unread message

Radosław Pociecha

unread,
Jul 15, 2014, 4:56:31 AM7/15/14
to adwor...@googlegroups.com
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: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>
      <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>
      <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

Anash P. Oommen (AdWords API Team)

unread,
Jul 15, 2014, 3:26:24 PM7/15/14
to adwor...@googlegroups.com
Hi Radoslaw,

I believe you shouldn't be receiving this error. I'll open a request with the Shopping team and ask them to investigate this further.

Cheers,
Anash P. Oommen,
AdWords API Advisor.

Anash P. Oommen (AdWords API Team)

unread,
Jul 23, 2014, 9:58:56 AM7/23/14
to adwor...@googlegroups.com
Hi Radoslaw,

Could you try deleting the product partition tree in one operation, and then create it again in another operation? Post the request and response xmls if that doesn't work.

Cheers,
Anash P. Oommen,
AdWords API Advisor.

Radosław Pociecha

unread,
Aug 8, 2014, 3:06:49 AM8/8/14
to adwor...@googlegroups.com
Hi,

when we are sending only REMOVE request we are getting this error too:

SOAP request:
<?xml version="1.0" encoding="utf-8"?>
  <soapenv:Header>
    <!-- SOAP header removed -->
  </soapenv:Header>
  <soapenv:Body>
      <operations>
        <operator>REMOVE</operator>
        <operand xsi:type="ns2:BiddableAdGroupCriterion" xmlns:ns2="https://adwords.google.com/api/adwords/cm/v201402">
          <ns2:adGroupId>15335248692</ns2:adGroupId>
          <ns2:criterion xsi:type="ns2:ProductPartition">
            <ns2:id>18283950120</ns2:id>
            <ns2:type>PRODUCT_PARTITION</ns2:type>
            <ns2:Criterion.Type>ProductPartition</ns2:Criterion.Type>
          </ns2:criterion>
          <ns2:AdGroupCriterion.Type>BiddableAdGroupCriterion</ns2:AdGroupCriterion.Type>
        </operand>
      </operations>
    </mutate>
  </soapenv:Body>
</soapenv:Envelope>

SOAP response:
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Header>
      <requestId>00050018bc5aca380aecdc63e4005d16</requestId>
      <serviceName>AdGroupCriterionService</serviceName>
      <methodName>mutate</methodName>
      <operations>0</operations>
      <responseTime>3021</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>

Regards
Radosław Pociecha

Anash P. Oommen (AdWords API Team)

unread,
Aug 8, 2014, 9:52:10 AM8/8/14
to adwor...@googlegroups.com
Hi Radosław,

Thanks for providing the logs, I've provided the additional details to the team investigating this error. I'll keep you updated.

Cheers,
Anash

Eshaan Jayalath

unread,
Aug 27, 2014, 9:33:25 PM8/27/14
to adwor...@googlegroups.com
Hi Anash,

I am receiving the same error REQUEST_SIZE_LIMIT_EXCEEDED when creating a Partition, do we have 5000 limit on Partition node as well?

Regards

Eshaan



On Tuesday, July 15, 2014 3:26:24 PM UTC-4, Anash P. Oommen (AdWords API Team) wrote:

Anash P. Oommen (AdWords API Team)

unread,
Sep 4, 2014, 3:02:06 PM9/4/14
to adwor...@googlegroups.com
Hi Eshaan,

Do you have a request id for the 5000-node partition?

Cheers,
Anash P. Oommen,
AdWords API Advisor.

Reply all
Reply to author
Forward
0 new messages