How to update image_ad?

37 views
Skip to first unread message

xiaochuan li

unread,
May 19, 2025, 1:50:48 AM5/19/25
to Google Ads API and AdWords API Forum
I want to modify the image of an image_ad type ad with a given `ad_id`. When I use AdService to modify it, the following error occurs:
(<_InactiveRpcError of RPC that terminated with:
        status = StatusCode.INVALID_ARGUMENT
        details = "Request contains an invalid argument."
        debug_error_string = "UNKNOWN:Error received from peer ipv4:127.0.0.1:7777 {created_time:"2025-05-19T05:42:15.5886834+00:00", grpc_status:3, grpc_message:"Request contains an invalid argument."}"
>, <_InactiveRpcError of RPC that terminated with:
        status = StatusCode.INVALID_ARGUMENT
        details = "Request contains an invalid argument."
        debug_error_string = "UNKNOWN:Error received from peer ipv4:127.0.0.1:7777 {created_time:"2025-05-19T05:42:15.5886834+00:00", grpc_status:3, grpc_message:"Request contains an invalid argument."}"
>, errors {
  error_code {
    request_error: IMMUTABLE_FIELD
  }
  message: "Field \'image_ad.data\' cannot be modified by \'UPDATE\' operation."
  location {
    field_path_elements {
      field_name: "operations"
      index: 0
    }
    field_path_elements {
      field_name: "update"
    }
    field_path_elements {
      field_name: "image_ad"
    }
    field_path_elements {
      field_name: "data"
    }
  }
}
request_id: "Sgw2tFrYlXQu6OkrrofwZQ"
, 'Sgw2tFrYlXQu6OkrrofwZQ')

Do I need to set the current image_ad to "REMOVED" and then create a new one? In this case, will the ad_id also change? Please explain to me the correct process of modifying the image in image_ad.

Google Ads API Forum Advisor

unread,
May 19, 2025, 7:11:42 AM5/19/25
to clixia...@gmail.com, adwor...@googlegroups.com
Hi,

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

From the provided logs, you are encountering the IMMUTABLE_FIELD error indicating that the 'image_ad.data' field cannot be updated. To change the image ad, you will need to remove the old image ad and create a new one, which will also result in a new ad ID. I would recommend you to check this mutating ads and Ad type compatibility for more information. 
 

Thanks,
 
Google Logo Google Ads API Team

Feedback
How was our support today?

rating1    rating2    rating3    rating4    rating5
[2025-05-19 11:10:39Z GMT] This message is in relation to case "ref:!00D1U01174p.!500Ht01qXQ63:ref" (ADR-00306805)



Reply all
Reply to author
Forward
0 new messages