This is the 0.5 version of Beeswax’s API documentation. For the updated 2.0 version, you can navigate by clicking the dropdown located near the top left of this site.

For more information about the ongoing migration from 0.5 to 2.0, please visit the 2.0 version.

Discussions

Ask a Question
Back to All

Create video creative error

Hello
I'm trying to create a video creative and I'm getting the error:

b'{\n    "success": false,\n    "message": "creative could not be created",\n    "errors": [\n        "ERROR: Duration must be set for video creatives"\n    ]\n}\n'

The request body that I used:

{"advertiser_id": 1202, "creative_name": "creative_vsalim_0202", "creative_type": 1,  "height": 0, "width": 0, "secure": false, "click_url": "https://www.htmsdf.com", "creative_template_id": 3, "creative_attributes": {"video": {"video_mime": [        "video/mp4"]}}, "creative_content": {"TITLE": "creative_vsalim_0202", "MEDIA_FILES": [    {"VIDEO_MIME": "video/mp4", "BIT_RATE": "600", "API_FRAMEWORK": "",       "MEDIA_FILE": "https://extendtv-production-creatives.s3.amazonaws.com/video/creative_vsalim_0202_1967162.mp4", "DURATION": 120} ], "TITLE_ESC": "creative_vsalim_0202"}, "pixels": [],"start_date": "2021-05-19", "end_date": "2021-05-26", "notes": "Created by Zyp. Zyp creative id: 1967162.", "active": true}'

Could you please help me to understand what is wrong with the duration field?