Could you please help on my question?
I run update request:
params = {
"operations": [{
"updateMask": "name,leadFormAsset.businessName,leadFormAsset.fields",
"update": {
"resourceName": "customers/XXXXX/assets/XXXXX",
"name": "My Lead Form #12345",
"type": "LEAD_FORM",
"final_urls": ["XXXXXX"],
"leadFormAsset": {
"businessName": "Cats LTD New",
"callToActionType": "LEARN_MORE",
"callToActionDescription": "Learn more",
"headline": "New Test Lead Form23",
"description": "New Test Lead Form description",
"privacyPolicyUrl": "XXXXX",
"fields": [
{
"inputType": "EMAIL"
},
{
"inputType": "FIRST_NAME"
},
{
"inputType": "LAST_NAME"
},
{
"inputType": "PHONE_NUMBER"
},
{
"inputType": "COUNTRY"
},
{
"inputType": "CITY"
},
],
"postSubmitCallToActionType": "VISIT_SITE",
"desiredIntent": "LOW_INTENT",
"postSubmitHeadline": "Thank you!",
"postSubmitDescription": "Thanks for filling Lead Form",
}
}
}],
}
I've added 1 field : CITY, but I receive response, that fields is Immutable, but in documentation it is not immutable. Do I have possibility to update fields (add/remove) question?
Response with request ID is the following:
{
"error": {
"code": 400,
"message": "Request contains an invalid argument.",
"status": "INVALID_ARGUMENT",
"details": [
{
"@type": "
type.googleapis.com/google.ads.googleads.v11.errors.GoogleAdsFailure",
"errors": [
{
"errorCode": {
"fieldError": "IMMUTABLE_FIELD"
},
"message": "The field attempted to be mutated is immutable.",
"location": {
"fieldPathElements": [
{
"fieldName": "operations",
"index": 0
},
{
"fieldName": "update"
},
{
"fieldName": "lead_form_asset"
},
{
"fieldName": "fields"
}
]
}
}
],
"requestId": "
wcz8z2YNaAuNLawWN8rU6Q"
}
]
}
}
Could you please help me on this?
Thanks.