CANNOT_MODIFY_ASSET_NAME being thrown on every image creation request

144 views
Skip to first unread message

Adam Clapinski

unread,
Feb 10, 2022, 4:09:47 PM2/10/22
to Google Ads API and AdWords API Forum
Hi!
I'm not sure if anything has changed yesterday (11/2/2022) bout our Google ads creation app was working fine when it all of a sudden started throwing the CANNOT_MODIFY_ASSET_NAME error (below) whenever we create an Image asset.
We are currently using V8 of the ads-api.
Any help on this would be greatly appreciated!

cheers Adam

{
"status": "google-ads-exception",
"message": "Exception thrown calling GoogleAds API.",
"errors": [
{
"errorCode": {
"assetError": "CANNOT_MODIFY_ASSET_NAME"
},
"message": "The asset has a name which is different from an existing duplicate that represents the same content.",
"trigger": {
"stringValue": "Square Image 1#fPEO"
},
"location": {
"fieldPathElements": [
{
"fieldName": "operations",
"index": 0
},
{
"fieldName": "create"
},
{
"fieldName": "name"
}
]
}
}
]
}

Matteo Medda

unread,
Feb 11, 2022, 3:45:21 AM2/11/22
to Google Ads API and AdWords API Forum
Hello, we have the same problem starting this morning. We have not changed anything on our code. What is the correct procedure for uploading an asset?
We are currently using V9 of the ads-api.
We have all campaigns stopped for this reason.


Thanks

Google Ads API Forum Advisor

unread,
Feb 11, 2022, 5:09:51 AM2/11/22
to m.m...@doveconviene.com, adwor...@googlegroups.com

Hi Matteo,

Thanks for reaching out to the Google Ads API Forum.

Could you provide us with the complete request and response logs with the request-id  via the Reply privately to author option, so our team can better check?

If you’re using a client library, logging can be enabled by navigating to the Client libraries > Your client library (ex. Java) > Logging documentation, which you can access from this link

Regards,

Google Logo
Yasar
Google Ads API Team
 


ref:_00D1U1174p._5004Q2W6EJX:ref

Google Ads API Forum Advisor

unread,
Feb 11, 2022, 5:10:51 AM2/11/22
to ad...@plezzel.com.au, adwor...@googlegroups.com

Hi Adam,

Matteo Medda

unread,
Feb 12, 2022, 6:29:40 AM2/12/22
to Google Ads API and AdWords API Forum
Hi, 
we have found a workaround on the creation of campaigns, let's first check the existence of an image with a specific "name" and if it does not exist we go to create it.

Previously we created them directly without a "name" and the error of images with same content never showed up.

Thx,
Matteo

Google Ads API Forum Advisor

unread,
Feb 14, 2022, 12:20:50 PM2/14/22
to m.m...@doveconviene.com, adwor...@googlegroups.com

Hello Matteo,

Thank you for replying back. If you are looking for a way to get the value of a data field, then I am afraid that this is not possible as this field is for mutating only.
However, it appears that the error did not occur because you've uploaded the same image, rather, this error occurred because you are setting the same asset name. With this, if you are creating a new asset, please ensure to use a unique name to avoid the error. Furthermore, you can utilize the asset view to know the name of your existing assets before creating new ones.

To take a closer look at the issue you described and to address it as Yasar mentioned in the previous response, would you be able to provide the complete request and response logs with request ID and request header generated on your end where we can see the error with more details? Kindly use the Reply privately to the author option while sharing the details.

Best regards,

Google Logo
Jakeia Sabrina
Google Ads API Team
 
 

ref:_00D1U1174p._5004Q2W6EJX:ref

Matteo Medda

unread,
Feb 15, 2022, 3:26:50 AM2/15/22
to Google Ads API and AdWords API Forum
Hi Jakeia, sorry, we are looking for the asset name and upload the asset only if it does not exist.

Thx,
Matteo

Google Ads API Forum Advisor

unread,
Feb 15, 2022, 8:58:09 PM2/15/22
to m.m...@doveconviene.com, adwor...@googlegroups.com

Hello Matteo,

Thanks for getting back to us.

When checking on the asset name, as previously mentioned by Jakeia, you can utilize the asset view to know the name of your existing assets before creating new ones.

Regards,

Google Logo
Mark Kevin
Google Ads API Team
 


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