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
Copy file name to clipboardExpand all lines: dev-docs/modules/floors.md
+28-2Lines changed: 28 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -58,6 +58,26 @@ Notes:
58
58
*[Prebid Floor Service Providers](/dev-docs/modules/floors.html#floors-providers)
59
59
*[Transcript of this video](/dev-docs/floors-video-overview.html)
60
60
61
+
### Simple Static Floors
62
+
63
+
Some publishers just want to set a simple static floor. Please don't use this module for that. This module should only be used when you need to vary the floor by mediatype, size, etc. Here's how you can set static floors on each Prebid adunit:
64
+
65
+
```javascript
66
+
pbjs.addAdUnits({
67
+
code:"test-div",
68
+
mediaTypes: {
69
+
banner: {
70
+
sizes: [[300,250]]
71
+
}
72
+
},
73
+
ortb2Imp: {
74
+
bidfloor:1.00,
75
+
bidfloorcur:"EUR"
76
+
},
77
+
// ...
78
+
});
79
+
```
80
+
61
81
## How it Works
62
82
63
83
There are several places where the Floor module changes the behavior of the Prebid.js auction process. Below is a diagram describing the general flow of the client-side Price Floors Module:
@@ -298,10 +318,13 @@ Schema 1 restricts floors providers or publishers to applying only one data grou
298
318
Note: if you're a dynamic floor provider service, your response must be
299
319
a subset that will be merged under the 'data' object.
300
320
321
+
{: .alert.alert-warning :}
322
+
You **cannot** set the `floorMin` parameter without specifying a `data` object. See the [simple static floor](/dev-docs/modules/floors.html#simple-static-floors) section above for more info.
323
+
301
324
{: .table .table-bordered .table-striped }
302
325
| Param | Type | Description | Default |
303
326
|---+---+---+---+---|
304
-
| floorMin | float | The mimimum CPM floor used by the Price Floors Module (as of 4.13). The Price Floors Module will take the greater of floorMin and the matched rule CPM when evaluating getFloor() and enforcing floors. | - |
327
+
| floorMin | float | The mimimum CPM floor used by the Price Floors Module (as of 4.13). The Price Floors Module will take the greater of floorMin and the matched rule CPM when evaluating getFloor() and enforcing floors. **Note**: this is not a method of setting a [static floor](/dev-docs/modules/floors.html#simple-static-floors). | - |
305
328
| floorProvider | string | Optional atribute (as of prebid version 4.1) used to signal to the Floor Provider's Analytics adapter their floors are being applied. They can opt to log only floors that are applied when they are the provider. If floorProvider is supplied in both the top level of the floors object and within the data object, the data object's configuration shall prevail.| - |
306
329
| enforcement | object | Controls the enforcement behavior within the Price Floors Module.| - |
307
330
| skipRate | integer | skipRate is a random function whose input value is any integer 0 through 100 to determine when to skip all floor logic, where 0 is always use floor data and 100 is always skip floor data. The use case is for publishers or floor providers to learn bid behavior when floors are applied or skipped. Analytics adapters will have access to model version (if defined) when skipped is true to signal the Price Floors Module is in floors mode. If skipRate is supplied in both the root level of the floors object and within the data object, the skipRate configuration within the data object shall prevail. | 0 |
@@ -354,10 +377,13 @@ While some attributes are common in both schema versions, for completeness, all
354
377
Note: if you're a dynamic floor provider service, your response must be
355
378
a subset that will be merged under the 'data' object.
356
379
380
+
{: .alert.alert-warning :}
381
+
You **cannot** set the `floorMin` parameter without specifying a `data` object. See the [simple static floor](/dev-docs/modules/floors.html#simple-static-floors) section above for more info.
382
+
357
383
{: .table .table-bordered .table-striped }
358
384
| Param | Type | Description | Default |
359
385
|---+---+---+---+---|
360
-
| floorMin | float | The mimimum CPM floor used by the module (as of 4.13). The module will take the greater of floorMin and the matched rule CPM when evaluating getFloor() and enforcing floors. | - |
386
+
| floorMin | float | The mimimum CPM floor used by the module (as of 4.13). The module will take the greater of floorMin and the matched rule CPM when evaluating getFloor() and enforcing floors. **Note**: this is not a method of setting a [static floor](/dev-docs/modules/floors.html#simple-static-floors). | - |
361
387
| floorMinCur | float | Prebid Server only: the currency used for the floorMin value. | - |
362
388
| floorProvider | string | Optional atribute (as of prebid version 4.1) used to signal to the Floor Provider's Analytics adapter their floors are being applied. They can opt to log only floors that are applied when they are the provider. If floorProvider is supplied in both the top level of the floors object and within the data object, the data object's configuration shall prevail.| - |
363
389
| skipRate | integer | skipRate is a random function whose input value is any integer 0 through 100 to determine when to skip all floor logic, where 0 is always use floor data and 100 is always skip floor data. The use case is for publishers or floor providers to learn bid behavior when floors are applied or skipped. Analytics adapters will have access to model version (if defined) when skipped is true to signal the module is in floors mode. If skipRate is supplied in both the root level of the floors object and within the data object, the skipRate configuration within the data object shall prevail. | 0 |
Copy file name to clipboardExpand all lines: prebid-server/features/pbs-floors.md
+3Lines changed: 3 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -153,6 +153,9 @@ completely backwards-compatible -- PBS will accept and process any Prebid.js flo
153
153
154
154
### Defining Floor data
155
155
156
+
{: .alert.alert-warning :}
157
+
You **cannot** set the `floorMin` parameter without specifying a `data` object. See the [simple static floor](/dev-docs/modules/floors.html#simple-static-floors) section for more info.
158
+
156
159
As described in the [Signaling](#floor-signaling) section above, floor data may be defined in several ways. Here's the order of priority:
157
160
158
161
1. Dynamic data - if PBS finds recent (non-expired) floors data from a dynamic floors vendor, that takes precedence.
0 commit comments