-
Notifications
You must be signed in to change notification settings - Fork 173
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error in inserting CreativeAssets #101
Comments
Mangeshr94
changed the title
rror in inserting CreativeAssets
Error in inserting CreativeAssets
Dec 21, 2023
public class uploadAssetClass {
} |
this is the apex class which I am using |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi GCM Team,
I am getting below error when I am trying to insert the image file as creative Asset.
|USER_DEBUG|[57]|DEBUG|Error in insert CreativeAsset: {
"error": {
"code": 400,
"message": "19020 : The image type of file "" is not supported.",
"errors": [
{
"message": "19020 : The image type of file "" is not supported.",
"domain": "global",
"reason": "invalid"
},
{
"message": "19004 : Invalid file name specified.",
"domain": "global",
"reason": "invalid"
},
{
"message": "19017 : The name of the file can only contain the following characters: A-Z a-z 0-9 . = - _",
"domain": "global",
"reason": "invalid"
}
]
}
}
I am passing the request body as below,
requestBodyJson==>{
"assetIdentifier":{
"type":"IMAGE",
"name":"Banner1.png"
},
"assetData":"aVZCT1J3MEtHZ29BQUFBTlNVaEVVZ0FBQVZ3QUFBRG9DQVlBQUFDak9sejdBQUFBQVhOU1IwSUFyczRjNlFBQUFBUm5RVTFCQUFDeGp3djhZUVVBQUFBSmNFaFpjd0FBRmlVQUFCWWxBVWxTSlBBQUFQK2xTVVJCVkhoZTdQMTNnS1ZaV2U0TnI2cE8weE82ZTRhUm5BVkJVQUVWRlJWRVBDb21VSUdENFJnUUF3cW9tRkFSTVNDaUlsa1VqS2hnUWxFOGlFZFJVUEdnb29DU00rZ0FBNU9uWjZaejEzZjlydnUrbnIxcVQvWEFPZS83ZmYvdzNWWHJ1WE5ZNFZuUDJyd"
}
please help me to resolve this issue.
Thanks,
The text was updated successfully, but these errors were encountered: