Hi Google Team,
Could you please help on my question?
I need possibility to update LeadFormAsset
(https://developers.google.com/google-ads/api/rest/reference/rest/v11/Asset#LeadFormAsset)
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.
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 [email protected]
To unsubscribe from this group, send email to
[email protected]
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
"Google Ads API and AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/adwords-api/bf96e822-8226-4fde-822a-1fc1e8544108n%40googlegroups.com.