forked from mxmCherry/openrtb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
deal.go
76 lines (67 loc) · 2.1 KB
/
deal.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
package openrtb
import "encoding/json"
// 3.2.12 Object: Deal
//
// This object constitutes a specific deal that was struck a priori between a buyer and a seller.
// Its presence with the Pmp collection indicates that this impression is available under the terms of that deal.
// Refer to Section 7.3 for more details.
type Deal struct {
// Attribute:
// id
// Type:
// string; required
// Description:
// A unique identifier for the direct deal.
ID string `json:"id"`
// Attribute:
// bidfloor
// Type:
// float; default 0
// Description:
// Minimum bid for this impression expressed in CPM.
BidFloor float64 `json:"bidfloor,omitempty"`
// Attribute:
// bidfloorcur
// Type:
// string; default ”USD”
// Description:
// Currency specified using ISO-4217 alpha codes. This may be
// different from bid currency returned by bidder if this is
// allowed by the exchange.
BidFloorCur string `json:"bidfloorcur,omitempty"`
// Attribute:
// at
// Type:
// integer
// Description:
// 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.
AT int64 `json:"at,omitempty"`
// Attribute:
// wseat
// Type:
// string array
// Description:
// Whitelist of buyer seats (e.g., advertisers, agencies) allowed to
// bid on this deal. IDs of seats and the buyer’s customers to
// which they refer must be coordinated between bidders and
// the exchange a priori. Omission implies no seat restrictions.
WSeat []string `json:"wseat,omitempty"`
// Attribute:
// wadomain
// Type:
// string array
// Description:
// Array of advertiser domains (e.g., advertiser.com) allowed to
// bid on this deal. Omission implies no advertiser restrictions.
WADomain []string `json:"wadomain,omitempty"`
// Attribute:
// ext
// Type:
// object
// Description:
// Placeholder for exchange-specific extensions to OpenRTB.
Ext json.RawMessage `json:"ext,omitempty"`
}