Conversion campaign - Issue in selective_optimization

42 views
Skip to first unread message

SR

unread,
Jun 21, 2022, 1:58:12 AM6/21/22
to Google Ads API and AdWords API Forum
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:
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"
      }
    ]
  }
}


Google Ads API Forum Advisor

unread,
Jun 21, 2022, 2:55:34 AM6/21/22
to sar...@crigloo.com, adwor...@googlegroups.com
Hi SR,

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

With regard to your concern, this is not possible in search and display, selective_optimization is only for app campaigns. That said, instead of using selective optimization for search and display campaigns, I would suggest using a conversion goal and you can refer to this document. Let me know if you have any questions with the provided document.

Best regards,
Google Logo
Jinky
Google Ads API Team
 


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