Skip to content

Preview creative assets before uploading

Request

This endpoint allows you to preview creative assets before they are permanently uploaded to the system. It validates the files and metadata, returning a preview of what will be created without actually storing the creatives. This is useful for verifying that your files and metadata are correct before committing to the upload.

Security
Auth0(Required scopes: offline_accessmanage:services)
Bodymultipart/form-datarequired
filenameArray of strings, (binary), [ 1 .. 10 ] itemsrequired

Creative asset files to upload

metadataobjectrequired

JSON string containing metadata for all files

POST
/creative_draft
curl -i -X POST \
  https://api.mediamath.com/api/v3.0/creative_draft \
  -H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
  -H 'Content-Type: multipart/form-data' \
  -F 'filename=["banner_300x250.jpg"]' \
  -F 'metadata={"advertiser_id":100212,"is_https":true,"submissions":[{"name":"banner_300x250.jpg","click_through_url":"https://example.com/click","landing_page":"https://example.com/landing","concept_id":4157184}]}'

Responses

Preview generated successfully

Bodyapplication/json
dataobject
metaobject
Response
{ "data": { "uploaded_files": [], "metadata": {} }, "meta": { "status": "success" } }