Getting MUTATE_NOT_ALLOWED(Mutates are not allowed for the requested resource.) for Purchase Conversion Goal

43 views
Skip to first unread message

chandra Shekhar

unread,
Jun 1, 2023, 1:04:50 AM6/1/23
to Google Ads API and AdWords API Forum
Hi Team,

I am making request to update fields of purchase conversion goal
but getting error:- Mutates are not allowed for the requested resource.

here is the Operation:-

update {
  resource_name: "customers/6495599131/conversionActions/6510885828"
  status: ENABLED
  category: PURCHASE
  value_settings {
    default_value: 0.0
    default_currency_code: "USD"
  }
  name: "Purchase (Page load https://www.knorex.com/why-xpo)"
  click_through_lookback_window_days: 30
  view_through_lookback_window_days: 30
}
update_mask {
  paths: "resource_name"
  paths: "name"
  paths: "status"
  paths: "category"
  paths: "click_through_lookback_window_days"
  paths: "view_through_lookback_window_days"
  paths: "value_settings.default_value"
  paths: "value_settings.default_currency_code"
}


Request Id:- com.google.ads.googleads.v13.errors.GoogleAdsException: errors {
  error_code {
    mutate_error: MUTATE_NOT_ALLOWED
  }
  message: "Mutates are not allowed for the requested resource."
  location {
    field_path_elements {
      field_name: "operations"
      index: 0
    }
    field_path_elements {
      field_name: "update"
    }
    field_path_elements {
      field_name: "type"
    }
  }
}
request_id: "GfqliOwpAsE0U3XqdhscIg"

Hindly help me resolve this issue, ASAP, Thanks!

chandra Shekhar

unread,
Jun 4, 2023, 10:16:14 PM6/4/23
to Google Ads API and AdWords API Forum
Hi team, any updates

Google Ads API Forum Advisor

unread,
Jun 5, 2023, 4:52:24 AM6/5/23
to chandra...@knorex.com, adwor...@googlegroups.com

Hello Chandra,

Thank you for reaching out to us.

Can you confirm you are using this mutation: https://developers.google.com/google-ads/api/rest/reference/rest/v13/customers.conversionActions/mutate? If not, kindly inform us which one you used. Also, for us to check this further, can you provide us with the complete request and response logs with request ID and request header generated on your end when this occurs? This is so we could investigate further and provide appropriate guidance.

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 googleadsa...@google.com.

Reference links included in this email:
request - https://developers.google.com/google-ads/api/docs/concepts/field-service#request
response - https://developers.google.com/google-ads/api/docs/concepts/field-service#response
request ID - https://developers.google.com/google-ads/api/docs/concepts/call-structure#request-id
request header - https://developers.google.com/google-ads/api/docs/concepts/call-structure#request_headers

This message is in relation to case "ref:_00D1U1174p._5004Q2lvUhv:ref"

Thanks,
 
Google Logo Google Ads API Team


chandra Shekhar

unread,
Jun 5, 2023, 7:04:01 AM6/5/23
to Google Ads API and AdWords API Forum
Yes , I am using this mutate only https://developers.google.com/google-ads/api/rest/reference/rest/v13/customers.conversionActions/mutate
request_id: "E2vtGia85BobKrWSm9ZoUA"
OPERATION:

update {
  resource_name: "customers/6495599131/conversionActions/6510885828"
  status: ENABLED
  category: PURCHASE
  value_settings {
    default_value: 1.0
    default_currency_code: "USD"
    always_use_default_value: true

  }
  name: "Purchase (Page load https://www.knorex.com/why-xpo)"
  click_through_lookback_window_days: 4
  view_through_lookback_window_days: 1

}
update_mask {
  paths: "resource_name"
  paths: "name"
  paths: "status"
  paths: "category"
  paths: "click_through_lookback_window_days"
  paths: "view_through_lookback_window_days"
  paths: "value_settings.default_value"
  paths: "value_settings.default_currency_code"
  paths: "value_settings.always_use_default_value"
}

=========================================================

RESPONSE

com.google.ads.googleads.v13.errors.GoogleAdsException: errors {
  error_code {
    mutate_error: MUTATE_NOT_ALLOWED
  }
  message: "Mutates are not allowed for the requested resource."
  location {
    field_path_elements {
      field_name: "operations"
      index: 0
    }
    field_path_elements {
      field_name: "update"
    }
    field_path_elements {
      field_name: "type"
    }
  }
}
request_id: "E2vtGia85BobKrWSm9ZoUA"

Google Ads API Forum Advisor

unread,
Jun 8, 2023, 8:02:07 AM6/8/23
to chandra...@knorex.com, adwor...@googlegroups.com

Hi, 

Thanks for getting back to us.

Thank you for providing us the logs. Allow me to raise this to the rest of our team. Rest assured that we will reach out to you once we have any updates.
 

Google Ads API Forum Advisor

unread,
Jun 8, 2023, 2:38:30 PM6/8/23
to chandra...@knorex.com, adwor...@googlegroups.com
Hello - 

I'm a developer relations engineer jumping in to help with this issue.

This request is failing because conversion actions of type WEBPAGE_CODELESS are immutable on update requests. I've already submitted a feature request to have this emphasized in our reference docs.
 
This message is in relation to case "ref:_00D1U1174p._5004Q2lvUhv:ref"

Thanks,
 
Google Logo
Ben Karl
Google Ads API Team

 

Reply all
Reply to author
Forward
0 new messages