-
Notifications
You must be signed in to change notification settings - Fork 29
/
Copy pathdurfloors.go
53 lines (47 loc) · 1.66 KB
/
durfloors.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
package openrtb2
import (
"encoding/json"
)
// Object: DurFloors
//
// This object allows sellers to specify price floors for video and audio creatives, whose price varies based on time.
// For example: 1-15 seconds at a floor of $5; 16-30 seconds at a floor of $10, > 31 seconds at a floor of $20.
// There are no explicit constraints on the defined ranges, nor guarantees that they don't overlap.
// In cases where multiple ranges may apply, it is up to the buyer and seller to coordinate on which floor is applicable.
type DurFloors struct {
// Attribute:
// mindur
// Type:
// integer
// Description:
// An integer indicating the low end of a duration range. If this
// value is missing, the low end is unbounded. Either mindur or maxdur
// is required, but not both.
MinDur int64 `json:"mindur,omitempty"`
// Attribute:
// maxdur
// Type:
// integer
// Description:
// An integer indicating the high end of a duration range. If this
// value is missing, the high end is unbounded. Either mindur or maxdur
// is required, but not both.
MaxDur int64 `json:"maxdur,omitempty"`
// Attribute:
// bidfloor
// Type:
// float; default 0
// Description:
// Minimum bid for a given impression opportunity, if bidding with a
// creative in this duration range, expressed in CPM. For any creatives
// whose durations are outside of the defined min/max, the bidfloor at
// the Imp level will serve as the default floor.
BidFloor float64 `json:"bidfloor,omitempty"`
// Attribute:
// ext
// Type:
// object
// Definition:
// Placeholder for vendor specific extensions to this object.
Ext json.RawMessage `json:"ext,omitempty"`
}