ad group ad cant be update on google ads ui, but cant update throght api

106 views
Skip to first unread message

chun liu

unread,
Aug 2, 2023, 4:02:03 AM8/2/23
to Google Ads API and AdWords API Forum
1.png2.png
```
{
  "operations": [
    {
      "update": {
        "status""ENABLED",
        "ad": {
          "name""dfdfafdsfsafdfddfsdfsaaf",
          "responsive_search_ad": {
            "headlines": [
              {
                "pinned_field""HEADLINE_1",
                "text""dfsfdasdfffafddfsfdfdfda"
              },
              {
                "pinned_field""HEADLINE_2",
                "text""dsffsfsdfdffdssdfafdssdffsdfsd"
              },
              {
                "pinned_field""HEADLINE_3",
                "text""sdffdsdsdfdfsafsdfsdfsdsfd"
              }
            ],
            "descriptions": [
              {
                "pinned_field""DESCRIPTION_1",
                "text""sdfasfddfffsdfsf"
              },
              {
                "pinned_field""DESCRIPTION_2",
                "text""dsfdfsdsfdsfdsf"
              }
            ],
            "path1""sdfsdf",
            "path2""fdsff"
          },
          "final_urls": [
            "https://www.baidu.com"
          ]
        },
        "ad_group""customers/4308185274/adGroups/154911377968",
        "resource_name""customers/4308185274/adGroupAds/154911377968~667784355253"
      },
      "updateMask""status,ad.name,ad.responsive_search_ad.headlines,ad.responsive_search_ad.descriptions,ad.responsive_search_ad.path1,ad.responsive_search_ad.path2,ad.final_urls,ad_group"
    }
  ],
  "responseContentType""MUTABLE_RESOURCE"
}

"message": "Field 'ad_group_ad.field.ad.final_urls' cannot be modified by 'ad_group_ad.field.UPDATE' operation.",
"message": "Field 'ad_group_ad.field.ad.name' cannot be modified by 'ad_group_ad.field.UPDATE' operation.",
"message": "Field 'ad_group_ad.field.ad.responsive_search_ad.descriptions' cannot be modified by 'ad_group_ad.field.UPDATE' operation.",
"message": "Field 'ad_group_ad.field.ad.responsive_search_ad.headlines' cannot be modified by 'ad_group_ad.field.UPDATE' operation.",
"message": "Field 'ad_group_ad.field.ad.responsive_search_ad.path1' cannot be modified by 'ad_group_ad.field.UPDATE' operation.",
"message": "Field 'ad_group_ad.field.ad.responsive_search_ad.path2' cannot be modified by 'ad_group_ad.field.UPDATE' operation.",
"message": "Field 'ad_group' cannot be modified by 'ad_group_ad.field.UPDATE' operation.",
```

chun liu

unread,
Aug 2, 2023, 5:05:58 AM8/2/23
to Google Ads API and AdWords API Forum
more info
3.png

Google Ads API Forum Advisor

unread,
Aug 2, 2023, 7:28:22 AM8/2/23
to liux...@gmail.com, adwor...@googlegroups.com

Hello,

Thanks for reaching out to the Google Ads API Team.

From what I can understand from the information you have provided, you are trying to update your Responsive Search Ad using the adGroupAds:mutate method and are returning an IMMUTABLE_FIELD error.

Since you mentioned that you were able to update this via UI, I have checked on my end and I would suggest using the ads:mutate method in updating your Responsive Search Ad. You can find more information on this method via this link (https://developers.google.com/google-ads/api/rest/reference/rest/v14/customers.ads/mutate).

If you encounter any errors, kindly provide us with the complete logs (request and response with request ID) generated on your end so we can investigate further.

You can provide it via Reply privately to the author option. If this option is not available, then send it instead on this email address googleadsa...@google.com

This message is in relation to case "ref:_00D1U1174p._5004Q2na7km:ref"

Thanks,
 
Google Logo Google Ads API Team


Kevin Brinkman

unread,
Apr 3, 2024, 7:50:30 PM4/3/24
to Google Ads API and AdWords API Forum
Hi there, I'm running into a similar issue when running the script below:

function main(){
  const adUpdate = AdsApp.mutate({
    adGroupAdOperation: {
      update: {
        'resource_name': 'customers/91********/adGroupAds/1328********~6561******** ',
        'ad': {
          'responsive_search_ad': {
            'headlines': [
              {'text': 'New Headline 1', 'pinned_field': '1'}
            ],
          }
        }
      },
      updateMask: "ad.responsive_search_ad.headlines"
    }
  });
 
  if ( adUpdate.isSuccessful()) {
    console.log(`Resource ${ adUpdate.getResourceName()} successfully mutated.`);
  } else {
      console.log("Errors encountered:");
      for (const error of  adUpdate.getErrorMessages()) {
          console.log(error);
      }
  }
}

I get the error:  Field 'ad.responsive_search_ad.headlines' cannot be modified by 'UPDATE' operation. At adGroupAdOperation.update.ad.responsiveSearchAd.headlines

Is there a way to fix this?

Op woensdag 2 augustus 2023 om 13:28:22 UTC+2 schreef Google Ads API Forum Advisor:
Reply all
Reply to author
Forward
0 new messages