Skip to content

Remove / Unset floors on following auctions is not respected #9956

@natanavra

Description

@natanavra

EDIT 1

Seems that setting floor values works, e.g. pbjs.setConfig({ floors: { data: { values: { '*': 0.01 } } } })
So the sentence

Every call to setConfig overwrites supplied values at the top level

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

  1. run an auction with a default price floors e.g. pbjs.setConfig({ floors: { config: { default: 0.1, floorMin: 0.1 } } })
  2. after several seconds unset/remove floors pbjs.setConfig({ floors: {} })
  3. run another auction, default floor is still enforced

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

  • prebid.js 7.39.0
  • chrome 113

Other information

N/A

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions