MediaMath Platform API
MediaMath Platform API
curl -i -X POST \
https://apidocs.mediamath.com/_mock/apis/campaigns-api/openapi/strategy_templates \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"global": true,
"name": "valid strategy template (Global)",
"description": "this is an example of valid strategy template at Global level",
"template": "key: value"
}'
{ "organization_id": 0, "agency_id": 0, "advertiser_id": 0, "global": true, "name": "string", "description": "string", "template": "string", "created_on": "2019-08-24T14:15:22Z", "updated_on": "2019-08-24T14:15:22Z" }
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
.
curl -i -X GET \
'https://apidocs.mediamath.com/_mock/apis/campaigns-api/openapi/strategy_templates?advertiser_id=0&agency_id=0&global=true&organization_id=0&page_limit=100&page_offset=0&q=string&sort_by=id%2C%20-id%2C%20name%2C%20-name&sort_order=string' \
-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/strategy_templates/{strategy_template_id}' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"global": true,
"name": "valid strategy template (Global)",
"description": "this is an example of valid strategy template at Global level",
"template": "key: value"
}'
{ "organization_id": 0, "agency_id": 0, "advertiser_id": 0, "global": true, "name": "string", "description": "string", "template": "string", "created_on": "2019-08-24T14:15:22Z", "updated_on": "2019-08-24T14:15:22Z" }
curl -i -X GET \
'https://apidocs.mediamath.com/_mock/apis/campaigns-api/openapi/strategy_templates/{strategy_template_id}' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'
{ "organization_id": 0, "agency_id": 0, "advertiser_id": 0, "global": true, "name": "string", "description": "string", "template": "string", "created_on": "2019-08-24T14:15:22Z", "updated_on": "2019-08-24T14:15:22Z" }
curl -i -X DELETE \
'https://apidocs.mediamath.com/_mock/apis/campaigns-api/openapi/strategy_templates/{strategy_template_id}' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'