Campaigns API (xx.xx.xx)
MediaMath Platform API
Download OpenAPI description
Overview
Languages
Servers
Live Server
https://api.mediamath.com/api/v3.0/
- Live Server
https://api.mediamath.com/api/v3.0/contextual_segments/cpm_estimate
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
https://api.mediamath.com/api/v3.0/contextual_segments/cpm_estimate \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"currency_code": "USD",
"include": [
{
"code": "string",
"operator": "AND",
"segments": [
{
"targeting_segment_id": 0,
"user_cpm": 0
}
]
}
],
"exclude": {
"code": "string",
"operator": "AND",
"segments": [
{
"targeting_segment_id": 0,
"user_cpm": 0
}
]
}
}'
Response
application/json
{ "data": { "cpm": { … } }, "meta": { "status": "success" } }
- Live Server
https://api.mediamath.com/api/v3.0/targeting_segments/frequently_used
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://api.mediamath.com/api/v3.0/targeting_segments/frequently_used?advertiser_id=0&top=0' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'
Response
application/json
{ "data": [ { … } ], "meta": { "status": "success" } }
- Live Server
https://api.mediamath.com/api/v3.0/audience_segments/frequently_used
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://api.mediamath.com/api/v3.0/audience_segments/frequently_used?advertiser_id=0&campaign_id=0&top=0' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'
Response
application/json
{ "data": [ { … } ], "meta": { "status": "success" } }