I followed the official sample from your docs: 
https://developers.google.com/google-ads/api/samples/upload-image-asset

I uploaded the *same image content multiple times*, and the API returned 
the *same resource name* each time — without any DUPLICATE_ASSET error.

Just to confirm:

   - 
   
   Is this the expected behaviour when the same image content is uploaded 
   again?
   - 
   
   Also, how can we confirm *before uploading* whether an identical image 
   asset already exists in the account?
   
Thanks

On Friday, May 16, 2025 at 10:03:37 PM UTC+5:30 Google Ads API Forum 
Advisor wrote:

> Hi,
>
> Thank you for reaching out to the Google Ads API support team.
>
> Please find the below answers for your questions:
>
> 1.Kindly note that it’s not possible to crop or resize an image to meet 
> the required aspect ratios for different ad types through the Google Ads 
> API. Please be informed that you can crop images using the image picker 
> during implementation. I would recommend you to refer to the *Image 
> assets format requirements* 
> <https://support.google.com/adspolicy/answer/10347108?hl=en&sjid=7205358202210108478-NC#:~:text=Note%3A%20You%20can%20crop%20images%20using%20the%20image%20picker%20during%20implementation>
>  
> help center article for more detailed information.
>
> 2.Please note that it’s not possible to get a hash or checksum of an image 
> asset through the Google Ads API. Kindly note that you can hash your image 
> yourself using the SHA256 algorithm, or Google Ads will hash the data for 
> you using the same SHA256 algorithm, which is the industry standard for 
> one-way *hashing* <https://support.google.com/google-ads/answer/9004449>. I 
> would recommend you to refer this *help center* 
> <https://support.google.com/google-ads/answer/7474263?hl=en#:~:text=How%20it%20works,hash%20Country%20and%20Zip%20data.>
>  
> article for more information.
>
> 3.If you upload an image asset that has the same content with the existing 
> image asset in your account then you will get a *DUPLICATE_ASSET* 
> <https://developers.google.com/google-ads/api/reference/rpc/v10/AssetErrorEnum.AssetError#duplicate_asset>
>  
> error. If you get this error while uploading the image asset, then you will 
> know that an already existing asset with the same content is in your 
> account.
> Thanks,
>   
> [image: Google Logo] Google Ads API Team 
> Feedback
> How was our support today? 
>
> [image: rating1] 
> <https://docs.google.com/forms/d/e/1FAIpQLSeRhIg5VeThVmbcD0c5DTWTDjmpJuSktN8vFelEL7_KV_Orbg/viewform?usp=pp_url&entry.141427034=1&entry.295079254=500Ht00001qXEO2IAO>
>   
>   [image: rating2] 
> <https://docs.google.com/forms/d/e/1FAIpQLSeRhIg5VeThVmbcD0c5DTWTDjmpJuSktN8vFelEL7_KV_Orbg/viewform?usp=pp_url&entry.141427034=2&entry.295079254=500Ht00001qXEO2IAO>
>   
>   [image: rating3] 
> <https://docs.google.com/forms/d/e/1FAIpQLSeRhIg5VeThVmbcD0c5DTWTDjmpJuSktN8vFelEL7_KV_Orbg/viewform?usp=pp_url&entry.141427034=3&entry.295079254=500Ht00001qXEO2IAO>
>   
>   [image: rating4] 
> <https://docs.google.com/forms/d/e/1FAIpQLSeRhIg5VeThVmbcD0c5DTWTDjmpJuSktN8vFelEL7_KV_Orbg/viewform?usp=pp_url&entry.141427034=4&entry.295079254=500Ht00001qXEO2IAO>
>   
>   [image: rating5] 
> <https://docs.google.com/forms/d/e/1FAIpQLSeRhIg5VeThVmbcD0c5DTWTDjmpJuSktN8vFelEL7_KV_Orbg/viewform?usp=pp_url&entry.141427034=5&entry.295079254=500Ht00001qXEO2IAO>
> [2025-05-16 16:32:34Z GMT] This message is in relation to case 
> "ref:!00D1U01174p.!500Ht01qXEO2:ref" (ADR-00306241)
>
>
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 
"Google Ads API and AdWords 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 visit 
https://groups.google.com/d/msgid/adwords-api/7a6ff24b-300d-4ec7-ba5e-210ac5497b64n%40googlegroups.com.
  • Im... Amit Tomar
    • ... 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum
      • ... Amit Tomar
        • ... 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum

Reply via email to