forked from bsm/openrtb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpmp.go
21 lines (18 loc) · 1.13 KB
/
pmp.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
package openrtb
import "encoding/json"
// PMP is the Private Marketplace Object
type PMP struct {
Private int `json:"private_auction,omitempty"`
Deals []Deal `json:"deals,omitempty"`
Ext json.RawMessage `json:"ext,omitempty"`
}
// Deal contains PMP deal information.
type Deal struct {
ID string `json:"id,omitempty"` // Unique deal ID
BidFloor float64 `json:"bidfloor,omitempty"`
BidFloorCurrency string `json:"bidfloorcur,omitempty"` // Currency of bid floor
Seats []string `json:"wseat,omitempty"` // Array of buyer seats allowed to bid on this Direct Deal.
AdvDomains []string `json:"wadomain,omitempty"` // Array of advertiser domains allowed to bid on this Direct Deal
AuctionType int `json:"at,omitempty"` // Optional override of the overall auction type of the bid request, where 1 = First Price, 2 = Second Price Plus, 3 = the value passed in bidfloor is the agreed upon deal price. Additional auction types can be defined by the exchange.
Ext json.RawMessage `json:"ext,omitempty"`
}