Error Creating Root Product Partition

98 views
Skip to first unread message

Justin

unread,
Feb 3, 2016, 8:28:05 AM2/3/16
to AdWords API Forum

In the AdWords UI it gives you this option when creating an Ad Group under the shopping campaign type:

"Start with one product group with a single bid for all products"

I'm trying to duplicate that, but getting this error:

[AdGroupCriterionError.CRITERIA_TYPE_INVALID_FOR_BIDDING_STRATEGY_CONFIGURATION @ operations[0].operand.criterion]

I created a test ad group using "Start with one product group with a single bid for all products" and then imported it to inspect the object and I'm creating it the exact same way as it's being returned when I get that root product partition.

See my request and response SOAP XML below.

I know for a subdivision I need to create the "ALL OTHERS" empty case value.  However, when looking at the ad group criterion object I get back I just get back one object with a UNIT type.

In AdWords it displays it as just "All Products", with a + next to it, and you can set a bid on the product group.

CREATE PRODUCT PARTITION REQUEST:

      <operations>
        <operator>ADD</operator>
        <operand xsi:type="BiddableAdGroupCriterion">
          <adGroupId>3220668XXXX</adGroupId>
          <criterionUse>BIDDABLE</criterionUse>
          <criterion xsi:type="ProductPartition">
            <id>-1</id>
            <type>PRODUCT_PARTITION</type>
            <partitionType>UNIT</partitionType>
          </criterion>
          <biddingStrategyConfiguration>
            <biddingStrategyType>MANUAL_CPC</biddingStrategyType>
            <bids xsi:type="CpcBid">
              <bid>
                <microAmount>250000</microAmount>
              </bid>
            </bids>
            <bids xsi:type="CpmBid">
              <bid>
                <microAmount>250000</microAmount>
              </bid>
            </bids>
          </biddingStrategyConfiguration>
        </operand>
      </operations>
    </mutate>
  </s:Body>

RESPONSE:

  <soap:Body>
    <soap:Fault>
      <faultcode>soap:Server</faultcode>
      <faultstring>[AdGroupCriterionError.CRITERIA_TYPE_INVALID_FOR_BIDDING_STRATEGY_CONFIGURATION @ operations[0].operand.criterion]</faultstring>
      <detail>
        <ApiExceptionFault xmlns="https://adwords.google.com/api/adwords/cm/v201509">
          <message>[AdGroupCriterionError.CRITERIA_TYPE_INVALID_FOR_BIDDING_STRATEGY_CONFIGURATION @ operations[0].operand.criterion]</message>
          <ApplicationException.Type>ApiException</ApplicationException.Type>
          <errors xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="AdGroupCriterionError">
            <fieldPath>operations[0].operand.criterion</fieldPath>
            <trigger>
            </trigger>
            <errorString>AdGroupCriterionError.CRITERIA_TYPE_INVALID_FOR_BIDDING_STRATEGY_CONFIGURATION</errorString>
            <ApiError.Type>AdGroupCriterionError</ApiError.Type>
            <reason>UNKNOWN</reason>
          </errors>
        </ApiExceptionFault>
      </detail>
    </soap:Fault>
  </soap:Body>

HERE IS WHAT I'M TRYING TO DUPLICATE AND WHAT THE PRODUCT GROUP I CREATED LOOKS LIKE ON A REQUEST:

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Header>
      <requestId>00052ad44b884f380a4c49679b08c536</requestId>
      <serviceName>AdGroupCriterionService</serviceName>
      <methodName>get</methodName>
      <operations>1</operations>
      <responseTime>384</responseTime>
    </ResponseHeader>
  </soap:Header>
  <soap:Body>
      <rval>
        <totalNumEntries>1</totalNumEntries>
        <Page.Type>AdGroupCriterionPage</Page.Type>
        <entries xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="BiddableAdGroupCriterion">
          <adGroupId>33190889968</adGroupId>
          <criterionUse>BIDDABLE</criterionUse>
          <criterion xsi:type="ProductPartition">
            <id>18283950120</id>
            <type>PRODUCT_PARTITION</type>
            <Criterion.Type>ProductPartition</Criterion.Type>
            <partitionType>UNIT</partitionType>
          </criterion>
          <AdGroupCriterion.Type>BiddableAdGroupCriterion</AdGroupCriterion.Type>
          <userStatus>ENABLED</userStatus>
          <systemServingStatus>ELIGIBLE</systemServingStatus>
          <approvalStatus>APPROVED</approvalStatus>
          <biddingStrategyConfiguration>
            <biddingStrategyType>MANUAL_CPC</biddingStrategyType>
            <biddingStrategySource>CAMPAIGN</biddingStrategySource>
            <bids xsi:type="CpcBid">
              <Bids.Type>CpcBid</Bids.Type>
              <bid>
                <ComparableValue.Type>Money</ComparableValue.Type>
                <microAmount>10000</microAmount>
              </bid>
              <cpcBidSource>CRITERION</cpcBidSource>
            </bids>
            <bids xsi:type="CpmBid">
              <Bids.Type>CpmBid</Bids.Type>
              <bid>
                <ComparableValue.Type>Money</ComparableValue.Type>
                <microAmount>10000</microAmount>
              </bid>
              <cpmBidSource>ADGROUP</cpmBidSource>
            </bids>
          </biddingStrategyConfiguration>
        </entries>
      </rval>
    </getResponse>
  </soap:Body>
</soap:Envelope>

Yin Niu

unread,
Feb 3, 2016, 2:59:20 PM2/3/16
to AdWords API Forum
Hello, 

BiddingScheme or BiddingStrategyType is not allowed to be set at the ad group or criterion level. If you remove the lines setting biddingStrategyType, it should work.

Thanks,
Yin, AdWords API Team. 
Reply all
Reply to author
Forward
0 new messages