Prebid.js
The leading open-source header bidding framework used by publishers to manage programmatic auctions.
What is Prebid.js?
Prebid.js is the most widely adopted open-source header bidding framework for web publishers. Maintained by Prebid.org (a consortium of ad tech companies), it provides a standardized way to implement header bidding by offering pre-built adapters for hundreds of demand partners (SSPs, ad exchanges, and networks). Instead of building custom integrations with each bidding partner, publishers configure Prebid adapters and the framework handles bid requests, responses, targeting, and ad server communication.
Prebid.js supports client-side bidding (in the user's browser), server-side bidding (through Prebid Server), and hybrid approaches. The framework also includes modules for consent management, user ID solutions, analytics, and advanced auction features like price granularity controls and bid caching.
Why It Matters for Publishers
Prebid.js has become the de facto standard for header bidding because it dramatically reduces the complexity of managing multiple demand partners. Without Prebid, publishers would need to write and maintain custom code for each SSP integration. With Prebid, adding a new demand partner is as simple as adding a few lines of configuration.
The open-source nature of Prebid also ensures transparency. Publishers can inspect exactly how their auctions work, audit demand partner behavior, and customize the framework to their specific needs. This transparency is a significant advantage over proprietary header bidding solutions offered by individual SSPs.
Tips for Optimization
- Keep Prebid updated: New versions include bug fixes, performance improvements, and new demand partner adapters. Update at least quarterly to stay current.
- Configure price granularity: Use custom price buckets that match your CPM range. Dense granularity (e.g., $0.01 increments) at lower prices and wider buckets at higher prices captures more value from competitive auctions.
- Use Prebid Analytics: Enable analytics adapters to track bid rates, response times, and win rates for each demand partner. Data-driven optimization is essential.
- Implement Prebid Server: Move some demand partners to server-side to reduce browser-side latency. Server-side bidding runs in the cloud rather than the user's browser, improving page load speed.
- Test timeout settings: Prebid's timeout determines how long to wait for bid responses. Start at 1500ms and adjust based on the balance between bid coverage and page load speed.