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:
<s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<mutate xmlns="https://adwords.google.com/api/adwords/cm/v201509">
<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>
<ResponseHeader xmlns="https://adwords.google.com/api/adwords/cm/v201509">
<requestId>00052ad44b884f380a4c49679b08c536</requestId>
<serviceName>AdGroupCriterionService</serviceName>
<methodName>get</methodName>
<operations>1</operations>
<responseTime>384</responseTime>
</ResponseHeader>
</soap:Header>
<soap:Body>
<getResponse xmlns="https://adwords.google.com/api/adwords/cm/v201509">
<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>
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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+unsubscribe@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+unsubscribe@googlegroups.com.
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/bb791219-e69c-4d81-92b0-2fca576ce758%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment