I cannot set selective_optimization to create campaign.
In the WEB UI, it seems that it has been changed to specify the category instead of the conversion action, but in the API, the resource name of the conversion action is specified.
If you specify the resource name of the conversion action, it will be "he error code is not in this version.".
Below is the run-time debug log.
Outgoing request: Headers: {"developer-token":"REDACTED","login-customer-id":"XXXXX","x-goog-api-client":"gl-ruby/3.0.2 gax/0.6.0 gapic/14.0.0 grpc/1.41.0","x-goog-request-params":"customer_id=XXXXX"} Payload: {"customerId":"XXXXX","operations":[{"create":{"name":"CampaignName","status":"PAUSED","advertisingChannelType":"DISPLAY","networkSettings":{"targetGoogleSearch":false,"targetSearchNetwork":false,"targetContentNetwork":true,"targetPartnerSearchNetwork":false},"geoTargetTypeSetting":{"positiveGeoTargetType":"PRESENCE_OR_INTEREST","negativeGeoTargetType":"PRESENCE"},"campaignBudget":"customers/XXXXX/campaignBudgets/XXXXX","startDate":"2021-11-10","endDate":"2021-11-31","selectiveOptimization":{"conversionActions":["customers/XXXXX/conversionActions/XXXXX"]},"paymentMode":"CLICKS","targetSpend":{"cpcBidCeilingMicros":"xxxxxxxxxxx"}}}],"partialFailure":true}
Incoming response: Payload: {"partialFailureError":{"code":3,"message":"The error code is not in this version., at operations[0].create.selective_optimization.conversion_actions","details":[{"@type":"
type.googleapis.com/google.ads.googleads.v8.errors.GoogleAdsFailure","errors":[{"errorCode":{"requestError":"UNKNOWN"},"message":"The error code is not in this version.","trigger":{"stringValue":""},"location":{"fieldPathElements":[{"fieldName":"operations","index":0},{"fieldName":"create"},{"fieldName":"selective_optimization"},{"fieldName":"conversion_actions"}]}}]}]},"results":[{}]}
Partial failure errors: {"errors":[{"errorCode":{"requestError":"UNKNOWN"},"message":"The error code is not in this version.","trigger":{"stringValue":""},"location":{"fieldPathElements":[{"fieldName":"operations","index":0},{"fieldName":"create"},{"fieldName":"selective_optimization"},{"fieldName":"conversion_actions"}]}}]}