Error CANNOT_ATTACH_BIDDING_STRATEGY_TO_ADGROUP /_CAMPAIGN

407 views
Skip to first unread message

Georg Döhring

unread,
Dec 1, 2014, 11:32:52 AM12/1/14
to adwor...@googlegroups.com
Hello,

we're having trouble creating/updating object with some biddingStrategies. When trying to create/update we're receiving an "CANNOT_ATTACH_BIDDING_STRATEGY_TO_CAMPAIGN"-Error.

This is the request:
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:ns1="https://adwords.google.com/api/adwords/cm/v201406"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<SOAP-ENV:Header>
<ns1:RequestHeader>
<ns1:clientCustomerId>xxxxxxxxxxx</ns1:clientCustomerId>
<ns1:developerToken>xxxxxxxxxxxxx</ns1:developerToken>
<ns1:userAgent>xxxxxxxxxxxxx
</ns1:userAgent>
</ns1:RequestHeader>
</SOAP-ENV:Header>
<SOAP-ENV:Body>
<ns1:mutate>
<ns1:operations>
<ns1:operator>ADD</ns1:operator>
<ns1:operand>
<ns1:name>SHELL Testkampagne 547c80bc970ef</ns1:name>
<ns1:status>ENABLED</ns1:status>
<ns1:startDate>20141201</ns1:startDate>
<ns1:endDate>20371230</ns1:endDate>
<ns1:budget>
<ns1:budgetId>183654574</ns1:budgetId>
</ns1:budget>
<ns1:adServingOptimizationStatus>ROTATE</ns1:adServingOptimizationStatus>
<ns1:frequencyCap/>
<ns1:settings xsi:type="ns1:KeywordMatchSetting">
<ns1:optIn>true</ns1:optIn>
</ns1:settings>
<ns1:settings xsi:type="ns1:DynamicSearchAdsSetting">
<ns1:domainName>intelliad.com</ns1:domainName>
<ns1:languageCode>en</ns1:languageCode>
</ns1:settings>
<ns1:advertisingChannelType>SEARCH</ns1:advertisingChannelType>
<ns1:networkSetting>
<ns1:targetGoogleSearch>true</ns1:targetGoogleSearch>
<ns1:targetSearchNetwork>true</ns1:targetSearchNetwork>
<ns1:targetContentNetwork>false</ns1:targetContentNetwork>
<ns1:targetPartnerSearchNetwork>false</ns1:targetPartnerSearchNetwork>
</ns1:networkSetting>
<ns1:biddingStrategyConfiguration>
<ns1:biddingStrategyType>BUDGET_OPTIMIZER</ns1:biddingStrategyType>
<ns1:biddingScheme xsi:type="ns1:BudgetOptimizerBiddingScheme">
<ns1:bidCeiling>
<ns1:microAmount>500000</ns1:microAmount>
</ns1:bidCeiling>
<ns1:enhancedCpcEnabled>false</ns1:enhancedCpcEnabled>
</ns1:biddingScheme>
</ns1:biddingStrategyConfiguration>
</ns1:operand>
</ns1:operations>
</ns1:mutate>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>

This is the response:
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Header>
<ResponseHeader xmlns="https://adwords.google.com/api/adwords/cm/v201406">
<requestId>0005092a0ce92e310ac4bec71e005653</requestId>
<serviceName>CampaignService</serviceName>
<methodName>mutate</methodName>
<operations>0</operations>
<responseTime>152</responseTime>
</ResponseHeader>
</soap:Header>
<soap:Body>
<soap:Fault>
<faultcode>soap:Server</faultcode>
<faultstring>[BiddingErrors.CANNOT_ATTACH_BIDDING_STRATEGY_TO_CAMPAIGN @
operations[0].operand.biddingStrategyConfiguration.biddingStrategyType; trigger:'BUDGET_OPTIMIZER']
</faultstring>
<detail>
<ApiExceptionFault xmlns="https://adwords.google.com/api/adwords/cm/v201406">
<message>[BiddingErrors.CANNOT_ATTACH_BIDDING_STRATEGY_TO_CAMPAIGN @
operations[0].operand.biddingStrategyConfiguration.biddingStrategyType;
trigger:'BUDGET_OPTIMIZER']
</message>
<ApplicationException.Type>ApiException</ApplicationException.Type>
<errors xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="BiddingErrors">
<fieldPath>operations[0].operand.biddingStrategyConfiguration.biddingStrategyType</fieldPath>
<trigger>BUDGET_OPTIMIZER</trigger>
<errorString>BiddingErrors.CANNOT_ATTACH_BIDDING_STRATEGY_TO_CAMPAIGN</errorString>
<ApiError.Type>BiddingErrors</ApiError.Type>
<reason>CANNOT_ATTACH_BIDDING_STRATEGY_TO_CAMPAIGN</reason>
</errors>
</ApiExceptionFault>
</detail>
</soap:Fault>
</soap:Body>
</soap:Envelope>

This seems to happen when we try to attach an anonymous bidding strategy that also has options in the biddingScheme. So when we're trying to create a campaign with a "Manual Cpc" and option "enhancedCpc", the same error occurs. Could you please have a look at this? It is important for us, as we're trying to implement this for the required minimum functionality audit.

Thank you very much,
Georg Döhring
Message has been deleted

Georg Döhring

unread,
Dec 1, 2014, 12:02:07 PM12/1/14
to adwor...@googlegroups.com
Here is a request for ManualCpc-Campaign with enhancedCpc enabled. Running the exact same request with enhancedCpc=false works fine.

<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:ns1="https://adwords.google.com/api/adwords/cm/v201406"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<SOAP-ENV:Header>
<ns1:RequestHeader>
            <ns1:clientCustomerId>xxxxxxxxx</ns1:clientCustomerId>
<ns1:developerToken>xxxxxxxxxxxxxxxxxx</ns1:developerToken>
<ns1:userAgent>xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
</ns1:userAgent>
</ns1:RequestHeader>
</SOAP-ENV:Header>
<SOAP-ENV:Body>
<ns1:mutate>
<ns1:operations>
<ns1:operator>ADD</ns1:operator>
<ns1:operand>
                    <ns1:name>SHELL Testkampagne 547c9e162cb8e</ns1:name>
                    <ns1:status>ENABLED</ns1:status>
<ns1:startDate>20141201</ns1:startDate>
<ns1:endDate>20371230</ns1:endDate>
<ns1:budget>
                        <ns1:budgetId>183661294</ns1:budgetId>
                    </ns1:budget>
<ns1:adServingOptimizationStatus>ROTATE</ns1:adServingOptimizationStatus>
<ns1:frequencyCap/>
<ns1:settings xsi:type="ns1:KeywordMatchSetting">
<ns1:optIn>true</ns1:optIn>
</ns1:settings>
<ns1:settings xsi:type="ns1:DynamicSearchAdsSetting">
<ns1:domainName>intelliad.com</ns1:domainName>
<ns1:languageCode>en</ns1:languageCode>
</ns1:settings>
<ns1:advertisingChannelType>SEARCH</ns1:advertisingChannelType>
<ns1:networkSetting>
<ns1:targetGoogleSearch>true</ns1:targetGoogleSearch>
<ns1:targetSearchNetwork>true</ns1:targetSearchNetwork>
<ns1:targetContentNetwork>false</ns1:targetContentNetwork>
<ns1:targetPartnerSearchNetwork>false</ns1:targetPartnerSearchNetwork>
</ns1:networkSetting>
<ns1:biddingStrategyConfiguration>
                        <ns1:biddingStrategyType>MANUAL_CPC</ns1:biddingStrategyType>
<ns1:biddingScheme xsi:type="ns1:ManualCpcBiddingScheme">
<ns1:enhancedCpcEnabled>true</ns1:enhancedCpcEnabled>
                        </ns1:biddingScheme>
</ns1:biddingStrategyConfiguration>
</ns1:operand>
</ns1:operations>
</ns1:mutate>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>

The response is:
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Header>
<ResponseHeader xmlns="https://adwords.google.com/api/adwords/cm/v201406">
            <requestId>0005092a8696f2090ac4b8ea42002c42</requestId>
            <serviceName>CampaignService</serviceName>
