Think I had this problem a while ago. I found that you cannot use the 
AdGroupAdService to modify/update an AdGroupAd, instead you must modify the 
Ad via the AdService.

So I turned 
"customers/{customer_id}/adGroupAds/{ad_group_id}~{ad_id}"
into 
"customers/{customer_id}/ads/{ad_id}"

and used that resource in the AdService and was able to modify the Smart 
Campaign ads. You have to use an AdOperation of course though.
On Monday, June 3, 2024 at 11:11:21 AM UTC-5 Jerson Dela Cerna wrote:

>     {
>                     "errorCode": {
>                         "requestError": "IMMUTABLE_FIELD"
>                     },
>                     "message": "Field 'ad.smart_campaign_ad.descriptions' 
> cannot be modified by 'UPDATE' operation.",
>                     "location": {
>                         "fieldPathElements": [
>                             {
>                                 "fieldName": "mutate_operations",
>                                 "index": 3
>                             },
>                             {
>                                 "fieldName": "ad_group_ad_operation"
>                             },
>                             {
>                                 "fieldName": "update"
>                             },
>                             {
>                                 "fieldName": "ad"
>                             },
>                             {
>                                 "fieldName": "smart_campaign_ad"
>                             },
>                             {
>                                 "fieldName": "descriptions"
>                             }
>                         ]
>                     }
>                 },
>                 {
>                     "errorCode": {
>                         "requestError": "IMMUTABLE_FIELD"
>                     },
>                     "message": "Field 'ad.smart_campaign_ad.headlines' 
> cannot be modified by 'UPDATE' operation.",
>                     "location": {
>                         "fieldPathElements": [
>                             {
>                                 "fieldName": "mutate_operations",
>                                 "index": 3
>                             },
>                             {
>                                 "fieldName": "ad_group_ad_operation"
>                             },
>                             {
>                                 "fieldName": "update"
>                             },
>                             {
>                                 "fieldName": "ad"
>                             },
>                             {
>                                 "fieldName": "smart_campaign_ad"
>                             },
>                             {
>                                 "fieldName": "headlines"
>                             }
>                         ]
>                     }
>                 }
>             ],
>

-- 
Feathr is closed on Fridays, operating under a four-day workweek from 
Monday-Thursday. Our platform remains available 24/7, however, on Fridays, 
please expect delays on email and ticket response times.

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/baaec7fb-ce3b-40dd-b311-2f436cb20564n%40googlegroups.com.
  • Smart Campaign Upd... Jerson Dela Cerna
    • Re: Smart Cam... 'Andrew Wirtz' via Google Ads API and AdWords API Forum

Reply via email to