Level 19 · Header bidding Spot it shooter Header bidding · 9 of 10 1 min

Debugging Prebid

A bidder stops earning and nothing alerts you. Each round shows a symptom and a clue from the console or Professor Prebid. Shoot the cause before the clock runs out.

Console Detective Spot it shooter · 1-minute clock · plays full screen

What you’ll learn

  • How to turn on Prebid’s debug messages
  • Which console checks show bids, key-values and ad unit setup
  • How timeouts, missing adapters, bucket gaps, sizes and consent each look

Turn on the lights

Add pbjs_debug=true to the page URL and Prebid prints its debug messages to the browser console, such as “Calling bidder” when requests go out. Professor Prebid, an open-source Chrome extension, shows each bidder’s bids and response times against the timeout.

Check each step

pbjs.adUnits shows the bidders and sizes you ask for. pbjs.getBidResponses() lists the bids that came back. pbjs.getAdserverTargeting() shows the key-values Prebid will send to Ad Manager.

Then check Ad Manager

If key-values arrive but no Prebid ad serves, look at the ad server: price granularity must match the line items exactly, the order must be active, and higher-priority line items can win first.

Key terms

pbjs_debug
URL parameter that turns on Prebid’s debug messages in the console.
Bidder adapter
The plug-in that lets Prebid.js talk to one SSP; it must be in your build.
Bidder params
The IDs in your setup that tell an SSP which account and placement is asking.
tcfControl
Prebid module that blocks bidders without a legal basis under the consent string.

Level 19 leaderboard

No scores yet. Be the first on the board!