Hey Google team,

We have a question about how to edit ads for app campaigns through the 
Google Ads API. We set up an app campaign in our test account with some 
headlines. When we tried to update those headlines the request failed 
saying that the field was immutable (I'll link the request body and 
response in this thread). Upon further inspection, it looks like that app 
ads are immutable 
<https://developers.google.com/google-ads/api/docs/ads/ad-types#description_of_each_ad_type>
 (in 
our case we were using an installs ad which I believe is the AppAd type).

We noticed however that app ads are mutable in the Google Ads UI (we tried 
manually adding and removing some headlines). Is there a way to also do 
this via the Google Ads API given that this can be done in the UI?

Thanks in advance.

Request body:
https://googleads.googleapis.com/v10/customers/9896484741/adGroupAds:mutate

 {
     "operations": [{
         "update": {
             "resourceName": 
"customers/9896484741/adGroupAds/135247073269~593634212839",
             "ad": {
                 "appAd": {
                     "headlines": [{
                         "text": "test3"
                     }]
                 }
             }
         },
         "update_mask": {
             "paths": "ad.app_ad.headlines"
         }
     }],
     "response_content_type": "MUTABLE_RESOURCE"
 }

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

-- 
**
** <https://www.canva.com/>Empowering the world to design
We're hiring, 
apply here <https://www.canva.com/careers/>! Check out the latest news and 
learnings from our team on the Canva Newsroom 
<https://www.canva.com/newsroom/news/>.
 <https://twitter.com/canva> 
<https://facebook.com/canva> <https://au.linkedin.com/company/canva> 
<https://twitter.com/canva>  <https://facebook.com/canva>  
<https://www.linkedin.com/company/canva> 
 <https://instagram.com/canva>



-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 
"Google Ads API and AdWords 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/7e3d46a8-9731-4e9f-914e-fb005b16209cn%40googlegroups.com.

Reply via email to