Interstitial ads are often placed at natural transition points of the user’s experience, such as moving from one page to the next. These ads are generally center-aligned overlaying user content.
This document covers how to setup interstitial ad units.
Please check with each of this AdUnit’s bidders to ensure they’re reading the interstitial flag from the standard Prebid location. If the bidder doesn’t specifically support interstitials, results may be unexpected.
The flow for publishers is the following:
Publishers must set the desired size in the respective adUnit.
The below sizes are specials sizes to indicate the ad will be full screen for mobile or tablet devices:
The Prebid Interstitial flag reflects the OpenRTB standard, specifying it at the imp level.
If an attribute is specific to an AdUnit, it can be passed this way:
pbjs.addAdUnits({
code: "test-div",
mediaTypes: {
banner: {
sizes: [[300,250]]
}
},
ortb2Imp: {
instl:1
},
bids: [
... bidders that support interstitials ...
]
});
To access global data, a Prebid.js bid adapter needs only to retrieve the interstitial flag from the adUnit like this:
utils.deepAccess(bidRequest.ortb2Imp, 'instl')
The assumption is that bid adapters will copy the values to the appropriate protocol location for their endpoint.
Optimizing when billing occurs for an interstitial ad can sometimes be tricky. The following built-in Prebid.js functionality can help assist with this:
onBidBillable(bid)
which will be invoked by Prebid.js when it deems a bid to be billable (Note: A bid adapter must have the onBidBillable method configured for this to work).pbjs.addAdUnits({deferBilling: true, ...})
pbjs.triggerBilling(winningBidObjectToBill)
with the winning bid to be billed, which would trigger a bid adapters onBidBillable method.