This demo demonstrates how to integrate Optable's targeting capabilities with Prebid.js using the OptableRTD module. The implementation assumes Google Ad Manager (GAM) as the primary ad server, integrated via Google Publisher Tag (GPT).
The Prebid.js configuration requires minimal setup. Here's the essential configuration:
pbjs.mergeConfig({
debug: true,
priceGranularity: "low",
userSync: {
iframeEnabled: true,
enabledBidders: ["pubmatic"]
},
realTimeData: {
auctionDelay: 400,
dataProviders: [{
name: 'optable',
waitForIt: true // Required to respect auctionDelay
}]
}
});
targeting
on page load to update the local cache, as the RTD module only uses cached values.
localStorage.disableGamTargeting = "true"
before page load to prevent the SDK from sending targeting data to GAM.