| layout | title | description | sidebarType |
|---|---|---|---|
page_v2 |
Prebid.js 11.0 Release Notes & Publisher API Changes |
Description of the breaking changes included for Prebid.js 11.0 |
1 |
{:.no_toc}
This document describes the changes included for Prebid.js version 11.0.
- TOC {:toc}
- A number of obsolete modules have been removed (see list below).
- Adpod is no longer supported.
- PAAPI is no longer supported.
- The
addAdUnits,bidAccepted, andseatNonBidevents have been removed. - The
storageControlmodule now defaults to strict enforcement. - The way viewability is calculated and signaled has been overhauled.
The following modules have been removed from Prebid.js as part of the 11.0 release:
{: .table .table-bordered .table-striped }
| Module | Notes |
|---|---|
adpod |
|
categoryTranslation |
|
dfpAdServerVideo |
Use gamAdServerVideo instead |
dfpAdpod |
|
dmdIdSystem |
|
express |
|
freeWheelAdserverVideo |
|
gamAdpod |
|
intersectionRtdProvider |
|
optableBidAdapter |
|
paapi |
|
paapiForGpt |
|
topLevelPaapi |
|
quantcastBidAdapter |
|
quantcastIdSystem |
|
ringieraxelspringerBidAdapter |
The following events have been removed and will no longer trigger callbacks registered with pbjs.onEvent:
addAdUnits: this event carried no information besides the fact thatpbjs.addAdUnitswas called.auctionInitandbeforeRequestBidscontain the ad units involved in each auction.bidAccepted: usebidResponseinstead.seatNonBid: usepbsAnalyticsinstead.
The storageControl module now defaults to strict enforcement; including it will cause undisclosed storage use to fail instead of just logging a warning. You may revert to warning only with
pbjs.setConfig({
storageControl: {
enforcement: 'off'
}
})A number of changes were aimed at standardizing two related problems: viewability of an ad unit at the time an auction starts; and viewability of an ad that was rendered on the page.
Many adapters attempt to calculate the position of an ad unit on the page so that they can include that information in their bid request. To facilitate this, 11.0 adds a new element configuration option for ad units that can be used to specify the page element it corresponds to. For example:
pbjs.requestBids({
adUnits: [{
code: 'myAdUnit',
element: document.querySelector('#ad-container')
// ...
}]
})Adapters can retrieve the element using the getAdUnitElement utility function. If element is not specified for an ad unit it defaults to document.getElementById(adUnit.code).
To determine viewability of an ad rendered on the page, publishers can choose one of two optional modules:
bidViewabilityonly works with GPT ad units, and relies on itsimpressionViewableevents;bidViewabilityIOapproximates the same viewability criteria (IAB's MRC 50%) usingIntersectionObserver.
When a bid is deemed viewable, both modules now:
- fire a
bidViewableevent - run the relevant adapter's
onBidViewablemethod - trigger "viewable-mrc50" (
event: 2) event trackers in the bid'seventtrackerarray.