You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Before calling this adapter, you need to at least set a video adUnit in an instream context and the API key in the bid parameters:
@@ -58,6 +68,116 @@ pbjs.setConfig({
58
68
});
59
69
```
60
70
71
+
#### Price floor
72
+
73
+
The price floor can be set at the ad unit level, for example :
74
+
75
+
```javascript
76
+
constadUnits= [{
77
+
floors: {
78
+
currency:'USD',
79
+
schema: {
80
+
fields: [ 'mediaType', 'size' ]
81
+
},
82
+
values: {
83
+
'video|300x250':2.22,
84
+
'video|*':1
85
+
}
86
+
},
87
+
bids: [{
88
+
bidder:'dailymotion',
89
+
params: {
90
+
apiKey:'dailymotion-testing',
91
+
}
92
+
}],
93
+
code:'test-ad-unit',
94
+
mediaTypes: {
95
+
video: {
96
+
playerSize: [300, 250],
97
+
context:'instream',
98
+
},
99
+
}
100
+
}];
101
+
102
+
// Do not forget to set an empty object for "floors" to active the price floor module
103
+
pbjs.setConfig({floors: {}});
104
+
```
105
+
106
+
The following request will be sent to Dailymotion Prebid Service :
107
+
108
+
```javascript
109
+
{
110
+
"pbv":"9.23.0-pre",
111
+
"ortb": {
112
+
"imp": [
113
+
{
114
+
...
115
+
"bidfloor":2.22,
116
+
"bidfloorcur":"USD"
117
+
}
118
+
],
119
+
}
120
+
...
121
+
}
122
+
```
123
+
124
+
Or the price floor can be set at the package level, for example :
125
+
126
+
```javascript
127
+
constadUnits= [
128
+
{
129
+
bids: [{
130
+
bidder:'dailymotion',
131
+
params: {
132
+
apiKey:'dailymotion-testing',
133
+
}
134
+
}],
135
+
code:'test-ad-unit',
136
+
mediaTypes: {
137
+
video: {
138
+
playerSize: [1280,720],
139
+
context:'instream',
140
+
},
141
+
}
142
+
}
143
+
];
144
+
145
+
pbjs.setConfig({
146
+
floors: {
147
+
data: {
148
+
currency:'USD',
149
+
schema: {
150
+
fields: [ 'mediaType', 'size' ]
151
+
},
152
+
values: {
153
+
'video|300x250':2.22,
154
+
'video|*':1
155
+
}
156
+
}
157
+
}
158
+
})
159
+
```
160
+
161
+
This will send the following bid floor in the request to Daiymotion Prebid Service :
162
+
163
+
```javascript
164
+
{
165
+
"pbv":"9.23.0-pre",
166
+
"ortb": {
167
+
"imp": [
168
+
{
169
+
...
170
+
"bidfloor":1,
171
+
"bidfloorcur":"USD"
172
+
}
173
+
],
174
+
...
175
+
}
176
+
}
177
+
```
178
+
179
+
You can also [set dynamic floors](https://docs.prebid.org/dev-docs/modules/floors.html#bid-adapter-interface).
180
+
61
181
### Test Parameters
62
182
63
183
By setting the following bid parameters, you'll get a constant response to any request, to validate your adapter integration:
@@ -142,6 +262,7 @@ const adUnits = [
142
262
private:false,
143
263
tags:'tag_1,tag_2,tag_3',
144
264
title:'test video',
265
+
url:'https://test.com/testvideo'
145
266
topics:'topic_1, topic_2',
146
267
isCreatedForKids:false,
147
268
videoViewsInSession:1,
@@ -161,7 +282,7 @@ const adUnits = [
161
282
maxduration:30,
162
283
playbackmethod: [3],
163
284
plcmt:1,
164
-
protocols: [7, 8, 11, 12, 13, 14]
285
+
protocols: [7, 8, 11, 12, 13, 14],
165
286
startdelay:0,
166
287
w:1280,
167
288
h:720,
@@ -206,16 +327,4 @@ If you already specify [First-Party data](https://docs.prebid.org/features/first
206
327
|`ortb2.site.content.keywords`|`tags`|
207
328
|`ortb2.site.content.title`|`title`|
208
329
|`ortb2.site.content.url`|`url`|
209
-
|`ortb2.app.bundle`| N/A |
210
-
|`ortb2.app.storeurl`| N/A |
211
-
|`ortb2.device.lmt`| N/A |
212
-
|`ortb2.device.ifa`| N/A |
213
-
|`ortb2.device.ext.atts`| N/A |
214
-
215
-
### Integrating the adapter
216
-
217
-
To use the adapter with any non-test request, you first need to ask an API key from Dailymotion. Please contact us through **DailymotionPrebid.js@dailymotion.com**.
218
-
219
-
You will then be able to use it within the bid parameters before making a bid request.
220
-
221
-
This API key will ensure proper identification of your inventory and allow you to get real bids.
0 commit comments