MediaMath Platform API
MediaMath Platform API
curl -i -X GET \
https://apidocs.mediamath.com/_mock/apis/campaigns-api/openapi/campaign_plans \
-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/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"
}'
{ "name": "string", "advertiser_id": 0, "duration": { "start_date": "string", "end_date": "string" }, "budget": { "total_budget": 1, "currency_code": "string" }, "zone_name": "string" }
curl -i -X GET \
'https://apidocs.mediamath.com/_mock/apis/campaigns-api/openapi/campaign_plans/{campaign_plan_id}' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'
{ "data": { "version": 0, "advertiser_id": 0, "name": "string", "duration": { … }, "budget": { … }, "zone_name": "string" }, "meta": { "status": "success" } }
curl -i -X POST \
'https://apidocs.mediamath.com/_mock/apis/campaigns-api/openapi/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"
}'
{ "name": "string", "advertiser_id": 0, "duration": { "start_date": "string", "end_date": "string" }, "budget": { "total_budget": 1, "currency_code": "string" }, "zone_name": "string" }