Ads Api ConversionAction

137 views
Skip to first unread message

ai chen

unread,
Oct 25, 2022, 2:16:18 AM10/25/22
to Google Ads API and AdWords API Forum
Hi,
Recently I found a problem. When I created conversion tracking, I reported the following error, but I also passed the parameters to create conversions in the same way before, which can be called normally. Excuse me, is setIncludeInConversionsMetric setting include_in_conversions_metric not supported now? So should this function be replaced with that field setting?

In addition, I would like to ask a question. I learned that the operation optimization setting function in the background can set the main operation and the secondary operation. If the secondary operation is set, the conversion will not be included in the conversion field. Can this be an alternative to setting include_in_conversions_metric ? What is the impact of this setting?

api request, the result is as follows:

Request
-------
MethodName: google.ads.googleads.v11.services.ConversionActionService/MutateConversionActions
Endpoint: googleads.googleapis.com:443
Headers: {developer-token=REDACTED, login-customer-id=4932796031, x-goog-api-client=gl-java/1.8.0_291 gccl/19.0.0 gapic/19.0.0 gax/2.9.0 grpc/1.33.0}
Body: customer_id: "8174837919"
operations {
  create {
    type: UPLOAD_CLICKS
    category: DEFAULT
    value_settings {
      default_value: 1.0
      default_currency_code: "CNY"
      always_use_default_value: false
    }
    counting_type: ONE_PER_CLICK
    attribution_model_settings {
      attribution_model: GOOGLE_ADS_LAST_CLICK
    }
    name: "A"
    include_in_conversions_metric: false
    click_through_lookback_window_days: 90
  }
}


Response
--------
Headers: Metadata(content-type=application/grpc,request-id=xo4xz7DWA7Gtk308IOEQcA,date=Tue, 25 Oct 2022 05:52:11 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")
Body: null
Failure message: errors {
  error_code {
    field_error: IMMUTABLE_FIELD
  }
  message: "The field attempted to be mutated is immutable."
  trigger {
    boolean_value: false
  }
  location {
    field_path_elements {
      field_name: "operations"
      index: 0
    }
    field_path_elements {
      field_name: "create"
    }
    field_path_elements {
      field_name: "include_in_conversions_metric"
    }
  }
}
request_id: "xo4xz7DWA7Gtk308IOEQcA"

-------------------------
Action optimization:
微信截图_20221025141223.png
微信截图_20221025141239.png

---
Chenai,
kind regards.


Google Ads API Forum Advisor

unread,
Oct 25, 2022, 5:48:39 AM10/25/22
to dhan...@126.com, adwor...@googlegroups.com

Hi Chenai,
 

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

To answer your concern and questions in general, upon checking your logs provided. It appears that you have encountered IMMUTABLE_FIELD error. please note that starting August 22, 2022, the include_in_conversions_metric field of the ConversionAction resource will become read-only. Requests that attempt to set this value will result in a FieldError.IMMUTABLE_FIELD error. In order to address this, you may refer to this blog post. Let me know if you have further questions.
 

Regards,

Google Logo
Darwin
Google Ads API Team
 


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