What is Header Bidding?
Header bidding is an advanced programmatic advertising technique that allows publishers to offer their ad inventory to multiple demand sources simultaneously, before sending requests to their primary ad exchange. Instead of a sequential, waterfall approach where one demand source has priority, header bidding creates a competitive auction environment.
This democratised bidding process typically results in higher CPMs (cost per thousand impressions) and increased overall ad revenue for publishers of all sizes.
How Header Bidding Works
Traditionally, publishers relied on a waterfall method: if one ad network couldn't fill an impression, the request would pass to the next network in line. This meant lower-demand sources might not even get a chance to bid on premium inventory.
With header bidding:
- A publisher's webpage loads JavaScript code in the page header
- This code simultaneously requests bids from multiple ad exchanges and demand partners
- All bids are collected and compared
- The highest bid wins the impression
- The winner's ad is displayed to the user
Why Implement Header Bidding?
Revenue Benefits
Header bidding typically increases publisher revenue by 20-50%, depending on your traffic profile, niche, and existing demand. The competitive environment pushes demand sources to bid their true value rather than accepting whatever your waterfall hierarchy offers them.
Better Demand Source Performance
Your demand partners can bid on premium inventory they'd otherwise miss. This means better-quality ads, more relevant user experiences, and stronger relationships with advertisers.
Reduced Dependency on Single Partners
By diversifying your demand sources, you're less reliant on any single ad network. This provides negotiating leverage and protects your revenue if a partner's performance declines.
Prerequisites Before Implementation
Before diving into header bidding, ensure you have:
- A demand-side platform (DSP) or multiple ad partners ready to participate in header bidding. Common partners include Google Ad Exchange, AppNexus (Xandr), Rubicon Project, and others
- Website traffic sufficient to attract premium demand sources (generally 1 million+ monthly impressions helps)
- Technical capability or a developer who can manage JavaScript implementation
- Ad server infrastructure like Google Ad Manager or similar platform
- A clear understanding of your current ad revenue baseline for comparison
Step-by-Step Implementation Guide
Step 1: Audit Your Current Setup
Before implementing anything new, understand your existing revenue:
- Document all current demand partners and their performance
- Note your average CPMs by ad unit and placement
- Calculate total monthly ad revenue
- Identify which ad units perform best
This baseline helps you measure header bidding's impact.
Step 2: Select Your Header Bidding Partner and Demand Sources
You'll need to choose:
Header Bidding Technology: Use a wrapper (technology layer) that manages the header bidding process. Popular options include:
- Prebid.js – Open-source, free, and widely adopted
- Google Authorized Buyers – Direct integration with Google Ad Manager
- OpenBid – Publisher-friendly option with good support
- SpotX, Criteo, or proprietary solutions – Depending on your needs
Demand Partners: Start with 4-8 high-quality partners:
- Your existing ad network partners
- Google Ad Exchange
- Premium programmatic partners like Xandr, Rubicon Project
- DSPs relevant to your audience (e.g., The Trade Desk)
Step 3: Set Up Your Ad Server Configuration
Your primary ad server (usually Google Ad Manager) needs to be configured to receive and process header bids:
- Create new line items in your ad server for header bidding partners
- Set appropriate price floors for each partner
- Configure bid adjustments if needed
- Create reporting dimensions to track header bidding performance separately
Step 4: Implement the Header Bidding Code
If using Prebid.js (recommended for beginners):
- Add Prebid library to your page header before other ad code
- Configure bidders – specify which demand partners participate and their parameters
- Set timeout – typically 700-1000ms allows sufficient time for bids without slowing page load
- Request bids – call the prebid function to initiate simultaneous bid requests
- Send to ad server – pass the highest bids to your ad server for final auction
Step 5: Test Thoroughly
Before going live to all traffic:
- Test in development – Verify code loads correctly and bids are returned
- Use browser console – Check for JavaScript errors
- Monitor page speed – Ensure header bidding doesn't negatively impact load times
- A/B test – Run header bidding for a percentage of traffic first (10-25%)
- Track metrics – Monitor fill rates, CPMs, and revenue during testing
Step 6: Optimize and Fine-Tune
Once live, continuously optimize:
- Adjust timeout – If too high, it impacts page speed; if too low, you miss bids
- Review partner performance – Identify underperforming bidders
- Adjust price floors – Ensure they're competitive but not too low
- Test bidder combinations – Different partners work better in different contexts
Key Metrics to Monitor
Essential KPIs
- CPM (Cost Per Mille) – Average price per thousand impressions
- Fill Rate – Percentage of impressions that receive a bid
- Bid Density – Average number of bids per auction
- Win Rate – Percentage of auctions won by each partner
- Page Load Time – Should remain under 3 seconds
- Revenue per Session – Total revenue divided by unique users
Where to Track
- Your ad server's native reporting
- Analytics tools integrated with your ad server
- Partner dashboards
- Google Analytics connected to ad revenue data
Common Pitfalls to Avoid
Setting Timeout Too High
If your header bidding timeout is 5+ seconds, you'll see page speed penalties that damage user experience and SEO rankings. Keep it between 700-1200ms.
Too Many Bidders
While more bidders can increase competition, diminishing returns kick in after 6-8 partners. More bidders = more JavaScript = slower pages. Quality over quantity.
Ignoring Price Floors
Without proper price floors, you might accept bids lower than your direct deals would command. Set floors based on your historical data and market conditions.
Poor Implementation of Ad Server Setup
If your ad server isn't properly configured to receive header bids, the entire system fails. Work with your ad tech vendor to ensure correct setup.
Failing to Monitor Performance
Implement header bidding, then ignore it. Demand changes seasonally and partners' performance fluctuates. Monthly reviews ensure you're optimized.
Abandoning Too Soon
Header bidding typically takes 2-4 weeks to stabilize as demand sources adjust their bidding strategies. Don't make major changes in week one.
Best Practices for Success
Start Conservative
Implement with 4-5 trusted partners before expanding. This reduces complexity and debugging difficulty.
Use First-Price Auctions
With first-price auctions (where winners pay their bid amount), demand sources bid more competitively. This benefits your revenue.
Regular Communication with Partners
Understanding why certain partners bid (or don't bid) on your inventory helps optimize your setup. Schedule quarterly reviews.
Maintain Your Waterfall
Header bidding works best alongside (not instead of) direct deals and other guaranteed inventory. Keep this complementary approach.
Monitor Fraud and Quality
Ensure header bidding partners meet your quality standards. Use brand safety tools and review partner credentials.
Expected Timeline and Results
Week 1-2: Implementation Phase
- Code deployment and testing
- Initial configuration
- Testing with 10-25% of traffic
Week 3-4: Ramp-Up Phase
- Roll out to 100% of traffic
- Monitor for issues
- First performance data emerges
Month 2-3: Optimization Phase
- Fine-tune settings based on data
- Adjust timeouts, floors, partner mix
- Revenue stabilizes at new level
Expected Results
- 15-50% average CPM increase (varies by niche)
- Improved fill rates
- Better demand source competition
- Slight page speed impact (usually minimal with optimization)
Measuring Your Success
Compare your pre- and post-implementation metrics:
- Revenue increase = (New monthly revenue - Old monthly revenue) / Old monthly revenue × 100
- CPM improvement = Track across same ad units and placements
- Audience quality = Monitor bounce rates, engagement, time-on-site (should remain stable or improve)
Conclusion
Header bidding represents a significant opportunity for publishers to increase ad revenue through competitive auctions. While implementation requires technical work and ongoing optimization, the financial benefits justify the effort for most publishers with meaningful traffic.
Start with a thoughtful partner selection, implement carefully with proper testing, and commit to ongoing optimization. Combined with your existing monetization strategies, header bidding can meaningfully boost your bottom line.