Prebid.js
Use prebid.js with Appconsent CMP
<script>
var PREBID_TIMEOUT = 300;
var pbjs = pbjs || {};
pbjs.que = pbjs.que || [];
pbjs.que.push(function()
{
pbjs.setConfig({consentManagement:
{ cmpApi: 'iab', //needs to be iab
timeout: 8000, //timeout for prebid to wait for consent in ms
allowAuctionWithoutConsent: false //send requests without consent?
}
});
var units = [];
units[units.length] = {
code: "content",
sizes: [[300, 250]],
bids: [
{bidder: "criteo", params: {zoneId: "..."}},
{bidder: "fidelity", params: {zoneid: "...", floor: 0.05, server: "..."}},
{bidder: "stroeerCore", params: {sid: "..."}}
//more bidders here
]};
pbjs.addAdUnits(units);
pbjs.timeout = 300;
pbjs.requestBids({ bidsBackHandler: function(bidResponses){ }, timeout: 300 });
});
</script>Last updated