Organizations
- Frequently Used Audience Segments
(Legacy) List Targets
(Legacy) Create a Target
(Legacy) Get a Target
(Legacy) Update a Target
(Legacy) Delete a Target
(Legacy) Update a Target
List targets
Create a Target
Get a Target
Update a Target
Delete a Target
List Target paths
Add and View Targeting
Contextual Segments CPM estimates
Get Frequently Used Contextual Segments
Audience Segments CPM Estimate
List Technology Target Values
List Contextual Segments
List Path Audience Segments
Frequently Used Audience...
Campaigns API (3.0.1807)
MediaMath Campaign Management API
Download OpenAPI description
Overview
Languages
Servers
Live Server
https://api.mediamath.com/api/v3.0
Security
Auth0(Required scopes:
offline_access
manage:services
)- Live Serverhttps://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" } }
Security
Auth0(Required scopes:
offline_access
manage:services
)- Live Serverhttps://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" } }
- Live Serverhttps://api.mediamath.com/api/v3.0/audience_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/audience_segments/cpm_estimate?extended=true' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"currency_code": "USD",
"include": [
{
"operator": "AND",
"segments": [
{
"audience_segment_id": 88,
"user_cpm": 0.1
}
]
}
],
"exclude": {
"operator": "AND",
"segments": [
{
"audience_segment_id": 88,
"user_cpm": 0.1
}
]
}
}'Response
application/json
{ "data": { "cpm": { … }, "segments": [ … ] }, "meta": { "status": "success" } }