forked from prebid/prebid-server
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbid_request_video.go
232 lines (203 loc) · 5.46 KB
/
bid_request_video.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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
package openrtb_ext
import "github.com/mxmCherry/openrtb/v15/openrtb2"
type BidRequestVideo struct {
// Attribute:
// storedrequestid
// Type:
// string; required
// Description:
// Unique ID of the stored request
StoredRequestId string `json:"storedrequestid"`
// Attribute:
// podconfig
// Type:
// object; required
// Description:
// Container object for describing all the pod configurations
PodConfig PodConfig `json:"podconfig"`
// Attribute:
// app
// Type:
// object; App or Site required
// Description:
// Application where the impression will be shown
App *openrtb2.App `json:"app"`
// Attribute:
// site
// Type:
// object; App or Site required
// Description:
// Site where the impression will be shown
Site *openrtb2.Site `json:"site"`
// Attribute:
// user
// Type:
// object; optional
// Description:
// Container object for the user of of the actual device
User *openrtb2.User `json:"user,omitempty"`
// Attribute:
// device
// Type:
// object; optional
// Description:
// Device specific data
Device openrtb2.Device `json:"device,omitempty"`
// Attribute:
// includebrandcategory
// Type:
// object; optional
// Description:
// Indicates that the response requires an adserver specific content category
IncludeBrandCategory *IncludeBrandCategory `json:"includebrandcategory,omitempty"`
// Attribute:
// video
// Type:
// object; required
// Description:
// Player container object
Video *openrtb2.Video `json:"video,omitempty"`
// Attribute:
// content
// Type:
// object; optional
// Description:
// Misc content meta data that can be used for targeting the adPod(s)
Content openrtb2.Content `json:"content,omitempty"`
// Attribute:
// cacheconfig
// Type:
// object; optional
// Description:
// Container object for all Prebid Cache configs
Cacheconfig Cacheconfig `json:"cacheconfig,omitempty"`
// Attribute:
// test
// Type:
// integer; default 0
// Description:
// Indicator of test mode in which auctions are not billable,
// where 0 = live mode, 1 = test mode.
Test int8 `json:"test,omitempty"`
// Attribute:
// pricegranularity
// Type:
// object; optional
// Description:
// Object to tell ad server how much money the “bidder” demand is worth to you
PriceGranularity PriceGranularity `json:"pricegranularity,omitempty"`
// Attribute:
// tmax
// Type:
// integer
// Description:
// Maximum time in milliseconds the exchange allows for bids to
// be received including Internet latency to avoid timeout. This
// value supersedes any a priori guidance from the exchange.
TMax int64 `json:"tmax,omitempty"`
// Attribute:
// bcat
// Type:
// string array
// Description:
// Blocked advertiser categories using the IAB content
// categories. Refer to List 5.1.
BCat []string `json:"bcat,omitempty"`
// Attribute:
// badv
// Type:
// string array
// Description:
// Block list of advertisers by their domains (e.g., “ford.com”).
BAdv []string `json:"badv,omitempty"`
// Attribute:
// regs
// Type:
// object; optional
// Description:
// Contains the OpenRTB Regs object to be passed to OpenRTB request
Regs *openrtb2.Regs `json:"regs,omitempty"`
// Attribute:
// supportdeals
// Type:
// bool; optional
// Description:
// Indicates that the response should update key to include prefix and tier
SupportDeals bool `json:"supportdeals,omitempty"`
// Attribute:
// appendbiddernames
// Type:
// boolean, optional
// Flag indicating if the bidder name will be added to the hb_pb_cat_dur. Default is false.
AppendBidderNames bool `json:"appendbiddernames,omitempty"`
}
type PodConfig struct {
// Attribute:
// durationrangesec
// Type:
// int array, required
// Description:
// Range of ad durations allowed in the response
DurationRangeSec []int `json:"durationrangesec"`
// Attribute:
// requireexactduration
// Type:
// boolean, optional
// Flag indicating exact ad duration requirement. Default is false.
RequireExactDuration bool `json:"requireexactduration,omitempty"`
// Attribute:
// pods
// Type:
// object; required
// Container object for describing the adPod(s) to be requested.
Pods []Pod `json:"pods"`
}
type Pod struct {
// Attribute:
// podid
// Type:
// integer; required
// Unique id of the pod within a particular request.
PodId int `json:"podid"`
// Attribute:
// adpoddurationsec
// Type:
// integer; required
// Duration of the adPod
AdPodDurationSec int `json:"adpoddurationsec"`
// Attribute:
// configid
// Type:
// string; required
// ID of the stored config that corresponds to a single pod request
ConfigId string `json:"configid"`
}
type IncludeBrandCategory struct {
// Attribute:
// primaryadserver
// Type:
// int; optional
// The ad server used by the publisher. Supported Values 1- Freewheel , 2- DFP
PrimaryAdserver int `json:"primaryadserver"`
// Attribute:
// publisher
// Type:
// string; optional
// Identifier for the Publisher
Publisher string `json:"publisher"`
// Attribute:
// translatecategories
// Type:
// *bool; optional
// Description:
// Indicates if IAB categories should be translated to adserver category
TranslateCategories *bool `json:"translatecategories,omitempty"`
}
type Cacheconfig struct {
// Attribute:
// ttl
// Type:
// int; optional
// Time to Live for a cache entry specified in seconds
Ttl int `json:"ttl"`
}