New Publisher Deal

POST {{campaign_url}}/publisherDeals?marketId=1

Create a new publisher deal

You can create a new publisher deal by sending this POST request. To define settings for your deal, open the body tab and edit the JSON object.

For DTO field contacts, see the corresponding DTO table below to customize the data.

Request Body (Definitions)

*Optional element

JSON Object KeyDescriptionType
dealTypeType of publisher deal.

Private auction: For an invite-only auction at pre-negotiated floor price.
Unreserved fixed: For unreserved impressions at pre-negotiated fixed price.
Guaranteed: For reserved impressions at pre-negotiated fixed price.

Allowed values: privateAuction, unreservedFixed, guaranteed
string
automaticDeal

(Not available if dealType is guaranteed)
Indicates if this deal should automatically be added to new packages/line items for targeting.boolean
preferredIndicates if the inventory sources in this deal are curated by the Nexxen business development team.boolean
advertiserIdsID(s) of the advertiser(s) to which this deal should be made available.

Set to an empty array to denote all advertisers.
comma-separated array of strings
dealIdID of this deal. User-defined.string
dealNameName of this deal.string
mediaFormatMedia format supported by this deal. Must match the media format(s) supported by the specified inventorySourceId.

Allowed values: display, video, audio
string
inventorySourceIdID of the inventory source for this deal.

Allowed values
string
publisherNameName of the publisher with which this deal was negotiated. User-defined.string
hdCreativeRequired

(Only available if mediaFormat is video)
Indicates if this deal requires high-definition creatives.boolean
currencyCurrency used for this deal.

Allowed values
string
priceCPM price for this deal.double
*startDate

(Only required if dealType is guaranteed)
Start date of the deal's active period. Must be in the format yyyy-mm-ddThh:mm:ss+offset.string
*endDate

(Only required if dealType is guaranteed)
End date of the deal's active period. Must be in the format yyyy-mm-ddThh:mm:ss+offset.string
*impressionsNumber of impressions negotiated.double
*otherInfoAdditional information for this deal.string
contacts

(Only available if dealType is guaranteed)
Contact details for this deal.comma-separated array containing one or more contact DTOs

contact DTO

KeyDescriptionType
emailEmail of the primary/secondary contact.string
nameName of the primary/secondary contact.string

Request Params

KeyDatatypeRequiredDescription
marketIdnumberNumeric ID associated with the market for which the publisher deal is being created. Required only if you have access to multiple markets.

Request Body

{"dealType"=>"privateAuction", "automaticDeal"=>false, "preferred"=>false, "advertiserIds"=>["{{advertiserId}}"], "dealId"=>"tester 1", "dealName"=>"doc test", "mediaFormat"=>"display", "inventorySourceId"=>"1", "publisherName"=>"test publisher", "hdCreativeRequired"=>false, "currency"=>"usd", "price"=>1.0, "startDate"=>"2022-08-01T00:00:00Z", "endDate"=>"2022-10-01T00:00:00Z", "impressions"=>3, "otherInfo"=>"additional info here", "contacts"=>[{"email"=>"primary@email.com", "name"=>"primary contact"}]}

RESPONSES

status: Created

{"data":[{"id":"1608775141","marketId":"-1","resourceType":"publisherDeal","workflowStatus":"approved","createdAt":"2022-08-23T03:38:50Z","updatedAt":"2022-08-23T03:38:50Z","dealType":"privateAuction","advertiserIds":[],"dealId":"docID","dealName":"doc team deal","mediaFormat":"display","inventorySourceId":"1","publisherName":"test publisher","currency":"usd","price":1,"startDate":"2022-07-31T04:00:00Z","endDate":"2022-10-01T03:59:59Z","impressions":3,"otherInfo":"additional info here","hdCreativeRequired":false,"preferred":true}],"errors":[]}