Can we use selective_optimization in Google Search and Display campaigns?

I have shared the request and response details below. Please let me know 
what is the issue and how to resolve this.

Request details:
URL:
https://googleads.googleapis.com/v10/customers/REDACTED/campaigns:mutate
Header:
{'Content-Type': 'application/json', 'developer-token': 'REDACTED', 
'login-customer-id': 'REDACTED', 'Authorization': 'Bearer REDACTED'}
Data:
{'validate_only': True, 'operations': [{'create': {'status': 'PAUSED', 
'advertisingChannelType': 'SEARCH', 'name': 'test', 'campaignBudget': 
'customers/REDACTED/campaignBudgets/REDACTED', 'startDate': '2022-07-10', 
'endDate': '2022-07-20', 'networkSettings': {'targetGoogleSearch': 'true', 
'targetSearchNetwork': 'true', 'targetContentNetwork': 'false', 
'targetPartnerSearchNetwork': 'false'}, 'biddingStrategyType': 
'MAXIMIZE_CONVERSIONS', 'selectiveOptimization': {'conversionActions': 
['customers/REDACTED/conversionActions/REDACTED', 
'customers/REDACTED/conversionActions/REDACTED', 
'customers/REDACTED/conversionActions/REDACTED', 
'customers/REDACTED/conversionActions/REDACTED', 
'customers/REDACTED/conversionActions/REDACTED', 
'customers/REDACTED/conversionActions/REDACTED']}, 'maximizeConversions': 
{}}}]}

Getting the following error:
{
  "error": {
    "code": 400,
    "message": "Request contains an invalid argument.",
    "status": "INVALID_ARGUMENT",
    "details": [
      {
        "@type": 
"type.googleapis.com/google.ads.googleads.v10.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"
                }
              ]
            }
          }
        ],
        "requestId": "ywajMew3_-B46URFU60f0Q"
      }
    ]
  }
}


-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
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 adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/ce170ffe-2526-426f-ad0d-0d25d10a07a7n%40googlegroups.com.

Reply via email to