Hi, Google API Team.

I'm trying to change the name in a Demandgen ad, but it's a field that 
can't be modified.

Is it possible to modify it in the UI, but not possible through the API?

Request
curl --request POST \
  
'https://googleads.googleapis.com/v19/customers/4428838782/ads:mutate?key=[YOUR_API_KEY]'
 
\
  --header 'developer-token: **********************' \
  --header 'login-customer-id: 7987822632' \
  --header 'Authorization: Bearer [YOUR_ACCESS_TOKEN]' \
  --header 'Accept: application/json' \
  --header 'Content-Type: application/json' \
  --data '{"operations":[{"update":{"name":"demandgen 
update","resourceName":"customers/4428838782/ads/743461029774"},"updateMask":"name"}]}'
 
\
  --compressed

Response
{
  "error": {
    "code": 400,
    "message": "Request contains an invalid argument.",
    "status": "INVALID_ARGUMENT",
    "details": [
      {
        "@type": 
"type.googleapis.com/google.ads.googleads.v19.errors.GoogleAdsFailure",
        "errors": [
          {
            "errorCode": {
              "requestError": "IMMUTABLE_FIELD"
            },
            "message": "Field 'name' cannot be modified by 'UPDATE' 
operation.",
            "location": {
              "fieldPathElements": [
                {
                  "fieldName": "operations",
                  "index": 0
                },
                {
                  "fieldName": "update"
                },
                {
                  "fieldName": "name"
                }
              ]
            }
          }
        ],
        "requestId": "Pzi_V3lOV1MXdKWL7uLSRA"
      }
    ]
  }
}

Thank you.

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 visit 
https://groups.google.com/d/msgid/adwords-api/a77a061a-b2d3-40a1-9439-26a05b0e0af7n%40googlegroups.com.

Reply via email to