MediaMath Platform API
MediaMath Platform API
curl -i -X GET \
https://apidocs.mediamath.com/_mock/apis/campaigns-api/openapi/atomic_creatives \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'
{ "data": [ { … } ], "meta": { "status": "success", "count": 10, "total_count": 100, "offset": 0, "next_page": "string", "prev_page": "string" } }
curl -i -X POST \
https://apidocs.mediamath.com/_mock/apis/campaigns-api/openapi/atomic_creatives \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"width": 0,
"name": "string",
"height": 0,
"creative_import_file_id": 0,
"file_type": "swf",
"is_multi_creative": false,
"has_sound": false,
"rich_media": false,
"rich_media_provider": "string",
"built": false,
"build_date": "string",
"build_errors": "string",
"external_identifier": "string",
"expand": "string",
"expansion_trigger": "AUTOMATIC",
"tpas_ad_tag": "string",
"edited_tag": "string",
"click_through_url": "http://example.com",
"concept_id": 0,
"status": true,
"is_mraid": false,
"is_https": false,
"t1as": false,
"start_date": "string",
"end_date": "string",
"vast_version": 0,
"is_audio": true,
"expansion_direction": "NONRESTRICTED",
"media_type": "display",
"ad_server_type": "string",
"ad_format": "DISPLAY",
"approval_status": "PENDING",
"tpas_ad_tag_name": "string",
"click_url": "http://example.com",
"sizmek_tag_status": "NOT_USED",
"sizmek_creative_status": "NOT_USED",
"advertiser_id": 1,
"tag": "string",
"tag_type": "IFRAME_SCRIPT_NOSCRIPT",
"vendor_ids": [
0
]
}'
{ "data": { "id": 0, "version": 0, "entity_type": "string", "advertiser_id": 0, "concept_id": 0, "concept_name": "string", "name": "string", "width": 0, "height": 0, "creative_import_file_id": 0, "file_type": "string", "is_https": true, "is_multi_creative": true, "has_sound": true, "rich_media": true, "rich_media_provider": "string", "status": true, "built": true, "build_date": "string", "built_by_user_id": 0, "build_errors": "string", "created_on": "2019-08-24T14:15:22Z", "last_modified": "string", "external_identifier": "string", "tpas_ad_tag_name": "string", "updated_on": "2019-08-24T14:15:22Z", "expand": "string", "click_url": "string", "ad_format": "string", "expansion_direction": "NONRESTRICTED", "expansion_trigger": "AUTOMATIC", "ad_server_type": "string", "t1as": true, "tpas_ad_tag": "string", "edited_tag": "string", "click_through_url": "string", "rejected_reason": "string", "approval_status": "string", "start_date": "string", "end_date": "string", "media_type": "string", "is_mraid": true, "vast_version": 0, "sizmek_tag_status": "string", "sizmek_creative_status": "string", "last_payload_modified": "string", "is_audio": true, "tag": "string", "tag_type": "string", "targeted_strategies": { … }, "atomic_creative_ssl_validators": { … }, "vendors": [ … ], "creative_assets": [ … ] }, "meta": { "status": "success" } }
curl -i -X GET \
'https://apidocs.mediamath.com/_mock/apis/campaigns-api/openapi/atomic_creatives/{atomic_creative_id}' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'
{ "data": { "id": 0, "version": 0, "entity_type": "string", "advertiser_id": 0, "concept_id": 0, "concept_name": "string", "name": "string", "width": 0, "height": 0, "creative_import_file_id": 0, "file_type": "string", "is_https": true, "is_multi_creative": true, "has_sound": true, "rich_media": true, "rich_media_provider": "string", "status": true, "built": true, "build_date": "string", "built_by_user_id": 0, "build_errors": "string", "created_on": "2019-08-24T14:15:22Z", "last_modified": "string", "external_identifier": "string", "tpas_ad_tag_name": "string", "updated_on": "2019-08-24T14:15:22Z", "expand": "string", "click_url": "string", "ad_format": "string", "expansion_direction": "NONRESTRICTED", "expansion_trigger": "AUTOMATIC", "ad_server_type": "string", "t1as": true, "tpas_ad_tag": "string", "edited_tag": "string", "click_through_url": "string", "rejected_reason": "string", "approval_status": "string", "start_date": "string", "end_date": "string", "media_type": "string", "is_mraid": true, "vast_version": 0, "sizmek_tag_status": "string", "sizmek_creative_status": "string", "last_payload_modified": "string", "is_audio": true, "tag": "string", "tag_type": "string", "targeted_strategies": { … }, "atomic_creative_ssl_validators": { … }, "vendors": [ … ], "creative_assets": [ … ] }, "meta": { "status": "success" } }
curl -i -X POST \
'https://apidocs.mediamath.com/_mock/apis/campaigns-api/openapi/atomic_creatives/{atomic_creative_id}' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"name": "string",
"version": 0,
"external_identifier": "string",
"advertiser_id": 1,
"width": 0,
"height": 0,
"concept_id": 0,
"status": true,
"is_mraid": true,
"is_https": true,
"t1as": true,
"start_date": "string",
"end_date": "string",
"vast_version": 0,
"is_audio": true,
"expansion_direction": "NONRESTRICTED",
"expansion_trigger": "AUTOMATIC",
"media_type": "display",
"ad_server_type": "string",
"ad_format": "DISPLAY",
"approval_status": "PENDING",
"tpas_ad_tag": "string",
"tpas_ad_tag_name": "string",
"click_through_url": "http://example.com",
"click_url": "http://example.com",
"edited_tag": "string",
"tag": "string",
"tag_type": "IFRAME_SCRIPT_NOSCRIPT",
"vendor_ids": [
0
]
}'
{ "data": { "id": 0, "version": 0, "entity_type": "string", "advertiser_id": 0, "concept_id": 0, "concept_name": "string", "name": "string", "width": 0, "height": 0, "creative_import_file_id": 0, "file_type": "string", "is_https": true, "is_multi_creative": true, "has_sound": true, "rich_media": true, "rich_media_provider": "string", "status": true, "built": true, "build_date": "string", "built_by_user_id": 0, "build_errors": "string", "created_on": "2019-08-24T14:15:22Z", "last_modified": "string", "external_identifier": "string", "tpas_ad_tag_name": "string", "updated_on": "2019-08-24T14:15:22Z", "expand": "string", "click_url": "string", "ad_format": "string", "expansion_direction": "NONRESTRICTED", "expansion_trigger": "AUTOMATIC", "ad_server_type": "string", "t1as": true, "tpas_ad_tag": "string", "edited_tag": "string", "click_through_url": "string", "rejected_reason": "string", "approval_status": "string", "start_date": "string", "end_date": "string", "media_type": "string", "is_mraid": true, "vast_version": 0, "sizmek_tag_status": "string", "sizmek_creative_status": "string", "last_payload_modified": "string", "is_audio": true, "tag": "string", "tag_type": "string", "targeted_strategies": { … }, "atomic_creative_ssl_validators": { … }, "vendors": [ … ], "creative_assets": [ … ] }, "meta": { "status": "success" } }
curl -i -X GET \
'https://apidocs.mediamath.com/_mock/apis/campaigns-api/openapi/atomic_creatives/{atomic_creative_id}/history?page_limit=100&page_offset=0' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'
{ "data": [ { … } ], "meta": { "status": "success", "count": 10, "total_count": 100, "offset": 0, "next_page": "string", "prev_page": "string" } }
curl -i -X POST \
https://apidocs.mediamath.com/_mock/apis/campaigns-api/openapi/bulk_update/atomic_creatives \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"atomic_creatives": {
"create": [
{
"width": 0,
"name": "string",
"height": 0,
"creative_import_file_id": 0,
"file_type": "swf",
"is_multi_creative": false,
"has_sound": false,
"rich_media": false,
"rich_media_provider": "string",
"built": false,
"build_date": "string",
"build_errors": "string",
"external_identifier": "string",
"expand": "string",
"expansion_trigger": "AUTOMATIC",
"tpas_ad_tag": "string",
"edited_tag": "string",
"click_through_url": "http://example.com",
"concept_id": 0,
"status": true,
"is_mraid": false,
"is_https": false,
"t1as": false,
"start_date": "string",
"end_date": "string",
"vast_version": 0,
"is_audio": true,
"expansion_direction": "NONRESTRICTED",
"media_type": "display",
"ad_server_type": "string",
"ad_format": "DISPLAY",
"approval_status": "PENDING",
"tpas_ad_tag_name": "string",
"click_url": "http://example.com",
"sizmek_tag_status": "NOT_USED",
"sizmek_creative_status": "NOT_USED",
"advertiser_id": 1,
"tag": "string",
"tag_type": "IFRAME_SCRIPT_NOSCRIPT",
"vendor_ids": [
0
]
}
],
"update": [
{
"id": 0,
"name": "string",
"version": 0,
"external_identifier": "string",
"advertiser_id": 1,
"width": 0,
"height": 0,
"concept_id": 0,
"status": true,
"is_mraid": true,
"is_https": true,
"t1as": true,
"start_date": "string",
"end_date": "string",
"vast_version": 0,
"is_audio": true,
"expansion_direction": "NONRESTRICTED",
"expansion_trigger": "AUTOMATIC",
"media_type": "display",
"ad_server_type": "string",
"ad_format": "DISPLAY",
"approval_status": "PENDING",
"tpas_ad_tag": "string",
"tpas_ad_tag_name": "string",
"click_through_url": "http://example.com",
"click_url": "http://example.com",
"edited_tag": "string",
"tag": "string",
"tag_type": "IFRAME_SCRIPT_NOSCRIPT",
"vendor_ids": [
0
]
}
]
}
}'
{ "data": [ { … } ], "meta": { "status": "success", "count": 10, "total_count": 100, "offset": 0, "next_page": "string", "prev_page": "string" }, "errors": [ { … } ] }