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:

[cid:[email protected]]

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

[cid:[email protected]]
T +31 (0) 413 395 400
E [email protected]<mailto:[email protected]>
Frisselsteinstraat 5
5461 AD Veghel


Van: Google Ads API Forum Advisor <[email protected]>
Verzonden: dinsdag 5 juli 2022 12:15
Aan: Studyportals <[email protected]>
CC: [email protected]
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<https://developers.google.com/google-ads/api/docs/campaigns/bidding/strategy-types>,
 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<https://developers.google.com/google-ads/api/docs/concepts/field-service#request>
 and 
response<https://developers.google.com/google-ads/api/docs/concepts/field-service#response>
 logs with 
request-id<https://developers.google.com/google-ads/api/docs/concepts/call-structure#request-id>
 and 
login-customer-id<https://developers.google.com/google-ads/api/docs/concepts/call-structure?hl=en#cid>
 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 
[email protected]<mailto:[email protected]>.

Best regards,

[Google Logo]
Jinky
Google Ads API Team

[https://google-dev-relations.my.salesforce.com/servlet/servlet.ImageServer?oid=00D1U000001174p&esid=0184Q00001HVZD5&from=ext]

ref:_00D1U1174p._5004Q2cG6sr:ref

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 
"Google Ads API and AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/DB9PR08MB7697A52776A0B5346DC62061F5819%40DB9PR08MB7697.eurprd08.prod.outlook.com.

Reply via email to