googleads-dfa-reporting-samples
googleads-dfa-reporting-samples copied to clipboard
Error in inserting CreativeAssets
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,