bidReductionEnabled
Overview
Section titled “Overview”The bidReductionEnabled flag controls ML-driven bid reduction for a tag. Bid reduction is on by default — Htag fetches sampling rates from the ws-header-bidreduction service and probabilistically removes bid requests to bidders that are unlikely to win the auction. Set the flag to false to opt out.
Example
Section titled “Example”window.htag = window.htag || { que: [] };// Opt out of bid reductionwindow.htag.bidReductionEnabled = false;Behavior
Section titled “Behavior”Default (flag not set or true)
Section titled “Default (flag not set or true)”- Htag fetches bid reduction config on startup and caches it
- Each bidder’s bid request is kept or removed based on the configured sampling rate
- Removed bids emit a
bidReducedtracking event - Google and Amazon bidders are never subject to reduction
- If the config fetch fails or times out, all bids proceed normally (fail-open)
With flag set to false
Section titled “With flag set to false”- All configured bidders participate in every auction
- No config is fetched from
ws-header-bidreduction
Related Concepts
Section titled “Related Concepts”- Bid Reduction: How bid reduction works
- Placements: Learn about placement configuration