Hi,

I'm getting an error when trying to create Extension Feed Item using a 
temporary Id. Although a temporary Id is used, I get the "Field 
\'resource_name\' cannot be modified by \'CREATE\' operation."

Is it possible to use temporary Ids for Extension Feed Items, or a separate 
call has to be made to create them?

Here's the request/response:

Request
-------
MethodName: google.ads.googleads.v8.services.GoogleAdsService/Mutate
Endpoint: googleads.googleapis.com:443
Headers: {developer-token=REDACTED, login-customer-id=21XXXXX037, 
x-goog-api-client=gl-java/1.8.0_191 gapic/ gax/1.65.1 grpc/1.37.0}
Body: customer_id: "95XXXXX07"
mutate_operations {
  ad_group_operation {
    create {
      resource_name: "customers/95XXXXX07/adGroups/-1"
      status: PAUSED
      name: "Test_FI_1628677003602_1521515832"
      campaign: "customers/95XXXXX07/campaigns/14232332131"
    }
  }
}
mutate_operations {
  ad_group_criterion_operation {
    create {
      status: ENABLED
      effective_cpc_bid_source: AD_GROUP
      effective_cpm_bid_source: AD_GROUP
      type: KEYWORD
      keyword {
        match_type: BROAD
        text: "cpq salesforce"
      }
      ad_group: "customers/95XXXXX07/adGroups/-1"
      negative: false
      effective_cpc_bid_micros: 10000
      effective_cpm_bid_micros: 10000
      display_name: "cpq salesforce"
    }
  }
}
mutate_operations {
  extension_feed_item_operation {
    create {
      resource_name: "customers/95XXXXX07/extensionFeedItems/-2"
      call_feed_item {
        call_conversion_reporting_state: 
USE_RESOURCE_LEVEL_CALL_CONVERSION_ACTION
        phone_number: "015555555"
        country_code: "HR"
        call_tracking_enabled: false
        call_conversion_tracking_disabled: true
      }
      extension_type: CALL
      start_date_time: "2021-08-15 00:00:00"
    }
  }
}
mutate_operations {
  ad_group_extension_setting_operation {
    create {
      extension_type: SITELINK
      ad_group: "customers/95XXXXX07/adGroups/-1"
      extension_feed_items: "customers/95XXXXX07/extensionFeedItems/-2"
    }
  }
}
response_content_type: MUTABLE_RESOURCE


Response
--------
Headers: 
Metadata(content-type=application/grpc,request-id=MVyl4aD3jth1eXVkLn5eSQ,date=Wed,
 
11 Aug 2021 10:15:30 GMT,alt-svc=h3=":443"; ma=2592000,h3-29=":443"; 
ma=2592000,h3-T051=":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 {
    request_error: IMMUTABLE_FIELD
  }
  message: "Field \'resource_name\' cannot be modified by \'CREATE\' 
operation."
  location {
    field_path_elements {
      field_name: "mutate_operations"
      index: 2
    }
    field_path_elements {
      field_name: "extension_feed_item_operation"
    }
    field_path_elements {
      field_name: "create"
    }
    field_path_elements {
      field_name: "resource_name"
    }
  }
}
errors {
  error_code {
    extension_setting_error: MISSING_FIELD
  }
  message: "Field must be set."
  trigger {
    string_value: ""
  }
  location {
    field_path_elements {
      field_name: "mutate_operations"
      index: 3
    }
    field_path_elements {
      field_name: "ad_group_extension_setting_operation"
    }
  }
}
request_id: "MVyl4aD3jth1eXVkLn5eSQ"

Status: Status{code=INVALID_ARGUMENT, description=Request contains an 
invalid argument., cause=null}.

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 
"AdWords API and Google Ads 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/ce0c0abe-5a75-45f2-9e98-b3ccb3177e49n%40googlegroups.com.

Reply via email to