Unable to set Max CPC bid

375 views
Skip to first unread message

Ondřej P

unread,
Jun 22, 2017, 6:58:27 AM6/22/17
to AdWords API Forum
Hi,

I try to migrate to API v201705 (Java SDK) and there is a change in Bidding Strategy settings. In latest API version it is not possible to set bidding strategy at ad group level.(source: https://developers.google.com/adwords/api/docs/guides/migration/v201705) So, I followed the migration guide and moved bidding strategy settings to the campaign level, but I got following error(BiddingErrors.BIDS_NOT_ALLLOWED) I use Manual CPC strategy and I want to set Max CPC Bid. I found in Reference, that it is not possible to set Bid at the campaign level. (soruce: https://developers.google.com/adwords/api/docs/reference/v201705/CampaignService.Campaign#biddingstrategyconfiguration

Is there some way how to set Max CPC bid for whole campaign/ad group like in older versions? Thank you. 

Response:
   <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
    <soap:Header>
        <ResponseHeader xmlns="https://adwords.google.com/api/adwords/cm/v201705">
            <requestId>00055289eb15ade80a374152c7090c8f</requestId>
            <serviceName>CampaignService</serviceName>
            <methodName>mutate</methodName>
            <operations>1</operations>
            <responseTime>255</responseTime>
        </ResponseHeader>
    </soap:Header>
    <soap:Body>
        <soap:Fault>
            <faultcode>soap:Server</faultcode>
            <faultstring>[BiddingErrors.BIDS_NOT_ALLLOWED @ operations[0].operand.biddingStrategyConfiguration.bids]</faultstring>
            <detail>
                <ApiExceptionFault xmlns="https://adwords.google.com/api/adwords/cm/v201705">
                    <message>[BiddingErrors.BIDS_NOT_ALLLOWED @ operations[0].operand.biddingStrategyConfiguration.bids]</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/>
                        <errorString>BiddingErrors.BIDS_NOT_ALLLOWED</errorString>
                        <ApiError.Type>BiddingErrors</ApiError.Type>
                        <reason>BIDS_NOT_ALLLOWED</reason>
                    </errors>
                </ApiExceptionFault>
            </detail>
        </soap:Fault>
    </soap:Body>
</soap:Envelope>

Request:
    <soapenv:Header>
        <ns1:RequestHeader xmlns:ns1="https://adwords.google.com/api/adwords/cm/v201705" soapenv:mustUnderstand="0">
            <ns1:clientCustomerId>REDACTED</ns1:clientCustomerId>
            <ns1:developerToken>REDACTED</ns1:developerToken>
            <ns1:userAgent>ROI-Hunter (AwApi-Java, AdWords-Axis/3.4.0, Common-Java/3.4.0, Axis/1.4, Java/1.8.0_72, maven)</ns1:userAgent>
            <ns1:validateOnly>false</ns1:validateOnly>
            <ns1:partialFailure>false</ns1:partialFailure>
        </ns1:RequestHeader>
    </soapenv:Header>
    <soapenv:Body>
            <operations>
                <operator>ADD</operator>
                <operand>
                    <name>DYN_REM Product views 9oq</name>
                    <status>ENABLED</status>
                    <servingStatus>NONE</servingStatus>
                    <startDate>20170622</startDate>
                    <endDate>20270622</endDate>
                    <budget>
                        <budgetId>1141944191</budgetId>
                    </budget>
                    <adServingOptimizationStatus>CONVERSION_OPTIMIZE</adServingOptimizationStatus>
                    <frequencyCap>
                        <impressions>6</impressions>
                        <timeUnit>DAY</timeUnit>
                        <level>CREATIVE</level>
                    </frequencyCap>
                    <settings xmlns:ns2="https://adwords.google.com/api/adwords/cm/v201705" xsi:type="ns2:GeoTargetTypeSetting">
                        <ns2:Setting.Type>GeoTargetTypeSetting</ns2:Setting.Type>
                        <ns2:positiveGeoTargetType>DONT_CARE</ns2:positiveGeoTargetType>
                        <ns2:negativeGeoTargetType>DONT_CARE</ns2:negativeGeoTargetType>
                    </settings>
                    <settings xmlns:ns3="https://adwords.google.com/api/adwords/cm/v201705" xsi:type="ns3:ShoppingSetting">
                        <ns3:Setting.Type>ShoppingSetting</ns3:Setting.Type>
                        <ns3:merchantId>117137769</ns3:merchantId>
                        <ns3:salesCountry>ZZ</ns3:salesCountry>
                        <ns3:campaignPriority>0</ns3:campaignPriority>
                    </settings>
                    <advertisingChannelType>DISPLAY</advertisingChannelType>
                    <networkSetting>
                        <targetGoogleSearch>false</targetGoogleSearch>
                        <targetSearchNetwork>false</targetSearchNetwork>
                        <targetContentNetwork>true</targetContentNetwork>
                        <targetPartnerSearchNetwork>false</targetPartnerSearchNetwork>
                    </networkSetting>
                    <biddingStrategyConfiguration>
                        <biddingStrategyType>MANUAL_CPC</biddingStrategyType>
                        <bids xmlns:ns4="https://adwords.google.com/api/adwords/cm/v201705" xsi:type="ns4:CpcBid">
                            <ns4:bid>
                                <ns4:microAmount>7650000</ns4:microAmount>
                            </ns4:bid>
                        </bids>
                    </biddingStrategyConfiguration>
                    <campaignTrialType>BASE</campaignTrialType>
                </operand>
            </operations>
        </mutate>
    </soapenv:Body>
</soapenv:Envelope>

Sreelakshmi Sasidharan (AdWords API Team)

unread,
Jun 22, 2017, 2:23:11 PM6/22/17
to AdWords API Forum
Hi Ondřej, 

Are you trying to create a shopping campaign? If so, please check this document to understand the bidding restrictions for the shopping campaigns. For SHOPPING_SHOWCASE_ADS, the bids have to be set at the AdGroup level and for the SHOPPING_PRODUCT_ADS the bids should be set at the product partition level. Also, please note that the advertisingChannelType of the campaign should be "SHOPPING" for these campaigns. You can refer to the samples : AddShoppingCampaign.java and AddShoppingCampaignForShowcaseAds.java based on what you are trying to create. 

If you are not trying to create a shopping campaign, please let me know the exact specifications of the campaign type so that I can assist you better. 

Thanks,
Sreelakshmi, AdWords API Team

Ondřej P

unread,
Jun 23, 2017, 3:09:57 AM6/23/17
to AdWords API Forum
Hi Sreelakshmi,


I want to create Display network only campaign and I use ShoppingSetting there because of dynamic remarketing. I'm happy with my campaign settings. My problem is, that I'm unable to set Manual CPC bid value at ad group level (this functionality was removed in latest API version) or at campaign level (error BiddingErrors.BIDS_NOT_ALLLOWED). I used Manual CPC bid settings at ad group level in older API version (V201609) and everything worked fine, but this is no longer supported. Is there some way how to set Manual CPC bid value for whole campaign or ad group in API v201705?

Thank you!

Dne čtvrtek 22. června 2017 20:23:11 UTC+2 Sreelakshmi Sasidharan (AdWords API Team) napsal(a):

Sreelakshmi Sasidharan (AdWords API Team)

unread,
Jun 23, 2017, 2:00:47 PM6/23/17
to AdWords API Forum
Hi Ondřej, 

The change in V201705 version with respect to bidding was that the bidding strategy cannot be overriden at the ad group and keyword criterion levels. They will have to be set at campaign level. This applies to only biddingStrategyType, biddingStrategyId, and biddingScheme. There is no change in setting the bid value. Bids can be set only on ad groups and ad group criteria. Bids cannot be set on a campaign. You can refer to the campaign2 in this sample to create a DISPLAY campaign. Hope this clarifies your question. 

Please note that setting the ShoppingSetting in a DISPLAY campaign will result in an error as this applies only for a SHOPPING campaign. 
Reply all
Reply to author
Forward
0 new messages