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/campaign_plans
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
https://api.mediamath.com/api/v3.0/campaign_plans \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'
Response
application/json
{ "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/campaign_plans
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
https://api.mediamath.com/api/v3.0/campaign_plans \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"advertiser_id": 190,
"name": "valid campaign plan",
"duration": {
"start_date": "2050-01-01T10:00:00Z",
"end_date": "2050-01-10T23:59:00Z"
},
"budget": {
"currency_code": "USD",
"total_budget": 100
},
"zone_name": "America/New_York"
}'
Response
application/json
{ "data": { "version": 0, "id": 0, "advertiser_id": 0, "created_on": "2019-08-24T14:15:22Z", "updated_on": "2019-08-24T14:15:22Z", "name": "string", "duration": { … }, "budget": { … }, "zone_name": "string" }, "meta": { "status": "success" } }
- Live Server
https://api.mediamath.com/api/v3.0/campaign_plans/{campaign_plan_id}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://api.mediamath.com/api/v3.0/campaign_plans/{campaign_plan_id}' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'
Response
application/json
{ "data": { "version": 0, "id": 0, "advertiser_id": 0, "created_on": "2019-08-24T14:15:22Z", "updated_on": "2019-08-24T14:15:22Z", "name": "string", "duration": { … }, "budget": { … }, "zone_name": "string" }, "meta": { "status": "success" } }
- Live Server
https://api.mediamath.com/api/v3.0/campaign_plans/{campaign_plan_id}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
'https://api.mediamath.com/api/v3.0/campaign_plans/{campaign_plan_id}' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"name": "valid campaign plan",
"duration": {
"start_date": "2050-01-01T10:00:00Z",
"end_date": "2050-01-10T23:59:00Z"
},
"budget": {
"currency_code": "USD",
"total_budget": 100
},
"zone_name": "America/New_York"
}'
Response
application/json
{ "data": { "version": 0, "id": 0, "advertiser_id": 0, "created_on": "2019-08-24T14:15:22Z", "updated_on": "2019-08-24T14:15:22Z", "name": "string", "duration": { … }, "budget": { … }, "zone_name": "string" }, "meta": { "status": "success" } }