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/

Operations
Operations
Operations
Operations

Campaigns Budget Flights

Campaigns Budget Flights

Operations
Operations
Operations

Strategy Parameters

Strategy Parameters

Operations

Strategy Templates

Strategy Templates

Operations

New Strategy Plans

New Strategy Plans

Operations
Operations

Targeting Attachments

TargetingAttachments

Operations

Targeting Segments

Targeting Segments

Operations

Targeting Segment Objectives

Targeting Segment Objectives

Operations
Operations
Operations
Operations

Request

Get a list of audience vendors

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

Responses

List audience vendors response

Bodyapplication/json
dataArray of objects
metaobject
Response
application/json
{ "data": [ {} ], "meta": { "status": "success", "count": 100, "total_count": 12011, "offset": 0, "next_page": "string" } }

Request

Create an audience vendor

Security
Auth0
Bodyapplication/jsonrequired
namestring[ 0 .. 256 ] charactersrequired
namespace_codestring[ 0 .. 16 ] charactersrequired
bidder_codestring[ 0 .. 16 ] charactersrequired
vendor_idintegerrequired
campaign_brain_enabledboolean
provides_batch_segmentsboolean
mma_free_cmboolean
pin_top_searchboolean
provider_taxstring
curl -i -X POST \
  https://api.mediamath.com/api/v3.0/audience_vendors \
  -H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "name": "string",
    "namespace_code": "string",
    "bidder_code": "string",
    "vendor_id": 0,
    "campaign_brain_enabled": true,
    "provides_batch_segments": true,
    "mma_free_cm": true,
    "pin_top_search": true,
    "provider_tax": "string"
  }'

Responses

Audience vendor created response

Bodyapplication/json
dataobject
metaobject
Response
application/json
{ "data": { "id": 123, "name": "Vendor Name", "namespace_code": "namespace123", "bidder_code": "bidder123", "vendor_id": 456, "campaign_brain_enabled": true, "provides_batch_segments": true, "mma_free_cm": false, "pin_top_search": true, "provider_tax": "tax123" }, "meta": { "status": "success" } }

Request

Get an audience vendor by ID

Security
Auth0
Path
audience_vendor_idintegerrequired

Numeric ID of the audience vendor

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

Responses

Audience vendor response

Bodyapplication/json
dataobject
metaobject
Response
application/json
{ "data": { "id": 123, "name": "Vendor Name", "entity_type": "audience_vendor", "mma_free_cm": true, "updated_on": "2021-01-01T00:00:00Z", "created_on": "2021-01-01T00:00:00Z", "provides_batch_segments": true, "campaign_brain_enabled": true, "pin_top_search": true, "bidder_code": "am", "namespace_code": "5afb12h4" }, "meta": { "status": "success" } }

Request

Update an audience vendor by ID

Security
Auth0
Path
audience_vendor_idintegerrequired

Numeric ID of the audience vendor to update

Bodyapplication/jsonrequired
namestring[ 0 .. 256 ] characters
namespace_codestring[ 0 .. 16 ] characters
bidder_codestring[ 0 .. 16 ] characters
vendor_idinteger
campaign_brain_enabledboolean
provides_batch_segmentsboolean
mma_free_cmboolean
pin_top_searchboolean
provider_taxstring
curl -i -X POST \
  'https://api.mediamath.com/api/v3.0/audience_vendors/{audience_vendor_id}' \
  -H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "name": "string",
    "namespace_code": "string",
    "bidder_code": "string",
    "vendor_id": 0,
    "campaign_brain_enabled": true,
    "provides_batch_segments": true,
    "mma_free_cm": true,
    "pin_top_search": true,
    "provider_tax": "string"
  }'

Responses

Audience vendor updated response

Bodyapplication/json
dataobject
metaobject
Response
application/json
{ "data": { "id": 123, "name": "Updated Vendor Name", "namespace_code": "new_namespace", "bidder_code": "new_bidder", "vendor_id": 456, "campaign_brain_enabled": false, "provides_batch_segments": true, "mma_free_cm": false, "pin_top_search": false, "provider_tax": "new_tax" }, "meta": { "status": "success" } }
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations

Enterprise Controls

Enterprise Controls

Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations