Hello there,
I'm trying to set CpcBids to 'Excluded' by mutating the
*AdGroupCriterionService*. According to this document
<https://developers.google.com/adwords/api/docs/guides/bidding#removing_bids>
I'm supposed to set the *Bid *field to 0. However, I'm getting error below:
googleads.errors.GoogleAdsServerFault: [BiddingErrors.INVALID_BID @
operations[0].operand.biddingStrategyConfiguration.bids;
trigger:'CpcBid{bid=0.000000, contentBid=null, cpcBidSource=null}']
Here are the SOAP request and response.
Outgoing request: {'SOAPAction': '""', 'Content-Type': 'text/xml;
charset=utf-8', 'authorization': 'REDACTED'}
<soap-env:Envelope
xmlns:soap-env="http://schemas.xmlsoap.org/soap/envelope/">
<soap-env:Header>
<ns0:RequestHeader
xmlns:ns0="https://adwords.google.com/api/adwords/cm/v201806">
<ns0:clientCustomerId>167-649-9151</ns0:clientCustomerId>
<ns0:developerToken>REDACTED</ns0:developerToken>
<ns0:userAgent>unknown (AwApi-Python, googleads/12.2.0,
Python/2.7.15, zeep)</ns0:userAgent>
<ns0:validateOnly>false</ns0:validateOnly>
<ns0:partialFailure>false</ns0:partialFailure>
</ns0:RequestHeader>
</soap-env:Header>
<soap-env:Body>
<ns0:mutate
xmlns:ns0="https://adwords.google.com/api/adwords/cm/v201806">
<ns0:operations>
<ns0:operator>SET</ns0:operator>
<ns0:operand xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="ns0:BiddableAdGroupCriterion">
<ns0:adGroupId>63041570771</ns0:adGroupId>
<ns0:criterion xsi:type="ns0:ProductPartition">
<ns0:id>306384781405</ns0:id>
</ns0:criterion>
<ns0:biddingStrategyConfiguration>
<ns0:bids xsi:type="ns0:CpcBid">
<ns0:bid>
<ns0:microAmount>0</ns0:microAmount>
</ns0:bid>
<ns0:cpcBidSource>CRITERION</ns0:cpcBidSource>
</ns0:bids>
</ns0:biddingStrategyConfiguration>
</ns0:operand>
</ns0:operations>
</ns0:mutate>
</soap-env:Body>
</soap-env:Envelope>
Incoming response:
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Header>
<ResponseHeader
xmlns="https://adwords.google.com/api/adwords/cm/v201806">
<requestId>000571c50ed874e00aa78615f80ef8c9</requestId>
<serviceName>AdGroupCriterionService</serviceName>
<methodName>mutate</methodName>
<operations>1</operations>
<responseTime>163</responseTime>
</ResponseHeader>
</soap:Header>
<soap:Body>
<soap:Fault>
<faultcode>soap:Client</faultcode>
<faultstring>[BiddingErrors.INVALID_BID @
operations[0].operand.biddingStrategyConfiguration.bids;
trigger:'CpcBid{bid=0.000000, contentBid=null,
cpcBidSource=null}']</faultstring>
<detail>
<ApiExceptionFault
xmlns="https://adwords.google.com/api/adwords/cm/v201806">
<message>[BiddingErrors.INVALID_BID @
operations[0].operand.biddingStrategyConfiguration.bids;
trigger:'CpcBid{bid=0.000000, 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>
<fieldPathElements>
<field>operations</field>
<index>0</index>
</fieldPathElements>
<fieldPathElements>
<field>operand</field>
</fieldPathElements>
<fieldPathElements>
<field>biddingStrategyConfiguration</field>
</fieldPathElements>
<fieldPathElements>
<field>bids</field>
</fieldPathElements>
<trigger>CpcBid{bid=0.000000, 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>
The error is complaining about the bid being 0.000000 where in the request
I'm setting it to integer 0. Could anyone help me look into this?
Thanks!
Emma
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
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 and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
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/232da718-9497-42ff-8189-98114192b53b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.