MediaMath Platform API
MediaMath Platform API
Number of elements in the collection to retrieve
Index of the first element in the collection to retrieve
The field to sort by. You can use any field name in ascending or descending order. For ascending order, use the field name directly, e.g., id
. For descending order, prefix the field name with a hyphen (-
), e.g., -id
.
Query search for filtering. This parameter can be used to filter results based on various fields.
q=name=:{search}*
to find all results with names starting with "search".q=status==true
to find all active entities.q=id>=1000
to find all entities with id greater than or equal to 1000.curl -i -X GET \
'https://apidocs.mediamath.com/_mock/apis/campaigns-api/openapi/advertisers?full=*&page_limit=100&page_offset=0&q=string&sort_by=id%2C%20-id%2C%20name%2C%20-name&with=agency' \
-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/advertisers \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"ad_server_id": 0,
"allow_x_strat_optimization": true,
"billing_contact_id": 1,
"data_sharing_enabled": true,
"dmp_enabled": "disabled",
"domain": "string",
"external_id": "string",
"frequency_interval": "hour",
"frequency_type": "no-limit",
"frequency_amount": 0,
"minimize_multi_ads": true,
"name": "string",
"sales_contact_id": 1,
"status": true,
"vertical_id": 0,
"ads_txt_verified": "ANY",
"political": true,
"connected_id_type": "DETERMINISTIC_FIRST",
"agency_id": 1
}'
{ "data": { "ad_server_id": 0, "allow_x_strat_optimization": true, "billing_contact_id": 1, "data_sharing_enabled": true, "dmp_enabled": "disabled", "domain": "string", "external_id": "string", "frequency_interval": "hour", "frequency_type": "no-limit", "frequency_amount": 0, "minimize_multi_ads": true, "name": "string", "sales_contact_id": 1, "status": true, "vertical_id": 0, "ads_txt_verified": "ANY", "political": true, "connected_id_type": "DETERMINISTIC_FIRST", "id": 0, "ad_server_fee": 0, "agency_id": 0, "created_on": "2019-08-24T14:15:22Z", "entity_type": "string", "updated_on": "2019-08-24T14:15:22Z", "version": 0, "effective_ads_txt_verified": "string", "agency": { … } }, "meta": { "status": "success", "next_page": "string", "prev_page": "string" } }
curl -i -X GET \
'https://apidocs.mediamath.com/_mock/apis/campaigns-api/openapi/advertisers/{advertiser_id}' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'
{ "data": { "ad_server_id": 0, "allow_x_strat_optimization": true, "billing_contact_id": 1, "data_sharing_enabled": true, "dmp_enabled": "disabled", "domain": "string", "external_id": "string", "frequency_interval": "hour", "frequency_type": "no-limit", "frequency_amount": 0, "minimize_multi_ads": true, "name": "string", "sales_contact_id": 1, "status": true, "vertical_id": 0, "ads_txt_verified": "ANY", "political": true, "connected_id_type": "DETERMINISTIC_FIRST", "id": 0, "ad_server_fee": 0, "agency_id": 0, "created_on": "2019-08-24T14:15:22Z", "entity_type": "string", "updated_on": "2019-08-24T14:15:22Z", "version": 0, "effective_ads_txt_verified": "string", "agency": { … } }, "meta": { "status": "success", "next_page": "string", "prev_page": "string" } }
curl -i -X POST \
'https://apidocs.mediamath.com/_mock/apis/campaigns-api/openapi/advertisers/{advertiser_id}' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"ad_server_id": 0,
"allow_x_strat_optimization": true,
"billing_contact_id": 1,
"data_sharing_enabled": true,
"dmp_enabled": "disabled",
"domain": "string",
"external_id": "string",
"frequency_interval": "hour",
"frequency_type": "no-limit",
"frequency_amount": 0,
"minimize_multi_ads": true,
"name": "string",
"sales_contact_id": 1,
"status": true,
"vertical_id": 0,
"ads_txt_verified": "ANY",
"political": true,
"connected_id_type": "DETERMINISTIC_FIRST",
"version": 0
}'
{ "data": { "ad_server_id": 0, "allow_x_strat_optimization": true, "billing_contact_id": 1, "data_sharing_enabled": true, "dmp_enabled": "disabled", "domain": "string", "external_id": "string", "frequency_interval": "hour", "frequency_type": "no-limit", "frequency_amount": 0, "minimize_multi_ads": true, "name": "string", "sales_contact_id": 1, "status": true, "vertical_id": 0, "ads_txt_verified": "ANY", "political": true, "connected_id_type": "DETERMINISTIC_FIRST", "id": 0, "ad_server_fee": 0, "agency_id": 0, "created_on": "2019-08-24T14:15:22Z", "entity_type": "string", "updated_on": "2019-08-24T14:15:22Z", "version": 0, "effective_ads_txt_verified": "string", "agency": { … } }, "meta": { "status": "success", "next_page": "string", "prev_page": "string" } }
curl -i -X GET \
'https://apidocs.mediamath.com/_mock/apis/campaigns-api/openapi/advertisers/{advertiser_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 GET \
'https://apidocs.mediamath.com/_mock/apis/campaigns-api/openapi/advertisers/{advertiser_id}/pixel_targeting_advertisers' \
-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 GET \
'https://apidocs.mediamath.com/_mock/apis/campaigns-api/openapi/advertisers/{advertiser_id}/permissions?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/audit_log/advertisers?page_limit=100&page_offset=0' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"id": [
0
]
}'
{ "data": [ { … } ], "meta": { "status": "success", "count": 10, "total_count": 100, "offset": 0, "next_page": "string", "prev_page": "string" } }