Applying "Portfolio Bid Strategy" With "Maximize conversions" to a Display campaign results into CANNOT_ATTACH_BIDDING_STRATEGY_TO_CAMPAIGN

626 views
Skip to first unread message

S.A.

unread,
Jul 5, 2022, 4:27:57 AM7/5/22
to Google Ads API and AdWords API Forum
When trying to apply a custom bid strategy with "Maximize conversions" to a Display campaign through the API we get the following response:

Failure: {"errors":[{"errorCode":{"biddingError":"CANNOT_ATTACH_BIDDING_STRATEGY_TO_CAMPAIGN"},"message":"Cannot attach bidding strategy to campaign.","trigger":{"stringValue":""},"location":{"fieldPathElements":[{"fieldName":"operations","index":0},{"fieldName":"create"},{"fieldName":"bidding_strategy"}]}}],"requestId":"WiTJxmRgJTjYHssamlcMcA"}

After doing some research We've found some old posts which state that "Maximize Conversions" isn't applicable to Display campaigns. However our current display campaigns are running using "Maximize conversions" (But not using a portfolio bid stategy). Also the documentation referred to in those posts, now do list support for display campaigns https://developers.google.com/google-ads/api/docs/campaigns/bidding/strategy-types.

In the interface from Google Ads, when attaching campaigns, it also only lists Search campaigns, however both CPA and "Create a shared budget to use" are disabled (because we attach a shared budget on campaign level).

I feel like we're missing something simple, but we cannot seem to pinpoint what it is exactly. Any help would be greatly appreciated.

Google Ads API Forum Advisor

unread,
Jul 5, 2022, 6:15:25 AM7/5/22
to studyp...@lanthopusmarketing.nl, adwor...@googlegroups.com
Hi,

Thank you for raising this to the Google Ads API Forum.

To provide insights in this scenario, you mentioned this line " When trying to apply a custom bid strategy with "Maximize conversions" to a Display campaign through the API we get the following response: ".
With this, when you are attaching maximize conversion, I am assuming that you are setting the target CPA as well. However,kindly note that according to this document, the setting of the target CPA is for  Search-only and this is the possible reason why the error persists. That said, I would suggest to not set the target CPA when attaching a maximize conversion bidding strategy to display campaigns.

If the error still persists after trying the provided suggestions, you can provide the complete API request and response logs with request-id and login-customer-id that generated on your end? You can provide it via the Reply privately to author option. If this option is not available, then send it instead on this email address googleadsapi-support@google.com.

Best regards,
Google Logo
Jinky
Google Ads API Team
 


ref:_00D1U1174p._5004Q2cG6sr:ref

Studyportals

unread,
Jul 5, 2022, 11:25:38 AM7/5/22
to Google Ads API Forum Advisor, Studyportals, adwor...@googlegroups.com, Linda Balk, Remco van Grinsven

Hi Jinky,

 

Thank you for your response, Initially we thought we set the CPA aswell, but as far as I can tell we haven’t. (Strategy id=9460504564)

 

Both are unchecked:

 

 

I’ve attached the log as per your request.

 

creating campaign:7_12027_appr_essca_online_campus

[2022-07-05T15:24:21.375462+00:00] google-ads.INFO: Request made: Host: "googleads.googleapis.com", Method: "/google.ads.googleads.v10.services.CampaignBudgetService/MutateCampaignBudgets", CustomerId: 2122223252, RequestId: "TCMNlAE1OJnSsrYyC2Fr_Q", IsFault: 0, FaultMessage: "None" 

Added budget named 'customers/2122223252/campaignBudgets/11157895331'

[2022-07-05T15:24:21.718716+00:00] google-ads.WARNING: Request made: Host: "googleads.googleapis.com", Method: "/google.ads.googleads.v10.services.CampaignService/MutateCampaigns", CustomerId: 2122223252, RequestId: "fqw6JdeFbZB_B6EpgkCsgA", IsFault: 1, FaultMessage: "["Cannot attach bidding strategy to campaign."]" 

[2022-07-05T15:24:21.718829+00:00] google-ads.NOTICE: Request

-------

Method Name: /google.ads.googleads.v10.services.CampaignService/MutateCampaigns

Host: googleads.googleapis.com

Headers: {

    "x-goog-api-client": "gl-php\/8.0.18 gccl\/14.0.0 gapic\/14.0.0 gax\/1.12.0 grpc\/1.42.0 rest\/1.12.0",

    "x-goog-request-params": "customer_id=2122223252",

    "developer-token": "REDACTED",

    "login-customer-id": "1496918513"

}

Request:

