Smart Campaign Update Mutation won't work even though its already been stated on the documentation that it is mutatble.

50 views
Skip to first unread message

Jerson Dela Cerna

unread,
Jun 3, 2024, 12:11:21 PM6/3/24
to Google Ads API and AdWords API Forum
    {
                    "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"
                            }
                        ]
                    }
                }
            ],

Google Ads API Forum Advisor

unread,
Jun 3, 2024, 5:33:50 PM6/3/24
to jerson.del...@gmail.com, adwor...@googlegroups.com
Hi,

Thank you for reaching out to the Google Ads API support team.

Upon checking the provided logs, it appears that you're getting an IMMUTABLE_FIELD error. Also, I could see you have provided only response logs which are not sufficient to investigate the issue further so​​​ please provide us complete API logs (request and response with request-id and request header) generated at your end.

If you are using a client library and haven't enabled the logging yet, I would request you to enable logging for the specific client library that you are using. You can refer to the guides Java, .Net, PHP, Python, Ruby or Perl to enable logging at your end. For REST interface requests, you can enable logging via the curl command by using the -i flag.

You can send the details via Reply privately to the author option, or direct private reply to this email.

 
This message is in relation to case "ref:!00D1U01174p.!5004Q02tJBNg:ref" (ADR-00237939)

Thanks,
 
Google Logo Google Ads API Team


Andrew Wirtz

unread,
Jun 5, 2024, 9:16:07 AM6/5/24
to Google Ads API and AdWords API Forum
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.

Google Ads API Forum Advisor

unread,
Jun 5, 2024, 3:08:05 PM6/5/24
to adwor...@googlegroups.com
Hi,

Thank you for reaching out to the Google Ads API support team.

From the provided logs, it appears that you're getting an IMMUTABLE_FIELD while performing ad_group_ad_operation. Also, I could see you have provided only response logs are not sufficient to investigate the issue further, provide us with the complete API logs (request and response with request-id and request header) generated at your end so that we can better assist you.

If you are using a client library and haven't enabled the logging yet, I would request you to enable logging for the specific client library that you are using. You can refer to the guides Java, .Net, PHP, Python, Ruby or Perl to enable logging at your end. For REST interface requests, you can enable logging via the curl command by using the -i flag.

You can send the details via Reply privately to the author option, or direct private reply to this email.

This message is in relation to case "ref:!00D1U01174p.!5004Q02tJDiE:ref" (ADR-00238488)


Thanks,
 
Google Logo Google Ads API Team


Reply all
Reply to author
Forward
0 new messages