From ec0b8a16b091f21fd8989b0579fc448645971ca9 Mon Sep 17 00:00:00 2001 From: Craige Thomas Date: Wed, 4 Apr 2018 13:43:38 -0400 Subject: [PATCH] add openx and criteo adapters to prebid --- README.md | 4 +++- src/prebid.js | 17 +++++++++-------- 2 files changed, 12 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 44224d4..172627e 100644 --- a/README.md +++ b/README.md @@ -67,13 +67,15 @@ Download the latest version of PrebidJS ``` $ git clone https://github.com/prebid/Prebid.js.git $ cd Prebid.js +$ git checkout 1.6.0 # optional $ npm install +$ curl -o modules/criteoBidAdapter.js "https://raw.githubusercontent.com/criteo-forks/Prebid.js/criteo-1.0/modules/criteoBidAdapter.js" ``` Build the prebid.js binary, including only the specified adapters ``` -gulp build --modules=aolBidAdapter,openxBidAdapter,rubiconBidAdapter,appnexusBidAdapter,yieldmoBidAdapter +gulp build --modules=aolBidAdapter,openxBidAdapter,rubiconBidAdapter,appnexusBidAdapter,yieldmoBidAdapter,criteoBidAdapter ``` diff --git a/src/prebid.js b/src/prebid.js index b4b4cc8..b71b76a 100644 --- a/src/prebid.js +++ b/src/prebid.js @@ -1,9 +1,10 @@ -/* prebid.js v1.5.0-pre -Updated : 2018-03-01 */ -!(function(e){var t=window.pbjsChunk;window.pbjsChunk=function(n,o,a){for(var u,d,s,c=0,f=[];c0)if(2===a&&"number"==typeof e[0]&&"number"==typeof e[1])t.push(b(e));else for(var u=0;u0&&void 0!==arguments[0]?arguments[0]:pbjs.adUnits).map((function(e){return e.bids.map((function(e){return e.bidder})).reduce(A,[])})).reduce(A).filter(T)},t.isGptPubadsDefined=function(){if(window.googletag&&t.isFn(window.googletag.pubads)&&t.isFn(window.googletag.pubads().getSlots))return!0},t.getHighestCpm=function(e,t){if(e.cpm===t.cpm)return e.timeToRespond>t.timeToRespond?t:e;return e.cpm0;){var n=Math.floor(Math.random()*t),r=e[--t];e[t]=e[n],e[n]=r}return e},t.adUnitsFilter=function(e,t){return(0,d.default)(e,t&&t.adUnitCode)},t.isSrcdocSupported=function(e){return e.defaultView&&e.defaultView.frameElement&&"srcdoc"in e.defaultView.frameElement&&!/firefox/i.test(navigator.userAgent)},t.deepClone=function(e){return(0,a.default)(e)},t.inIframe=function(){try{return window.self!==window.top}catch(e){return!0}},t.isSafariBrowser=function(){return/^((?!chrome|android).)*safari/i.test(navigator.userAgent)},t.replaceAuctionPrice=function(e,t){if(!e)return;return e.replace(/\$\{AUCTION_PRICE\}/g,t)},t.timestamp=function(){return(new Date).getTime()},t.checkCookieSupport=function(){if(window.navigator.cookieEnabled||document.cookie.length)return!0},t.cookiesAreEnabled=function(){if(t.checkCookieSupport())return!0;return window.document.cookie="prebid.cookieTest",-1!=window.document.cookie.indexOf("prebid.cookieTest")},t.delayExecution=function(e,t){if(t<1)throw new Error("numRequiredCalls must be a positive number. Got "+t);var n=0;return function(){++n===t&&e.apply(null,arguments)}},t.groupBy=function(e,t){return e.reduce((function(e,n){return(e[n[t]]=e[n[t]]||[]).push(n),e}),{})},t.deepAccess=function(e,t){t=String(t).split(".");for(var n=0;n