Unable to Create Assets

271 views
Skip to first unread message

Analytics Prod

unread,
Aug 6, 2021, 1:33:12 AM8/6/21
to Google's Campaign Manager 360 API Forum
Hi,

I am trying to create a Creative Assests via Postman, but I am facing with an error. Can someone help me what am I missing here.


Settings in Postman


Params - 
uploadType(Key)  media(Value)

Authorization - 
Bearer Token xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

Body - 
{
"File Content": "/9j/4AAQSkrSqhYCrNcQhCEIQhC2OiUvdhGIc3n/S3L53vFY5rC4hozJFOJNAvSZeEGMDBk0Bo5Ci4um5rsTY/6jXkPvTwXb0HDemdIfyinM/avinoQheXXqUISE0SMKFNFgtKId2Zib7p8QPWqqVeaY/1P+RvqqKq60OLBwXWid3G8EqElUVWlFe8kGJNdRw8E5NYc+96BLVXeMeQ9FSM0HEn1KcNS5C691uXguhz6Alcq6+io6Nc/l4Y+4Xkf+UT3nxxDUC48zQejvFOCRufI+iAhufI+i6q8qnoSoUKEJQEBKEKEoTgkCUKqE5KEiUIQnpQE1AVVCclSJVCF/9k=",
"MIME type": "image/jpeg",
"Asset name": "download.jpeg",
"Advertiser ID": "8111111",
"Profile": "6455555",
"Creative asset type": "HTML_IMAGE"
}


Output:

Status : 400 Bad Request
Response:
{
    "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"
            }
        ]
    }
}





DCM API (DoubleClick Campaign Mgr)

unread,
Aug 6, 2021, 5:38:18 AM8/6/21
to analytics-r...@canvasww.com, google-doubleclick-...@googlegroups.com

Hi,

 

Thank you for reaching out to us.

 

Could you please confirm what type of creative are you trying to upload the creative assets? For default creatives you will need just one image file, but for an HTML5 creative it requires both a zipped HTML5 asset (.zip) and a backup image. With regards to the file name error, please follow the format on the error message, the file name should only contain the following characters: A-Z a-z 0-9 . = - _.

 

This documents may be helpful:

Regards,
Google Logo
Michael Angelo Legaspi
DCM API Team
 


ref:_00D1U1174p._5004Q2Ll34K:ref

Analytics Prod

unread,
Aug 6, 2021, 10:41:45 AM8/6/21
to Google's Campaign Manager 360 API Forum

I am creating Default Creatives. And also as for the file naming issue I followed as per the naming condition. Is there any sample json test data to create default assests and HTML5 assests, that we can make use of in the postman. 

DCM API (DoubleClick Campaign Mgr)

unread,
Aug 9, 2021, 3:22:56 AM8/9/21
to analytics-r...@canvasww.com, google-doubleclick-...@googlegroups.com
Hi Analytics Prod,

I work along with Micheal. Allow me to assist you in this.

Glancing at the error response, please double check the following suggestions to resolve the errors:
  1. If you are specifying the file type in the file name. For example, it should be myimage.jpg.
  2. Remove any special characters in the name of the files
For request (postman), please check this link which leads to the document about constructing a media upload request.

Regards,
Google Logo
Teejay Wennie Pimentel
DCM API Team
 


ref:_00D1U1174p._5004Q2Ll34K:ref

Analytics Prod

unread,
Aug 10, 2021, 1:59:31 AM8/10/21
to Google's Campaign Manager 360 API Forum
Thank you for the reply.  I could not find the documentation related Asset Creation with sample json data. I have created Campaign, Advertiser and Placements successfully via API, only the Creative Creation and Ads creation part I am facing issue. I could see that there is no Json test data available for the Creative Assets creative. Is there any sample Json test data for Creative Asset , Creative Creation and Ad creation?.

DCM API (DoubleClick Campaign Mgr)

unread,
Aug 11, 2021, 3:16:57 AM8/11/21
to analytics-r...@canvasww.com, google-doubleclick-...@googlegroups.com
Hi Analytics Prod,

I could see that there is an existing thread with the same concern that you're having. With this, we would recommend to check it out, then let me know if it helps.
Reply all
Reply to author
Forward
0 new messages