-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove / Unset floors on following auctions is not respected #9956
Comments
You can turn off floors with Prebid.js/modules/priceFloors.js Line 635 in 667bbda
The documentation is indeed misleading - even the |
This was intentionally done as to safeguard against an endpoint returning garbage objects or anything, always fall back to what was saved before. The way to stop floors is as Demetrio says, turn off the module with But if this does not satisfy a legit use case we can alter. |
Plan is to fix this - as in not persisting previous floor data when it's omitted or invalid - for version 8 |
Let's say we don't want to disable it but want to lower the default and remove the At any rate, I guess it's worth adding a section to price floors module docs stating what happens if you want to discard or lower the default on the next auction. |
It should work, previous data is kept only if it's omitted or invalid. |
EDIT 1
Seems that setting floor values works, e.g.
pbjs.setConfig({ floors: { data: { values: { '*': 0.01 } } } })
So the sentence
from the
setConfig
docs is not actually true in this case?Type of issue
bug
Description
removing / unsetting floors with
pbjs.setConfig({ floors: {} })
has no effect, "old" floors from previous configuration are still used.Steps to reproduce
pbjs.setConfig({ floors: { config: { default: 0.1, floorMin: 0.1 } } })
pbjs.setConfig({ floors: {} })
Test page
N/A
Expected results
unsetting floors from config should stop floor enforcement on subsequent auctions
Actual results
removing floors does nothing?
Platform details
Other information
N/A
The text was updated successfully, but these errors were encountered: