Skip to content

Campaigns API (xx.xx.xx)

MediaMath Platform API

Download OpenAPI description
Languages
Servers
Live Server

https://api.mediamath.com/api/v3.0/

Organizations

Organizations

Operations

Agencies

Agencies

Operations

Advertisers

Advertisers

Operations

Campaigns

Campaigns

Operations

Campaigns Budget Flights

Campaigns Budget Flights

Operations

Campaign Plans

Campaign Plans

Operations

Strategies

Strategies

Operations

Strategy Parameters

Strategy Parameters

Operations

Strategy Templates

Strategy Templates

Operations

New Strategy Plans

New Strategy Plans

Operations

Targeting

Targeting

Operations

Targeting Attachments

TargetingAttachments

Operations

Targeting Segments

Targeting Segments

Operations

Targeting Segment Objectives

Targeting Segment Objectives

Operations

Vendor Contracts

Vendor Contracts

Operations

Contracts

Contracts

Operations

Audience Vendors

Audience Vendors

Operations

Vendors

Vendors

Operations

Atomic Creatives

Atomic Creatives

Operations

Concepts

Concepts

Operations

Creatives

Creatives

Operations

Pixel Bundles

Pixel Bundles

Operations

Pixel Providers

Pixel Providers

Operations

Marketplaces

Marketplaces

Operations

Get a Marketplace

Request

Get a marketplace by ID

Security
Auth0
Path
marketplace_idintegerrequired

Numeric ID of the marketplace to get

curl -i -X GET \
  'https://api.mediamath.com/api/v3.0/marketplaces/{marketplace_id}' \
  -H 'Authorization: Bearer <YOUR_TOKEN_HERE>'

Responses

Marketplace response

Bodyapplication/json
dataobject(marketplace_full)
metaobject(single_metadata)
Response
application/json
{ "data": { "id": 0, "version": 0, "created_on": "2019-08-24T14:15:22Z", "updated_on": "2019-08-24T14:15:22Z", "name": "string", "supply_type": "string", "status": true, "rtb_enabled": true, "strategy_id": 0, "code": "string", "bidder_exchange_identifier": 0, "rtb_type": "string", "has_display": true, "has_mobile_display": true, "has_video": true, "has_mobile_video": true, "requires_creative_audit": true, "has_desktop_video": true, "has_connected_tv": true, "mma_free": true, "private": true, "mkt_sell_price": -1, "mkt_sell_price_currency_code": "USD", "permission_organizations": [], "permission_agencies": [] }, "meta": { "status": "success" } }

Update a Marketplace

Request

Update a marketplace by ID

Security
Auth0
Path
marketplace_idintegerrequired

Numeric ID of the marketplace to update

Bodyapplication/json
idinteger
versioninteger
namestringnon-empty
supply_typestringnon-empty
statusboolean
rtb_enabledboolean
strategy_idinteger
codestringnon-empty
bidder_exchange_identifierinteger
rtb_typestringnon-empty
has_displayboolean
has_mobile_displayboolean
has_videoboolean
has_mobile_videoboolean
requires_creative_auditboolean
has_desktop_videoboolean
has_connected_tvboolean
mma_freeboolean
privateboolean
mkt_sell_pricenumber or null(float)>= -1
mkt_sell_price_currency_codestring or null= 3 characters
Example: "USD"
permission_organizationsArray of integers(int32)
permission_agenciesArray of integers(int32)
curl -i -X POST \
  'https://api.mediamath.com/api/v3.0/marketplaces/{marketplace_id}' \
  -H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "id": 0,
    "version": 0,
    "name": "string",
    "supply_type": "string",
    "status": true,
    "rtb_enabled": true,
    "strategy_id": 0,
    "code": "string",
    "bidder_exchange_identifier": 0,
    "rtb_type": "string",
    "has_display": true,
    "has_mobile_display": true,
    "has_video": true,
    "has_mobile_video": true,
    "requires_creative_audit": true,
    "has_desktop_video": true,
    "has_connected_tv": true,
    "mma_free": true,
    "private": true,
    "mkt_sell_price": -1,
    "mkt_sell_price_currency_code": "USD",
    "permission_organizations": [
      0
    ],
    "permission_agencies": [
      0
    ]
  }'

