Ad stack demo
Prebid.js
This page runs the same two banner slots as the rest of the site, but the auction runs in the browser with Prebid.js and The Trade Desk bid adapter instead of the OpenAds server.
Advertisement
Every other page loads OpenAds, a Prebid-based library that sends one request to a Prebid Server endpoint at openads.adsrvr.org, which then calls The Trade Desk on the server. This page loads a Prebid.js 11.39.0 build hosted on this site. Its bidder is ttdBidAdapter, so the browser sends the bid request straight to direct.adsrvr.org.
What stays the same
- The modules, apart from the bid adapter: userId, the TCF and GPP consent modules, gppControl, gptPreAuction, storageControl, tcfControl, the EUID ID system and currency.
- The Clickio CMP. The auction waits for consent, or for five seconds if the CMP never loads.
- Google Ad Manager slots
/92296675/abc123and/92296675/banner-2, sized 728×90 on desktop and 320×50 on mobile. - The price buckets used for
hb_pbtargeting, debug logging and user sync settings.
What changes
- The price buckets move from the server request into
priceGranularity. - User syncs come from the adapter's own pixel instead of the Prebid Server cookie sync endpoint.
- The bid timeout is applied in the browser (3 seconds) instead of on the server.
Open the browser console to follow the auction. Call showDebugInfo() for the loaded version, modules, config and bids, or triggerAuction() to run the auction again and refresh both slots.
Advertisement