Hi Aryeh, Wanted to share that I am running into the exact same problem this morning. Looking forward to having this added to the API. I'll check the blog for updates.
On Friday, November 12, 2021 at 8:27:06 AM UTC-7 adsapi wrote: > Hi Meir, > > I work with Ernie and will assist you. I reproduced this behavior of > CANNOT_MODIFY_ASSET_NAME when uploading duplicate image with a modification > in UploadImageAsset.java to upload the image with a name the second time > around, the error response didn't show which image was the duplicate. I > raised with my team this request for the error message to show which > resource name is the duplicate. Upon review we may add this > functionality. You may monitor our blog > <https://ads-developers.googleblog.com/search/label/google_ads_api> for > an update. > > In the meantime, you can pull an asset report > <https://developers.google.com/google-ads/api/fields/v9/asset> and filter > for dimensions and size and other attributes of the image you are trying to > upload and then if there is one match you got the resource name. > > SELECT asset.id, asset.image_asset.file_size, > asset.image_asset.full_size.height_pixels, asset.image_asset.full_size.url, > asset.image_asset.full_size.width_pixels, asset.image_asset.mime_type, > asset.name, asset.resource_name FROM asset WHERE > asset.image_asset.file_size = 0 AND > asset.image_asset.full_size.height_pixels = 0 AND > asset.image_asset.full_size.url = '0' AND > asset.image_asset.full_size.width_pixels = 0 AND > asset.image_asset.mime_type = 'IMAGE_GIF' > > Reminder: Share your feedback about the Google Ads (AdWords) API! Take the > 2021 > Google Ads API and AdWords API Annual Survey > <https://google.qualtrics.com/jfe/form/SV_eQbOpf4VxRyyqqO?source=so> > > Regards, > > [image: Google Logo] > Aryeh Baker > Google Ads API Team > > > ref:_00D1U1174p._5004Q2Hyur3:ref > -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our blog: https://googleadsdeveloper.blogspot.com/ =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ You received this message because you are subscribed to the Google Groups "AdWords API and Google Ads API Forum" group. To post to this group, send email to adwords-api@googlegroups.com To unsubscribe from this group, send email to adwords-api+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/adwords-api?hl=en --- You received this message because you are subscribed to the Google Groups "AdWords API and Google Ads API Forum" group. To unsubscribe from this group and stop receiving emails from it, send an email to adwords-api+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-api/fd69d62d-cbb0-49da-a3f6-122ee3bfda9fn%40googlegroups.com.