Can't set CpcBid to 'Excluded'

44 views
Skip to first unread message

Emma Rong

unread,
Jul 25, 2018, 6:08:02 PM7/25/18
to adwor...@googlegroups.com
Hello there,

I'm trying to set CpcBids to 'Excluded' by mutating the  AdGroupCriterionService. According to this document 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>xxx-xxx-xxxx</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:operations>
        <ns0:operator>SET</ns0:operator>
        <ns0:operand xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ns0:BiddableAdGroupCriterion">
          <ns0:adGroupId>xxxxxxxxxxx</ns0:adGroupId>
          <ns0:criterion xsi:type="ns0:ProductPartition">
            <ns0:id>xxxxxxxxxxxx</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>
      <requestId>xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx</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

Luis Xander Talag (AdWords API Team)

unread,
Jul 25, 2018, 11:57:58 PM7/25/18
to AdWords API and Google Ads API Forum
Hi Emma,

I already reply to you on our existing private thread. If you still have further clarifications, we could continue our discussion on that private thread.

Thanks and regards,
Luis
AdWords API Team
Reply all
Reply to author
Forward
0 new messages