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

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

Get a specific marketplace

Request

Get a marketplace by id

Path
marketplace_idintegerrequired

Numeric ID of the marketplace to get

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

Responses

OK

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

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://apidocs.mediamath.com/_mock/apis/campaigns-api/openapi/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" } }

Get a list of marketplaces

Request

Get a list of marketplaces

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

Responses

OK

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

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://apidocs.mediamath.com/_mock/apis/campaigns-api/openapi/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

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