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 the Deal Groups

Request

List the Deal Groups When executing the GET call, you must specify one of the following: 'owner.organization_id', or 'ids' parameter, or else you will receive an error.

Query
idsstring

ids

exportstring

export

allinteger

all

statusboolean

status

deal_idinteger

deal_id

strategy_idintegerrequired

strategy_id

owner.organization_idintegerrequired

owner.organization_id

page_offsetinteger

page_offset

page_limitinteger

page_limit

sort_bystring

sort_by

qstring

q

Headers
Authorizationstring

Authorization

curl -i -X GET \
  'https://api.mediamath.com/deals/v1.0/deal_groups?all=0&deal_id=0&export=string&ids=string&owner.organization_id=0&page_limit=0&page_offset=0&q=string&sort_by=string&status=true&strategy_id=0' \
  -H 'Authorization: string'

Responses

Body
dataArray of objects
metaobject
Response
No response example

Create a Deal Group

Request

Create a Deal Group

Deal Groups are a feature that will allow you and your team to package individual deals into groups. This should streamline targeting, improve marketability (ex. creating a viewability deal group), and simplify bulk updating of strategies targeting deals.

Deal Groups Ownership and Targeting Permissions: Ownership: Deal Groups can be created at the Organization, Agency, or Advertiser level of the T1 hierarchy. The creating entity (ex. Agency Z) owns the Deal Group, and any users with access to that entity can edit the Deal Group. Similarly, individual deals can be created at the Organization, Agency, or Advertiser level. The creating entity owns and can edit the deal. A Deal Group can only include deals which have the same owning entity as the Deal Group. This means that a Deal Group created by Agency Z can only include deals owned by Agency Z. That Deal Group cannot include deals created by any other entity, including Agency Z’s parent Organization or subsidiary Advertisers. Like deals, ownership of a Deal Group cannot change once it is created. Please consider this when creating deals and Deal Groups and developing targeting strategies. Targeting: Targeting permissions are set within individual deals. The default setting permissions all sub-entities of the deal owning entity to target the deal. For example, a deal created by Org X will by default be targetable by all agencies, advertisers and their strategies within Org X. Targeting permissions can also be restricted to particular subsidiary entities of the owning entity. For example, a deal may be created at the Agency level, but only permission targeting for two out of three advertisers within that agency. There are no targeting permissions set within a deal group. Deal Groups instead honor the targeting permissions of the deals within them. Inside a strategy, users can expand Deal Groups to view the deals within them. Users will only be able to view deals which they are permissioned to target. Deals showing in gray are inactive.

Note: the text above, with screenshots of T1 editing, can be found here

Headers
Content-Typestringrequired

_

Cookiestringrequired

_

Body

_

deal_idsArray of integers
descriptionstring
namestring
ownerobject
statusboolean
curl -i -X POST \
  https://api.mediamath.com/deals/v1.0/deal_groups \
  -H 'Content-Type: application/javascript' \
  -H 'Cookie: string' \
  -d '[object Object]'

Responses

Body
dataobject
metaobject
Response
No response example

Get Deal Groups

Request

Get a Deal Group's Details

Path
idintegerrequired

_

Headers
Authorizationstring

Authorization

curl -i -X GET \
  'https://api.mediamath.com/deals/v1.0/deal_groups/{id}' \
  -H 'Authorization: string'

Responses

Body
dataobject
metaobject
Response
No response example