<methodName>mutate</methodName>
<operations>0</operations>
            <responseTime>98</responseTime>
        </ResponseHeader>
</soap:Header>
<soap:Body>
<soap:Fault>
<faultcode>soap:Server</faultcode>
<faultstring>[BiddingErrors.CANNOT_ATTACH_BIDDING_STRATEGY_TO_CAMPAIGN @
                operations[0].operand.biddingStrategyConfiguration.biddingScheme.enhancedCpcEnabled; trigger:'true']

</faultstring>
<detail>
<ApiExceptionFault xmlns="https://adwords.google.com/api/adwords/cm/v201406">
<message>[BiddingErrors.CANNOT_ATTACH_BIDDING_STRATEGY_TO_CAMPAIGN @
                        operations[0].operand.biddingStrategyConfiguration.biddingScheme.enhancedCpcEnabled;
trigger:'true']

</message>
<ApplicationException.Type>ApiException</ApplicationException.Type>
<errors xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="BiddingErrors">
                        <fieldPath>operations[0].operand.biddingStrategyConfiguration.biddingScheme.enhancedCpcEnabled
</fieldPath>
<trigger>true</trigger>

Josh Radcliff (AdWords API Team)

unread,
Dec 1, 2014, 2:27:04 PM12/1/14
to adwor...@googlegroups.com
Hi Georg,

There are two separate issues related to your question.

1. Starting with v201402, you can no longer enable enhanced CPC for the manual CPC bidding strategy (see the Deprecated section in the v201402 release notes).

2. In place of #1, you should use a bidding strategy of type ENHANCED_CPC. However, as mentioned in our Bidding Guide, you can only use ENHANCED_CPC when creating a shared bidding strategy, so you'll have to first create the shared strategy via BiddingStrategyService, and then use the returned SharedBiddingStrategy.id to populate the campaign's biddingStrategyConfiguration.biddingStrategyId.

Cheers,
Josh, AdWords API Team

Georg Döhring

unread,
Dec 2, 2014, 3:12:15 AM12/2/14
to adwor...@googlegroups.com
Hi Josh,

thank you for your reply. This does clarify some thinks, thanks. Seems as if we missed about that deprecation. Maybe you should update the API doc https://developers.google.com/adwords/api/docs/reference/v201409/BiddingStrategyService.ManualCpcBiddingScheme as there is the enhancedCpc Option still mentioned.

For the problem with BudgetOtimizer what's the solution here? Seems as if my fellow Dominic Hofilena has the same problem here: https://groups.google.com/forum/#!topic/adwords-api/Ai0Mkq03Egw 
According to the Bidding guide, a budget optimizer is non-shared so the request above should work?

Thank you,
Georg

Josh Radcliff (AdWords API Team)

unread,
Dec 2, 2014, 4:14:04 PM12/2/14
to adwor...@googlegroups.com
Hi Georg,

The BudgetOptimizer bidding strategy was deprecated in v201402. Sorry I didn't mention this before -- I forgot about this change.

In place of the BudgetOptimizer strategy, use the shared TargetSpend strategy.

Good point on the API docs -- I'll look into having those updated to reflect these changes.

Cheers,
Josh, AdWords API Team

Georg Döhring

unread,
Dec 3, 2014, 2:48:12 AM12/3/14
to adwor...@googlegroups.com
Thank you for the anwser!

Asker

unread,
Jul 7, 2016, 5:57:58 PM7/7/16
to AdWords API Forum
The discussion here says:  "Starting with v201402, you can no longer enable enhanced CPC for the manual CPC bidding strategy (see the Deprecated section in the v201402 release notes).".


If the above is true why does Google AdWords management console offers a check box to enable ECPC with Manual CPC as recommended in Google documentations here.  In this link scroll down and read "How to turn on ECPC".   There seems to be a contradiction between what is stated here and what is in the link.

Anash P. Oommen (AdWords API Team)

unread,
Jul 8, 2016, 10:40:09 AM7/8/16
to AdWords API Forum
Hi Asker,

This is an old forum thread, could you kindly start a new thread for your question?

Cheers,
Anash P. Oommen,
AdWords API Advisor.
Reply all
Reply to author
Forward
0 new messages