CANNOT_MODIFY_AD

78 views
Skip to first unread message

FW API

unread,
Apr 8, 2022, 8:46:10 AM4/8/22
to Google Ads API and AdWords API Forum
Hello, 

I am receiving AdError.CANNOT_MODIFY_AD on attempting to modify image_ads. According to the request logs, the error field path points to operations.update.resource_name with trigger empty string. The resource name is set, though. 

Sadly the documentation about this error type is unclear as to the conditions it is raised under.

I'm happy to supply the corresponding request and response logs.

Yours,
Stefan

Google Ads API Forum Advisor

unread,
Apr 8, 2022, 10:27:21 AM4/8/22
to api.fw...@gmail.com, adwor...@googlegroups.com
Hi there,

According to our documentation an image ad is immutable. You can create a new one based on the old one instead.

If the above also causes errors, could you turn on logging with log level set to 'DEBUG' and send us privately the request and response log of API communication created with this error?

The request and response appears similar to the JSON Mappings in our REST documentation with additional information such as  request ID. Our client libraries have loggers with logging instructions, to see these instructions you can click on the client library you use in the sidebar of our client library guide and click on "Logging”

Regards,

Google Logo
Aryeh
Google Ads API Team
 


ref:_00D1U1174p._5004Q2ZL6pz:ref

FW API

unread,
Apr 11, 2022, 2:37:12 AM4/11/22
to Google Ads API and AdWords API Forum

Hello Aryeh,

thank you for the overview of ad types. That was very helpful. I have tried what happens when one „edits“ for example the final url of an immutable image ad in the google ads web app, and then apparently  a modified ad is created and the old ad is removed. Fair enough.

Now I wonder, how to do the same thing via the api. The problem is that ad.image_ad.media_file is not selectable from ad_group. So I cannot retrieve the image file resource name to create a new ad with it.

How can this be done?

Yours,

Stefan

Google Ads API Forum Advisor

unread,
Apr 11, 2022, 11:42:47 AM4/11/22
to api.fw...@gmail.com, adwor...@googlegroups.com
Hi Stefan,

Nice to meet you! You may try the field 'ad_id_to_copy_image_from' in image_ad creation. Feel free to get back to us.
Reply all
Reply to author
Forward
0 new messages