bidReductionEnabled
Overview
Section titled “Overview”The bidReductionEnabled flag enables ML-driven bid reduction for a tag. When set to true, Htag fetches sampling rates from the ws-header-bidreduction service and probabilistically removes bid requests to bidders that are unlikely to win the auction.
Example
Section titled “Example”window.htag = window.htag || { que: [] };window.htag.bidReductionEnabled = true;Behavior
Section titled “Behavior”Default (flag not set or false)
Section titled “Default (flag not set or false)”- All configured bidders participate in every auction
- No config is fetched from
ws-header-bidreduction
With flag set to true
Section titled “With flag set to 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)
Related Concepts
Section titled “Related Concepts”- Bid Reduction: How bid reduction works
- Placements: Learn about placement configuration