Set MaxCpC for shopping partition doesnt work any more in v201506

159 views
Skip to first unread message

Alex

unread,
Aug 18, 2015, 10:46:57 AM8/18/15
to AdWords API Forum
In v201502 it was possible to set MaxCpc for shopping product partions. In v201506 we get BiddingErrors.INVALID_BID.
I found nothing relevant in https://developers.google.com/adwords/api/docs/guides/migration/v201506
or https://developers.google.com/adwords/api/docs/reference/ .

What can we do?

<?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 xmlns:ns1="https://adwords.google.com/api/adwords/cm/v201506" soapenv:mustUnderstand="0">
            <ns1:clientCustomerId>1645187874</ns1:clientCustomerId>
            <ns1:developerToken>removed</ns1:developerToken>
            <ns1:userAgent>ads2people sem editor (AwApi-Java, AdWords-Axis/2.2.0, Common-Java/2.2.0, Axis/1.4, Java/1.8.0_05, maven)</ns1:userAgent>
            <ns1:validateOnly>false</ns1:validateOnly>
            <ns1:partialFailure>false</ns1:partialFailure>
        </ns1:RequestHeader>
    </soapenv:Header>
    <soapenv:Body>
        <mutate xmlns="https://adwords.google.com/api/adwords/cm/v201506">
            <operations>
                <operator>SET</operator>
                <operand xmlns:ns2="https://adwords.google.com/api/adwords/cm/v201506" xsi:type="ns2:BiddableAdGroupCriterion">
                    <ns2:adGroupId>20148587642</ns2:adGroupId>
                    <ns2:criterion xsi:type="ns2:Keyword">
                        <ns2:id>65168470096</ns2:id>
                    </ns2:criterion>
                    <ns2:biddingStrategyConfiguration>
                        <ns2:bids xsi:type="ns2:CpcBid">
                            <ns2:bid>
                                <ns2:microAmount>290000</ns2:microAmount>
                            </ns2:bid>
                        </ns2:bids>
                    </ns2:biddingStrategyConfiguration>
                </operand>
            </operations>
        </mutate>
    </soapenv:Body>
</soapenv:Envelope>


<?xml version="1.0" encoding="UTF-8"?><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
    <soap:Header>
        <ResponseHeader xmlns="https://adwords.google.com/api/adwords/cm/v201506">
            <requestId>00051d96beecd4090a8191513c0ca591</requestId>
            <serviceName>AdGroupCriterionService</serviceName>
            <methodName>mutate</methodName>
            <operations>0</operations>
            <responseTime>48</responseTime>
        </ResponseHeader>
    </soap:Header>
    <soap:Body>
        <soap:Fault>
            <faultcode>soap:Server</faultcode>
            <faultstring>[BiddingErrors.INVALID_BID @ operations[0].operand.biddingStrategyConfiguration.bids; trigger:'CpcBid{bid=0.290000, contentBid=null, cpcBidSource=null}']</faultstring>
            <detail>
                <ApiExceptionFault xmlns="https://adwords.google.com/api/adwords/cm/v201506">
                    <message>[BiddingErrors.INVALID_BID @ operations[0].operand.biddingStrategyConfiguration.bids; trigger:'CpcBid{bid=0.290000, contentBid=null, cpcBidSource=null}']</message>
                    <ApplicationException.Type>ApiException</ApplicationException.Type>
                    <errors xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="BiddingErrors">
                        <fieldPath>operations[0].operand.biddingStrategyConfiguration.bids</fieldPath>
                        <trigger>CpcBid{bid=0.290000, contentBid=null, cpcBidSource=null}</trigger>
                        <errorString>BiddingErrors.INVALID_BID</errorString>
                        <ApiError.Type>BiddingErrors</ApiError.Type>
                        <reason>INVALID_BID</reason>
                    </errors>
                </ApiExceptionFault>
            </detail>
        </soap:Fault>
    </soap:Body>
</soap:Envelope>

Anthony Madrigal

unread,
Aug 18, 2015, 11:52:14 AM8/18/15
to AdWords API Forum
Hey Alex,

Based on your SOAP request, it seems that your criterion type is Keyword. Since you want to set the bid for product partitions, try setting the criterion type to ProductPartition. Once you do that, make sure you have all the required fields and set the bid.

If you are still facing the same issue after doing all this, please let me know.

Cheers,
Anthony
AdWords API Team

Alex

unread,
Aug 19, 2015, 3:40:51 AM8/19/15
to AdWords API Forum
Hi Anthony,

thank you for your help. As suggested I replaced "keyword" by "productPartition". The only required field for ProductPartition is Id. For "ADD"-operations "partitionType" is also requried, but I do an "SET"-operation. Just to be sure, I added a partitionType to my request, but it didnt help either. Keep getting INVALID_BID errors.


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 xmlns:ns1="https://adwords.google.com/api/adwords/cm/v201506" soapenv:mustUnderstand="0">
            <ns1:clientCustomerId>1645187874</ns1:clientCustomerId>
            <ns1:developerToken>removed</ns1:developerToken>
            <ns1:userAgent>ads2people sem editor (AwApi-Java, AdWords-Axis/2.2.0, Common-Java/2.2.0, Axis/1.4, Java/1.8.0_05, maven)</ns1:userAgent>
            <ns1:validateOnly>false</ns1:validateOnly>
            <ns1:partialFailure>false</ns1:partialFailure>
        </ns1:RequestHeader>
    </soapenv:Header>
    <soapenv:Body>
        <mutate xmlns="https://adwords.google.com/api/adwords/cm/v201506">
            <operations>
                <operator>SET</operator>
                <operand xmlns:ns2="https://adwords.google.com/api/adwords/cm/v201506" xsi:type="ns2:BiddableAdGroupCriterion">
                    <ns2:adGroupId>20148587642</ns2:adGroupId>
                    <ns2:criterion xsi:type="ns2:ProductPartition">

                        <ns2:id>65168470096</ns2:id>
                        <ns2:partitionType>SUBDIVISION</ns2:partitionType>

                    </ns2:criterion>
                    <ns2:biddingStrategyConfiguration>
                        <ns2:bids xsi:type="ns2:CpcBid">
                            <ns2:bid>
                                <ns2:microAmount>290000</ns2:microAmount>
                            </ns2:bid>
                        </ns2:bids>
                    </ns2:biddingStrategyConfiguration>
                </operand>
            </operations>
        </mutate>
    </soapenv:Body>
</soapenv:Envelope>


SOAP Response:

<?xml version="1.0" encoding="UTF-8"?><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
    <soap:Header>
        <ResponseHeader xmlns="https://adwords.google.com/api/adwords/cm/v201506">
            <requestId>00051da50a5597000a0dd0c77e051fb1</requestId>

            <serviceName>AdGroupCriterionService</serviceName>
            <methodName>mutate</methodName>
            <operations>0</operations>
            <responseTime>84</responseTime>

        </ResponseHeader>
    </soap:Header>
    <soap:Body>
        <soap:Fault>
            <faultcode>soap:Server</faultcode>
            <faultstring>[BiddingErrors.INVALID_BID @ operations[0].operand.biddingStrategyConfiguration.bids; trigger:'CpcBid{bid=0.290000, contentBid=null, cpcBidSource=null}']</faultstring>
            <detail>
                <ApiExceptionFault xmlns="https://adwords.google.com/api/adwords/cm/v201506">
                    <message>[BiddingErrors.INVALID_BID @ operations[0].operand.biddingStrategyConfiguration.bids; trigger:'CpcBid{bid=0.290000, contentBid=null, cpcBidSource=null}']</message>
                    <ApplicationException.Type>ApiException</ApplicationException.Type>
                    <errors xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="BiddingErrors">
                        <fieldPath>operations[0].operand.biddingStrategyConfiguration.bids</fieldPath>
                        <trigger>CpcBid{bid=0.290000, contentBid=null, cpcBidSource=null}</trigger>
                        <errorString>BiddingErrors.INVALID_BID</errorString>
                        <ApiError.Type>BiddingErrors</ApiError.Type>
                        <reason>INVALID_BID</reason>
                    </errors>
                </ApiExceptionFault>
            </detail>
        </soap:Fault>
    </soap:Body>
</soap:Envelope>






Josh Radcliff (AdWords API Team)

unread,
Aug 19, 2015, 2:11:08 PM8/19/15
to AdWords API Forum
Hi Alex,

I see that the partition in your request is a SUBDIVISION partition. I think this is what's leading to the error, since bids can only be set on UNIT partitions. Please try updating the bid on a UNIT partition and let me know if you still encounter issues.

Thanks,
Josh, AdWords API Team

Alex

unread,
Aug 21, 2015, 5:18:27 AM8/21/15
to AdWords API Forum
Hi Josh,

you are completely right. It was a SUBDIVISION. It works for UNIT nodes without problems. Thank you very much. A more pointed error-message would be helpfull. INVALID_BID sounds like something wrong with the bid. I was looking in the wrong direction. But now its solved.

Thanks
Alex
Reply all
Reply to author
Forward
0 new messages