{"customerId":"2122223252","operations":[{"create":{"name":"7_12027_appr_essca_online_campus","status":"ENABLED","advertisingChannelType":"DISPLAY","networkSettings":{"targetGoogleSearch":false,"targetSearchNetwork":false,"targetContentNetwork":true,"targetPartnerSearchNetwork":false},"geoTargetTypeSetting":{"positiveGeoTargetType":"PRESENCE"},"campaignBudget":"customers/2122223252/campaignBudgets/11157895331","startDate":"20220705","endDate":"20230422","frequencyCaps":[{"key":{"level":"CAMPAIGN","eventType":"IMPRESSION","timeUnit":"DAY"},"cap":3}],"biddingStrategy":"customers/2122223252/biddingStrategies/9460504564"}}]}

 

Response

-------

Headers: {

    "request-id": "fqw6JdeFbZB_B6EpgkCsgA",

    "date": "Tue, 05 Jul 2022 15:24:09 GMT",

    "alt-svc": "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000,h3-Q050=\":443\"; ma=2592000,h3-Q046=\":443\"; ma=2592000,h3-Q043=\":443\"; ma=2592000,quic=\":443\"; ma=2592000; v=\"46,43\""

}

 

Fault

-------

Status code: 3

Details: Request contains an invalid argument.

Failure: {"errors":[{"errorCode":{"biddingError":"CANNOT_ATTACH_BIDDING_STRATEGY_TO_CAMPAIGN"},"message":"Cannot attach bidding strategy to campaign.","trigger":{"stringValue":""},"location":{"fieldPathElements":[{"fieldName":"operations","index":0},{"fieldName":"create"},{"fieldName":"bidding_strategy"}]}}],"requestId":"fqw6JdeFbZB_B6EpgkCsgA"} 

 

   Google\Ads\GoogleAds\Lib\V10\GoogleAdsException

 

  {

    "message": "Request contains an invalid argument.",

    "code": 3,

    "status": "INVALID_ARGUMENT",

    "details": [

        {

            "@type": "google.ads.googleads.v10.errors.googleadsfailure-bin",

            "data": "<Unknown Binary Data>"

        },

        {

            "@type": "grpc-status-details-bin",

            "data": "<Unknown Binary Data>"

        },

        {

            "@type": "request-id",

            "data": "fqw6JdeFbZB_B6EpgkCsgA"

        }

    ]

}

 

Met vriendelijke groet,

 

Remco van Grinsven

 

T +31 (0) 413 395 400
E 
remco.va...@lanthopusx.nl
Frisselsteinstraat 5
5461 AD Veghel

 

 

Van: Google Ads API Forum Advisor <ads...@forumsupport.google>
Verzonden: dinsdag 5 juli 2022 12:15
Aan: Studyportals <studyp...@lanthopusmarketing.nl>
CC: adwor...@googlegroups.com
Onderwerp: RE: Applying "Portfolio Bid Strategy" With "Maximize conversions" to a Display campaign results into CANNOT_ATTACH_BIDDING_STRATEGY_TO_CAMPAIGN

 

Hi,

Thank you for raising this to the Google Ads API Forum.

To provide insights in this scenario, you mentioned this line " When trying to apply a custom bid strategy with "Maximize conversions" to a Display campaign through the API we get the following response: ".
With this, when you are attaching maximize conversion, I am assuming that you are setting the target CPA as well. However,kindly note that according to this
document

, the setting of the target CPA is for  Search-only and this is the possible reason why the error persists. That said, I would suggest to not set the target CPA when attaching a maximize conversion bidding strategy to display campaigns.

If the error still persists after trying the provided suggestions, you can provide the complete API 
request and response logs with request-id and login-customer-id that generated on your end? You can provide it via the Reply privately to author option. If this option is not available, then send it instead on this email address googleadsa...@google.com.

Best regards,

Google Ads API Forum Advisor

unread,
Jul 5, 2022, 2:30:53 PM7/5/22
to studyp...@lanthopusmarketing.nl, remco.va...@lanthopusx.nl, li...@lanthopusmarketing.nl, adwor...@googlegroups.com
Hi Remco,

I work with Jinky. Thank you for sending us the logs. I reproduced your issue that portfolio based bidding strategy of Maximize Conversions cannot be attached to a Display campaign. I tried also via the Ads UI and couldn't change a Display campaign to use a portfolio based Maximize Conversions bidding strategy so this looks like it is working as intended.

While the documentation you referred to shows that a standard campaign based Maximize Conversions bidding strategy is compatible with Display campaigns, it doesn't offer any support for a portfolio based maximize conversion bidding strategy for Display campaigns. The screenshot you gave us isn't full screen so I cannot see if you have that option in a Display campaign. I suggest you reach out to our product support team for further assistance.

If you do find a discrepancy between the UI functionality and the API or our documentation doesn't offer what is available in the UI, then we are the address for support. 

Regards,

Google Logo
Aryeh
Google Ads API Team
 


ref:_00D1U1174p._5004Q2cG6sr:ref
Reply all
Reply to author
Forward
0 new messages