Marketplaces API V2.0 API (2.0)

Download OpenAPI description
Overview
Languages
Servers
https://api.mediamath.com/deals/v1.0/

Private Marketplace Exchange (PMP-E)

Private Marketplace Direct (PMP-E)

Operations

List Deal Strategies

Request

List Deal Strategies

Example: /deals/v1.0/deals/380882/strategy_deals

you can use the 'with' parameter to get information about the strategies and campaigns using the deal. eg: /deals/v1.0/deals/380882/strategy_deals?with=strategy,campaign,advertiser

Path
idnumberrequired

See below

Query
sort_bystring

sort_by

withstring

with

page_offsetnumber

The list starts from the specified page offset

page_limitnumber

Maximum list page element count

Headers
Authorizationstring

Authorization

Default Bearer $TOKEN
curl -i -X GET \
  'https://api.mediamath.com/deals/v1.0/deals/{id}/strategy_deals?page_limit=0&page_offset=0&sort_by=string&with=string' \
  -H 'Authorization: Bearer $TOKEN'

Responses

{ "data": [ { "id": 852908478, "entity_type": "strategy_deal" }, { "id": 852911871, "entity_type": "strategy_deal" }, { "id": 852908409, "entity_type": "strategy_deal" }, { "id": 852908397, "entity_type": "strategy_deal" } ], "meta": { "count": 4, "total_count": 4, "status": "ok", "offset": 0 } }

Body
dataArray of objects
metaobject
Response
No response example

List Deal Group Strategies

Request

List deal group strategies

Example: /deals/v1.0/deal_groups/980/strategy_deal_groups

you can use the 'with param to vide the details of the strategy's campaign or advertiser eg: deals/v1.0/deal_groups/980/strategy_deal_groups?with=strategy,campaign,advertiser

Path
idnumberrequired

See below

Query
sort_bystring

sort_by

withstring

with

page_offsetnumber

The list starts from the specified page offset

page_limitnumber

Maximum list page element count

Headers
Authorizationstring

Authorization

Default Bearer $TOKEN
curl -i -X GET \
  'https://api.mediamath.com/deals/v1.0/deal_groups/{id}/strategy_deal_groups?page_limit=0&page_offset=0&sort_by=string&with=string' \
  -H 'Authorization: Bearer $TOKEN'

Responses

{
  "data": [
    {
      "id": 19744,
      "entity_type": "strategy_deal_group"
    },
    {
      "id": 19496,
      "entity_type": "strategy_deal_group"
    }
  ],
  "meta": {
    "count": 2,
    "total_count": 2,
    "status": "ok",
    "offset": 0
  }
}
Body
dataArray of objects
metaobject
Response
No response example