Responses

Marketplace response

Bodyapplication/json
dataobject(marketplace_full)
metaobject(single_metadata)
Response
application/json
{ "data": { "id": 0, "version": 0, "created_on": "2019-08-24T14:15:22Z", "updated_on": "2019-08-24T14:15:22Z", "name": "string", "supply_type": "string", "status": true, "rtb_enabled": true, "strategy_id": 0, "code": "string", "bidder_exchange_identifier": 0, "rtb_type": "string", "has_display": true, "has_mobile_display": true, "has_video": true, "has_mobile_video": true, "requires_creative_audit": true, "has_desktop_video": true, "has_connected_tv": true, "mma_free": true, "private": true, "mkt_sell_price": -1, "mkt_sell_price_currency_code": "USD", "permission_organizations": [], "permission_agencies": [] }, "meta": { "status": "success" } }

List Marketplaces

Request

Get a list of marketplaces

Security
Auth0
curl -i -X GET \
  https://api.mediamath.com/api/v3.0/marketplaces \
  -H 'Authorization: Bearer <YOUR_TOKEN_HERE>'

Responses

List marketplaces response

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

Create a Marketplace

Request

Create a marketplace

Security
Auth0
Bodyapplication/json
idinteger
versioninteger
namestringnon-emptyrequired
supply_typestringnon-empty
statusboolean
rtb_enabledboolean
strategy_idintegerrequired
codestringnon-empty
bidder_exchange_identifierinteger
rtb_typestringnon-empty
has_displayboolean
has_mobile_displayboolean
has_videoboolean
has_mobile_videoboolean
requires_creative_auditboolean
has_desktop_videoboolean
has_connected_tvboolean
mma_freeboolean
privateboolean
mkt_sell_pricenumber or null(float)>= -1
mkt_sell_price_currency_codestring or null= 3 characters
Example: "USD"
permission_organizationsArray of integers(int32)
permission_agenciesArray of integers(int32)
curl -i -X POST \
  https://api.mediamath.com/api/v3.0/marketplaces \
  -H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "id": 0,
    "version": 0,
    "name": "string",
    "supply_type": "string",
    "status": true,
    "rtb_enabled": true,
    "strategy_id": 0,
    "code": "string",
    "bidder_exchange_identifier": 0,
    "rtb_type": "string",
    "has_display": true,
    "has_mobile_display": true,
    "has_video": true,
    "has_mobile_video": true,
    "requires_creative_audit": true,
    "has_desktop_video": true,
    "has_connected_tv": true,
    "mma_free": true,
    "private": true,
    "mkt_sell_price": -1,
    "mkt_sell_price_currency_code": "USD",
    "permission_organizations": [
      0
    ],
    "permission_agencies": [
      0
    ]
  }'

Responses

Marketplace response

Bodyapplication/json
dataobject(marketplace_full)
metaobject(single_metadata)
Response
application/json
{ "data": { "id": 0, "version": 0, "created_on": "2019-08-24T14:15:22Z", "updated_on": "2019-08-24T14:15:22Z", "name": "string", "supply_type": "string", "status": true, "rtb_enabled": true, "strategy_id": 0, "code": "string", "bidder_exchange_identifier": 0, "rtb_type": "string", "has_display": true, "has_mobile_display": true, "has_video": true, "has_mobile_video": true, "requires_creative_audit": true, "has_desktop_video": true, "has_connected_tv": true, "mma_free": true, "private": true, "mkt_sell_price": -1, "mkt_sell_price_currency_code": "USD", "permission_organizations": [], "permission_agencies": [] }, "meta": { "status": "success" } }

Users

Users

Operations

User Permissions

User Permissions

Operations

Enterprise Controls

Enterprise Controls

Operations

General

General

Operations

Currency Rates

Currency Rates

Operations

Site Lists

Site Lists

Operations

Timezones

Timezones

Operations

Verticals

Verticals

Operations

Supply Sources

Supply Sources

Operations

Ad Servers

Ad Servers

Operations

Segment Groups

Segment Groups

Operations