MediaMath Platform API
Campaigns API (xx.xx.xx)
https://api.mediamath.com/api/v3.0/
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==trueto find all active entities.q=id>=1000to find all entities with id greater than or equal to 1000.q=id==(1,2,3)find specific entities by ID. Supported operators: ==, =:, !=, >, < , >=, <=.
- Live Server
https://api.mediamath.com/api/v3.0/advertisers
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://api.mediamath.com/api/v3.0/advertisers?page_limit=100&page_offset=0&sort_by=id%2C+-id%2C+name%2C+-name&q=string&with=agency&full=*' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'{ "data": [ { … } ], "meta": { "status": "success", "count": 10, "total_count": 100, "offset": 0, "next_page": "string", "prev_page": "string" } }
- Live Server
https://api.mediamath.com/api/v3.0/advertisers
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
https://api.mediamath.com/api/v3.0/advertisers \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"ad_server_id": 126,
"data_sharing_enabled": true,
"dmp_enabled": "disabled",
"domain": "string",
"external_id": "string",
"frequency_interval": "hour",
"frequency_type": "no-limit",
"frequency_amount": 3,
"minimize_multi_ads": true,
"name": "string",
"status": true,
"vertical_id": 433,
"ads_txt_verified": "ANY",
"political": true,
"connected_id_type": "DETERMINISTIC_FIRST",
"mfa_avoidance": "INHERIT",
"attribution_level": "INDIVIDUAL",
"targeting_identity_level": "INDIVIDUAL",
"vendor_attributions": [
{
"vendor_id": 18,
"impression_pixel": "string"
}
],
"agency_id": 125
}'{ "data": { "ad_server_id": 126, "data_sharing_enabled": true, "dmp_enabled": "disabled", "domain": "string", "external_id": "string", "frequency_interval": "hour", "frequency_type": "no-limit", "frequency_amount": 3, "minimize_multi_ads": true, "name": "string", "status": true, "vertical_id": 433, "ads_txt_verified": "ANY", "political": true, "connected_id_type": "DETERMINISTIC_FIRST", "mfa_avoidance": "INHERIT", "attribution_level": "INDIVIDUAL", "targeting_identity_level": "INDIVIDUAL", "vendor_attributions": [ … ], "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", "allow_x_strat_optimization": true, "billing_contact_id": 1, "sales_contact_id": 1, "agency": { … }, "inherited_mfa_avoidance": "INHERIT", "inherited_mfa_from": "Organization" }, "meta": { "status": "success" } }
- Live Server
https://api.mediamath.com/api/v3.0/advertisers/{advertiser_id}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://api.mediamath.com/api/v3.0/advertisers/{advertiser_id}?extended=true' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'{ "data": { "ad_server_id": 126, "data_sharing_enabled": true, "dmp_enabled": "disabled", "domain": "string", "external_id": "string", "frequency_interval": "hour", "frequency_type": "no-limit", "frequency_amount": 3, "minimize_multi_ads": true, "name": "string", "status": true, "vertical_id": 433, "ads_txt_verified": "ANY", "political": true, "connected_id_type": "DETERMINISTIC_FIRST", "mfa_avoidance": "INHERIT", "attribution_level": "INDIVIDUAL", "targeting_identity_level": "INDIVIDUAL", "vendor_attributions": [ … ], "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", "allow_x_strat_optimization": true, "billing_contact_id": 1, "sales_contact_id": 1, "agency": { … }, "inherited_mfa_avoidance": "INHERIT", "inherited_mfa_from": "Organization" }, "meta": { "status": "success" } }
- Live Server
https://api.mediamath.com/api/v3.0/advertisers/{advertiser_id}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
'https://api.mediamath.com/api/v3.0/advertisers/{advertiser_id}' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"ad_server_id": 126,
"data_sharing_enabled": true,
"dmp_enabled": "disabled",
"domain": "string",
"external_id": "string",
"frequency_interval": "hour",
"frequency_type": "no-limit",
"frequency_amount": 3,
"minimize_multi_ads": true,
"name": "string",
"status": true,
"vertical_id": 433,
"ads_txt_verified": "ANY",
"political": true,
"connected_id_type": "DETERMINISTIC_FIRST",
"mfa_avoidance": "INHERIT",
"attribution_level": "INDIVIDUAL",
"targeting_identity_level": "INDIVIDUAL",
"vendor_attributions": [
{
"vendor_id": 18,
"impression_pixel": "string"
}
],
"version": 1
}'{ "data": { "ad_server_id": 126, "data_sharing_enabled": true, "dmp_enabled": "disabled", "domain": "string", "external_id": "string", "frequency_interval": "hour", "frequency_type": "no-limit", "frequency_amount": 3, "minimize_multi_ads": true, "name": "string", "status": true, "vertical_id": 433, "ads_txt_verified": "ANY", "political": true, "connected_id_type": "DETERMINISTIC_FIRST", "mfa_avoidance": "INHERIT", "attribution_level": "INDIVIDUAL", "targeting_identity_level": "INDIVIDUAL", "vendor_attributions": [ … ], "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", "allow_x_strat_optimization": true, "billing_contact_id": 1, "sales_contact_id": 1, "agency": { … }, "inherited_mfa_avoidance": "INHERIT", "inherited_mfa_from": "Organization" }, "meta": { "status": "success" } }
- Live Server
https://api.mediamath.com/api/v3.0/advertisers/{advertiser_id}/history
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://api.mediamath.com/api/v3.0/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" } }
- Live Server
https://api.mediamath.com/api/v3.0/advertisers/{advertiser_id}/pixel_targeting_advertisers
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://api.mediamath.com/api/v3.0/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" } }
- Live Server
https://api.mediamath.com/api/v3.0/advertisers/{advertiser_id}/permissions
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://api.mediamath.com/api/v3.0/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" } }
- Live Server
https://api.mediamath.com/api/v3.0/audit_log/advertisers
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
'https://api.mediamath.com/api/v3.0/audit_log/advertisers?page_limit=100&page_offset=0' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"id": [
8,
98,
7
]
}'{ "data": [ { … } ], "meta": { "status": "success", "count": 10, "total_count": 100, "offset": 0, "next_page": "string", "prev_page": "string" } }