How to edit the creative information in the ad.

87 views
Skip to first unread message

李小康

unread,
Jun 1, 2022, 10:55:07 PM6/1/22
to Google Ads API and AdWords API Forum
Hi,
I created an advertisement through the API with two titles and descriptions, and then I called the modify advertisement API, but i got an error "Field 'ad.app_ad.images' cannot be modified by 'UPDATE' operation."
Is this because my FieldMask is wrong? Or is it that the interface does not support modifying creatives?
The FieldMask I filled in is "Paths: []string{'ad.app_ad.images'}"
Looking forward to your reply.

Below is my request body and response body:
request:&services.MutateAdGroupAdsRequest{state:impl.MessageState{NoUnkeyedLiterals:pragma.NoUnkeyedLiterals{}, DoNotCompare:pragma.DoNotCompare{}, DoNotCopy:pragma.DoNotCopy{}, atomicMessageInfo:(*impl.MessageInfo)(nil)}, sizeCache:0, unknownFields:[]uint8(nil), CustomerId:"9878974158", Operations:[]*services.AdGroupAdOperation{(*services.AdGroupAdOperation)(0xc0004134a0)}, PartialFailure:false, ValidateOnly:false, ResponseContentType:0}
response:
{"level":"error","msg":"error:\u0026errorpkg.Status{Code:3, Platform:\"Google\", Reason:\"IMMUTABLE_FIELD\", Message:\"Field 'ad.app_ad.images' cannot be modified by 'UPDATE' operation.\", Details:\"Request contains an invalid argument.\", RequestID:\"JOEF97DNxa1P59wmtDQWnA\"}","time":"2022-06-02T10:47:56+08:00"}

Google Ads API Forum Advisor

unread,
Jun 2, 2022, 6:07:23 AM6/2/22
to jujul...@gmail.com, adwor...@googlegroups.com
Hi,

Thank you for reaching out to us.

You may note that you may use AdService to mutate Ads. You may check this documentation that provides an overview of the various ad types and features available in the API. you may also note that only certain ad types are mutable and you can check this table for that. With this, you will see that the AppAd (ad.app_ad) is indeed immutable.

In addition, there is also this code example that illustrates how to modify an existing ad.

Best regards,
Google Logo
Heidi
Google Ads API Team
 

 

ref:_00D1U1174p._5004Q2bb6b0:ref
Reply all
Reply to author
Forward
0 new messages