Campaigns API (xx.xx.xx)

MediaMath Platform API

Download OpenAPI description
Languages
Servers
Mock server
https://apidocs.mediamath.com/_mock/apis/campaigns-api/openapi/

Organizations

Organizations

Operations

Agencies

Agencies

Operations

Advertisers

Advertisers

Operations

Campaigns

Campaigns

Operations

Strategies

Strategies

Operations

Targeting

Targeting

Operations

Vendor Contracts

Vendor Contracts

Operations

Strategy Templates

Strategy Templates

Operations

Atomic Creatives

Atomic Creatives

Operations

List atomic creatives

Request

Get a list of atomic creatives

curl -i -X GET \
  https://apidocs.mediamath.com/_mock/apis/campaigns-api/openapi/atomic_creatives \
  -H 'Authorization: Bearer <YOUR_TOKEN_HERE>'

Responses

Atomic Creative Collection

Bodyapplication/json
dataArray of objects(atomic_creative_response)
metaobject(pagination metadata)
Response
application/json
{ "data": [ {} ], "meta": { "status": "success", "count": 10, "total_count": 100, "offset": 0, "next_page": "string", "prev_page": "string" } }

Create atomic creative

Request

Create an atomic creative

Bodyapplication/json
widthintegerrequired
namestring[ 1 .. 256 ] characters
heightintegerrequired
creative_import_file_idinteger
file_typestring
Default "unknown"
Enum"swf""gif""html5""jpg""jpeg""tiff""tif""png""unknown""vast"
is_multi_creativeboolean
Default false
has_soundboolean
Default false
rich_mediaboolean
Default false
rich_media_providerstring
builtboolean
Default false
build_datestring
build_errorsstring
external_identifierstring[ 1 .. 64 ] charactersrequired
expandstring
expansion_triggerstring
Default "MOUSEOVER"
Enum"AUTOMATIC""MOUSEOVER""CLICK"
tpas_ad_tagstring
edited_tagstring
click_through_urlstring or null(uri)<= 2048 characters
concept_idinteger or null
statusboolean
Default true
is_mraidboolean
Default false
is_httpsboolean
Default false
t1asboolean
Default false
start_datestring or null
end_datestring or null
vast_versioninteger or null
is_audioboolean or null
expansion_directionstring<= 19 characters
Default "NONRESTRICTED"
media_typestring
Default "display"
Enum"display""video""mobile"
ad_server_typestring
ad_formatstring
Default "DISPLAY"
Enum"DISPLAY""MOBILE""EXPANDABLE""FBX""COMPONENT"
approval_statusstring
Default "PENDING"
Enum"PENDING""APPROVED""REJECTED"
tpas_ad_tag_namestring[ 1 .. 255 ] characters
click_urlstring or null(uri)
sizmek_tag_statusstring
Default "NOT_USED"
sizmek_creative_statusstring
Default "NOT_USED"
advertiser_idinteger>= 1required
tagstring
tag_typestring
Enum"IFRAME_SCRIPT_NOSCRIPT""IFRAME_SCRIPT""IFRAME_NOSCRIPT""IFRAME_IMG""SCRIPT_NOSCRIPT""SCRIPT""NOSCRIPT""IFRAME""IMG""VIDEO"
vendor_idsArray of integers
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
    ]
  }'

Responses

Atomic Creative response

Bodyapplication/json
dataobject(atomic_creative_response)
metaobject(single_metadata)
Response
application/json
{ "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" } }

Get an atomic creative

Request

Get an atomic creative by ID

Path
atomic_creative_idintegerrequired

Numeric ID of the atomic creative to get

curl -i -X GET \
  'https://apidocs.mediamath.com/_mock/apis/campaigns-api/openapi/atomic_creatives/{atomic_creative_id}' \
  -H 'Authorization: Bearer <YOUR_TOKEN_HERE>'

Responses

Atomic Creative response

Bodyapplication/json
dataobject(atomic_creative_response)
metaobject(single_metadata)
Response
application/json
{ "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" } }

Update an atomic creative

Request

Update an atomic creative by ID

Path
atomic_creative_idintegerrequired

Numeric ID of the atomic creative to update

Bodyapplication/json
namestring[ 1 .. 256 ] characters
versioninteger
external_identifierstring[ 1 .. 64 ] characters
advertiser_idinteger>= 1
widthinteger
heightinteger
concept_idinteger or null
statusboolean
is_mraidboolean
is_httpsboolean
t1asboolean
start_datestring or null
end_datestring or null
vast_versioninteger or null
is_audioboolean or null
expansion_directionstring<= 19 characters
Default "NONRESTRICTED"
expansion_triggerstring
Default "MOUSEOVER"
Enum"AUTOMATIC""MOUSEOVER""CLICK"
media_typestring
Enum"display""video""mobile"
ad_server_typestring
ad_formatstring
Default "DISPLAY"
Enum"DISPLAY""MOBILE""EXPANDABLE""FBX""COMPONENT"
approval_statusstring
Enum"PENDING""APPROVED""REJECTED"
tpas_ad_tagstring
tpas_ad_tag_namestring[ 1 .. 255 ] characters
click_through_urlstring or null(uri)<= 2048 characters
click_urlstring or null(uri)
edited_tagstring
tagstring
tag_typestring
Enum"IFRAME_SCRIPT_NOSCRIPT""IFRAME_SCRIPT""IFRAME_NOSCRIPT""IFRAME_IMG""SCRIPT_NOSCRIPT""SCRIPT""NOSCRIPT""IFRAME""IMG""VIDEO"
vendor_idsArray of integers
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
    ]
  }'

Responses

Atomic Creative response

Bodyapplication/json
dataobject(atomic_creative_response)
metaobject(single_metadata)
Response
application/json
{ "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" } }

Atomic Creative Audit Log

Request

Get a list changes to this atomic creative

Path
atomic_creative_idintegerrequired

Numeric ID of the atomic creative

Query
page_limitinteger[ 1 .. 1000 ]

Number of elements in the collection to retrieve

Example: page_limit=100
page_offsetinteger[ 0 .. 1000 ]

Index of the first element in the collection to retrieve

Example: page_offset=0
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>'

Responses

list of changes to an entity

Bodyapplication/json
dataArray of objects or null
metaobject(pagination metadata)
Response
application/json
{ "data": [ {} ], "meta": { "status": "success", "count": 10, "total_count": 100, "offset": 0, "next_page": "string", "prev_page": "string" } }

Bulk update atomic creatives

Request

Bulk update atomic creatives

Bodyapplication/json
atomic_creativesobject
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
          ]
        }
      ]
    }
  }'

Responses

Atomic Creative Bulk response

Bodyapplication/json
dataArray of objects(atomic_creative_response)
metaobject(pagination metadata)
errorsArray of objects(bulk errors)
Response
application/json
{ "data": [ {} ], "meta": { "status": "success", "count": 10, "total_count": 100, "offset": 0, "next_page": "string", "prev_page": "string" }, "errors": [ {} ] }

Concepts

Concepts

Operations

Creatives

Creatives

Operations

Pixel Bundles

Pixel Bundles

Operations

Campaign Plans

Campaign Plans

Operations

Strategy Plans

Strategy Plans

Operations

Bulk Update

Bulk Update

Operations

Marketplaces

Marketplaces

Operations

Users

Users

Operations

Enterprise Controls

Enterprise Controls

Operations

General

General

Operations

Currency Rates

Currency Rates

Operations

Site Lists

Site Lists

Operations

Timezones

Timezones

Operations

Strategy Groups

Strategy Groups

Operations

Strategy Day Parts

Strategy Day Parts

Operations

Strategy Deals

Strategy Deals

Operations

Strategy IP Addresses

Strategy IP Addresses

Operations

Strategy Concepts

Strategy Concepts

Operations

Targeting Segments

Targeting Segments

Operations

Strategy Target Values

Strategy Target Values

Operations

List Organization Settings

Operations

Update Organization Settings

Operations

New Strategy Plans

Operations

Strategy Plan Target Values

Operations

Campaigns Budget Flights

Operations

User Settings

Operations

Update User Settings

Operations

Supply Sources

Operations

Vendors

Operations

Ad Servers

Operations

Site Lists Site Download

Operations

Site Lists Assignments

Operations

Targeting Segment Objectives

Operations

Targeting Segment Objective

Operations