Skip to content

Commit c2b710d

Browse files
committed
adding static floor enforcement scenario
1 parent 7b3776d commit c2b710d

File tree

1 file changed

+33
-2
lines changed

1 file changed

+33
-2
lines changed

dev-docs/modules/floors.md

Lines changed: 33 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,9 @@ Notes:
5858
* [Prebid Floor Service Providers](/dev-docs/modules/floors.html#floors-providers)
5959
* [Transcript of this video](/dev-docs/floors-video-overview.html)
6060

61-
### Simple Static Floors
61+
### Simple Static Floor Signaling
6262

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:
63+
Some publishers just want to set a simple static floor and don't need enforcement. 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 signal static floors on each Prebid adunit:
6464

6565
```javascript
6666
pbjs.addAdUnits({
@@ -78,6 +78,37 @@ pbjs.addAdUnits({
7878
});
7979
```
8080

81+
### Simple Static Floor Enforcement
82+
83+
If you need a static floor signal and also want to enforce that static floor, here's the quick start:
84+
85+
```javascript
86+
var adUnits = [
87+
{
88+
code: 'test-div',
89+
mediaTypes: {
90+
banner: { sizes: [[300,250],[300,600]] }
91+
},
92+
floors: {
93+
currency: 'USD',
94+
schema: {
95+
delimiter: '|',
96+
fields: [ 'mediaType' ]
97+
},
98+
values: {
99+
'*': 1.00 // enter your static floor here
100+
}
101+
},
102+
bids: [
103+
...
104+
]
105+
}
106+
];
107+
```
108+
109+
{: .alert.alert-warning :}
110+
Prebid does not recommend setting static floors. They are blunt tools and you'll forget to update them.
111+
81112
## How it Works
82113

83114
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:

0 commit comments

Comments
 (0)