Skip to content

bidReductionEnabled

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.

window.htag = window.htag || { que: [] };
// Opt out of bid reduction
window.htag.bidReductionEnabled = false;
  • 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 bidReduced tracking event
  • Google and Amazon bidders are never subject to reduction
  • If the config fetch fails or times out, all bids proceed normally (fail-open)
  • All configured bidders participate in every auction
  • No config is fetched from ws-header-bidreduction