Skip to content

Instantly share code, notes, and snippets.



Setup and manage header bidding advertising partners without writing code or confusing line items. Prebid.js is open source and free.

Many SSPs, bidders, and publishers have all contributed to this project.

Check out the overview and documentation at

No more week-long development. Header bidding is made easy by prebid.js :)

View ut_response.json
"version": "0.0.1",
"tags": [{
"uuid": "0a7c7c47-1f1c-436f-afdb-9b66abe8fd70",
"tag_id": 5839879,
"auction_id": "275902152711708679",
"no_ad_url": "
View mediation_response.js
var APN_macros = {}; = [{
"handler": [{
"params": {
"height": "250",
"width": "300",
"creativeId": 38014700
"content": "<!-- BEGIN JS TAG - Scenario2_Mediation < - DO NOT MODIFY -->\n<SCRIPT SRC=\"\" TYPE=\"text/javascript\"></SCRIPT>\n<!-- END TAG -->"
mkendall07 /
Last active October 7, 2016 16:39
prebid.js release template

New Features

  • New adapter: xxx (#commit_number - @contributer)

Feature (beta)

  • xxx
//code example
mkendall07 /
Created May 9, 2017 19:31
Concurrent Auctions

Concurrent Auctions - ready for review

The proposal for concurrent auction support will be for Prebid.js to hide details of concurrency from the end user (publisher). They will still use the same public API's that are in place (i.e. requestBids() etc) but receive the benefit of better performance (not having to have bid requests queued). Concurrency just works (CJW).

When a getTargeting request is made to prebid, prebid will deteremine the best bid that is available at the given time out of the pool of available bids.

Auction Manager // new class to replace bidmanager.js

  • Is responsible for storing auction references (each auction object will store N # of bids associated with a particular call of requestBids()) in a internal structure
  • Concurrent auctions will be supported via creating new auction instances
  • auction instances will be bound to a specific auctionRequest copy that is passed from adaptermanager.js
mkendall07 /
Last active September 15, 2017 17:49
Prebid 1.0 Publisher API changes

Status: Ready for review


  • Make the public API easier / simpler if possible, while preserving the ability for more advanced setups.
    • Depracting API's as needed.
  • Configration to be expressed JSON
  • Expanding functionality of size mapping