Private Marketplace Direct (PMP-E)
Publishers are associated to an organization. A collection of publishers for an organization can be retrieved using an HTTP GET request containing an organization_id
Example: https://api.mediamath.com/deals/v1.0/publishers?organization_id=100315
The only sort_by parameter allowed is "name", and organization_id is the only required parameter
A video explainer on publisher management through the MediaMath app can be found at: https://academy.mediamath.com/mediamath-beta-courses?next=%2Fmediamath-beta-courses%2F800806
curl -i -X GET \
'https://api.mediamath.com/deals/v1.0/publishers?organization_id=0&page_limit=0&page_offset=0&q=string&sort_by=name' \
-H 'Authorization: Bearer $TOKEN'
{
"meta": {
"count": 1,
"status": "ok",
"offset": 0,
"total_count": 1
},
"data": [
{
"name": "testing",
"last_touch_user_id": 4254,
"id": 3,
"updated_on": "2020-10-01T14:21:48+00:00",
"created_on": "2020-10-01T14:21:48+00:00",
"deleted_on": null,
"organization_id": 100315
}
]
}
No response example
curl -i -X GET \
'https://api.mediamath.com/deals/v1.0/publishers/{id}' \
-H 'Authorization: Bearer $TOKEN'
No response example
Example: POST https://api.mediamath.com/deals/v1.0/publishers/5
where you might want to edit to the following:
{
"name" : "edited demo publisher 2",
}
A video explainer on publisher management through the MediaMath app can be found at: https://academy.mediamath.com/mediamath-beta-courses?next=%2Fmediamath-beta-courses%2F800806
curl -i -X POST \
'https://api.mediamath.com/deals/v1.0/publishers/{id}' \
-H 'Authorization: Bearer $TOKEN'
No response example