Browsi’s RTD module for Prebid.js provides real-time insights and predictive signals to optimize bid requests and ad delivery. This module leverages Browsi’s AI models to give publishers access to:
Implementation works like this:
Build the Browsi modules into the Prebid.js package with:
gulp build --modules=browsiRtdProvider,browsiAnalyticsAdapter
Use setConfig to instruct the browser to obtain Browsi’s predictive signals in parallel with the header bidding auction
This module is configured as part of the realTimeData.dataProviders object:
pbjs.setConfig({
realTimeData: {
auctionDelay : 3000,
dataProviders: [{
name: "browsi",
params: {
url: "domain.com",
siteKey: "SITE",
pubKey: "PUB",
waitForIt: true
}
}]
}
});
Syntax details:
| Name | Type | Description | Notes |
|---|---|---|---|
| name | String | Real time data module name | Always ‘browsi’ |
| params | Object | ||
| params.siteKey | String | Site key | |
| params.pubKey | String | Publisher key | |
| params.url | String | Server URL | |
| params.keyName | String | GAM key value name for the viewability prediction | Optional. Defaults to ‘browsiViewability’. |
| params.waitForIt | boolean | Allow waiting for data | true |
For each ad slot, the module generates predictive signals in JSON format, assigns key-value pairs for viewability and revenue predictions via pbjs.setTargetingForGPT, and embeds the full JSON in the bid request under <bidder>.ortb2Imp.ext.data.browsi.