Hi all,

Fortunately, we were able to resolve the issue by using the latest Java SDK 
version (17.0.0) which uses the new API version 10. 

When doing the calls to this API, we don’t receive the error anymore and 
instead, the existing asset id is automatically reused when we upload the 
same image again.

On Wednesday, 16 February 2022 at 01:29:44 UTC+1 geanpe...@gmail.com wrote:

>
> My fastest solution was the following:
> $error_message = str_replace(". Remove the existing asset first if you 
> would like to change the name of the asset., 
> reason=CANNOT_MODIFY_ASSET_NAME}]","",str_replace("'", "", 
> $e->getMessage()));
>
> $arr = explode(" ", $ error_message);
> $size = sizeof($arr);
> $asset_Id = trim($arr[$size -1]);
>
> Once the asset_id is obtained, this is the same one that I send together 
> with the creation of the campaign
>
> I am using the PHP SDK
> El martes, 15 de febrero de 2022 a la(s) 12:06:03 UTC-5, meca...@gmail.com 
> escribió:
>
>> Lately I have been getting this error too.
>>
>> I used to get it in the past by passing an asset name when creating the 
>> asset, but then I realized that the asset name was optional, so not passing 
>> the asset name solved the issue. However now I'm getting the issue again 
>> even though I'm not passing any asset name.
>>
>> El viernes, 11 de febrero de 2022 a las 23:32:50 UTC+1, adsapi escribió:
>>
>>> Hi Luciano,
>>>
>>> Right now, parsing the error message is the way to handle this error. 
>>> I'll work with the team to try and introduce a better way to expose this 
>>> error.
>>>  
>>>
>>> Cheers
>>> Anash
>>>
>>>
>>> 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 
"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 on the web visit 
https://groups.google.com/d/msgid/adwords-api/a37c11e6-66bf-444a-8ff3-ac411a5251ccn%40googlegroups.com.
  • Re... Luciano Santana
  • Re... 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum
  • Re... Luciano Santana
  • Re... Luciano Santana
  • Re... Matteo Medda
  • Re... Matteo Medda
  • Re... 'Lonny Kapelushnik' via Google Ads API and AdWords API Forum
  • Re... Luciano Santana
  • Re... Meir Mouyal
  • Re... gean pearre Silva
  • Re... MAPI Test
  • Re... Michael Kopylenko
  • Re... Michael Kopylenko
  • Re... Michael Kopylenko

Reply via email to