Programmatic
Prebid.js
Prebid JS is Prebid's free, open-source header bidding framework for websites. It runs auctions before the publisher's ad server decision, connecting hundreds of supported demand adapters and analytics integrations while providing modules for consent, identity, floors, currency, video, native, and other implementation needs. It is intended for technically capable publishers and monetization partners that want vendor-neutral control over client-side bidding and can manage configuration, latency, testing, privacy obligations, bidder relationships, and ad-server key values.
What it does
Prebid.js is the open-source JavaScript framework that standardized header bidding. Installed on a publisher's pages, it runs an auction among demand partners before the ad server makes its decision: each configured bidder adapter requests bids in parallel within a timeout, winning bids are passed to Google Ad Manager as key-values, and the ad server lets them compete against direct and AdX demand. Over 300 bidder adapters exist, alongside modules for identity solutions, consent management, price floors, currency conversion, and video. Being vendor-neutral and free, it gives publishers auction transparency and bidder control that proprietary wrappers do not, at the cost of owning configuration, latency tuning, and partner management.
Where it fits
Prebid.js runs on-page before Google Ad Manager in the publisher stack, injecting competing exchange demand into the final ad decision.
Core features
- Parallel client-side auctions before the ad server call
- 300+ open-source bidder adapters
- Identity, consent, floor, and currency modules
- Configurable timeouts and auction controls
- Vendor-neutral governance under Prebid.org
Best for
- Publishers with the technical capacity to own their auction stack
- Sites diversifying demand beyond Google AdX
- Monetization teams that want auction transparency and control
Beginner notes
- More bidders is not better: each adds latency and page weight, so start with three to five strong partners and expand based on measured incremental revenue.
- Set timeouts deliberately, because a generous timeout raises yield slightly while measurably slowing the page and hurting Core Web Vitals.
- You need direct relationships and contracts with each demand partner; Prebid is plumbing, not a demand source itself.