prebid.js 7.53.0 → 8.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/workflows/codeql-analysis.yml +2 -2
- package/dist/1plusXRtdProvider.js +1 -1
- package/dist/33acrossBidAdapter.js +1 -1
- package/dist/33acrossIdSystem.js +1 -1
- package/dist/adWMGAnalyticsAdapter.js +1 -1
- package/dist/adWMGBidAdapter.js +1 -1
- package/dist/adagioAnalyticsAdapter.js +1 -1
- package/dist/adagioBidAdapter.js +1 -1
- package/dist/adbookpspBidAdapter.js +1 -1
- package/dist/adfBidAdapter.js +1 -1
- package/dist/adgenerationBidAdapter.js +1 -1
- package/dist/adhashBidAdapter.js +1 -1
- package/dist/adkernelAdnAnalyticsAdapter.js +1 -1
- package/dist/adkernelAdnBidAdapter.js +1 -1
- package/dist/adkernelBidAdapter.js +1 -1
- package/dist/adlooxAdServerVideo.js +1 -1
- package/dist/adlooxAnalyticsAdapter.js +1 -1
- package/dist/adlooxRtdProvider.js +1 -1
- package/dist/adomikAnalyticsAdapter.js +1 -1
- package/dist/adprimeBidAdapter.js +1 -1
- package/dist/adqueryBidAdapter.js +1 -1
- package/dist/adrelevantisBidAdapter.js +1 -1
- package/dist/adtrgtmeBidAdapter.js +1 -1
- package/dist/adtrueBidAdapter.js +1 -1
- package/dist/aduptechBidAdapter.js +1 -1
- package/dist/advangelistsBidAdapter.js +1 -1
- package/dist/adxcgAnalyticsAdapter.js +1 -1
- package/dist/adxcgBidAdapter.js +1 -1
- package/dist/adxpremiumAnalyticsAdapter.js +1 -1
- package/dist/adyoulikeBidAdapter.js +1 -1
- package/dist/afpBidAdapter.js +1 -1
- package/dist/aidemBidAdapter.js +1 -1
- package/dist/airgridRtdProvider.js +1 -1
- package/dist/ajaBidAdapter.js +1 -1
- package/dist/amxBidAdapter.js +1 -1
- package/dist/amxIdSystem.js +1 -1
- package/dist/analyticsAdapter.js +1 -1
- package/dist/apacdexBidAdapter.js +1 -1
- package/dist/appierAnalyticsAdapter.js +1 -1
- package/dist/appnexusBidAdapter.js +1 -1
- package/dist/appnexusKeywords.js +1 -0
- package/dist/asoBidAdapter.js +1 -1
- package/dist/astraoneBidAdapter.js +1 -1
- package/dist/atsAnalyticsAdapter.js +1 -1
- package/dist/audiencerunBidAdapter.js +1 -1
- package/dist/automatadBidAdapter.js +1 -1
- package/dist/axonixBidAdapter.js +1 -1
- package/dist/beachfrontBidAdapter.js +1 -1
- package/dist/beopBidAdapter.js +1 -1
- package/dist/betweenBidAdapter.js +1 -1
- package/dist/bidViewability.js +1 -1
- package/dist/bidglassBidAdapter.js +1 -1
- package/dist/bidwatchAnalyticsAdapter.js +1 -1
- package/dist/big-richmediaBidAdapter.js +1 -1
- package/dist/bizzclickBidAdapter.js +1 -1
- package/dist/bluebillywigBidAdapter.js +1 -1
- package/dist/braveBidAdapter.js +1 -1
- package/dist/bridgewellBidAdapter.js +1 -1
- package/dist/brightMountainMediaBidAdapter.js +1 -1
- package/dist/browsiBidAdapter.js +1 -1
- package/dist/byDataAnalyticsAdapter.js +1 -1
- package/dist/cadentApertureMXBidAdapter.js +1 -0
- package/dist/carodaBidAdapter.js +1 -1
- package/dist/categoryTranslationMapping.js +1 -0
- package/dist/ccxBidAdapter.js +1 -1
- package/dist/chtnwBidAdapter.js +1 -1
- package/dist/cleanmedianetBidAdapter.js +1 -1
- package/dist/codefuelBidAdapter.js +1 -1
- package/dist/colossussspBidAdapter.js +1 -1
- package/dist/concertAnalyticsAdapter.js +1 -1
- package/dist/concertBidAdapter.js +1 -1
- package/dist/connectIdSystem.js +1 -1
- package/dist/connectadBidAdapter.js +1 -1
- package/dist/consentManagement.js +1 -1
- package/dist/consentManagementGpp.js +1 -1
- package/dist/consentManagementUsp.js +1 -1
- package/dist/consumableBidAdapter.js +1 -1
- package/dist/conversantAnalyticsAdapter.js +1 -1
- package/dist/conversantBidAdapter.js +1 -1
- package/dist/craftBidAdapter.js +1 -1
- package/dist/criteoBidAdapter.js +1 -1
- package/dist/criteoIdSystem.js +1 -1
- package/dist/currency.js +1 -1
- package/dist/cwireBidAdapter.js +1 -1
- package/dist/dailyhuntBidAdapter.js +1 -1
- package/dist/datablocksAnalyticsAdapter.js +1 -1
- package/dist/datablocksBidAdapter.js +1 -1
- package/dist/datawrkzBidAdapter.js +1 -1
- package/dist/debugging-standalone.js +1 -1
- package/dist/debugging.js +1 -1
- package/dist/deltaprojectsBidAdapter.js +1 -1
- package/dist/dependencies.json +58 -14
- package/dist/dfpAdServerVideo.js +1 -1
- package/dist/dianomiBidAdapter.js +1 -1
- package/dist/displayioBidAdapter.js +1 -1
- package/dist/dspxBidAdapter.js +1 -1
- package/dist/ebdrBidAdapter.js +1 -1
- package/dist/eplanningAnalyticsAdapter.js +1 -1
- package/dist/eplanningBidAdapter.js +1 -1
- package/dist/etargetBidAdapter.js +1 -1
- package/dist/euidIdSystem.js +1 -1
- package/dist/feedadBidAdapter.js +1 -1
- package/dist/finativeBidAdapter.js +1 -1
- package/dist/fintezaAnalyticsAdapter.js +1 -1
- package/dist/fluctBidAdapter.js +1 -1
- package/dist/freewheel-sspBidAdapter.js +1 -1
- package/dist/ftrackIdSystem.js +1 -1
- package/dist/gamoshiBidAdapter.js +1 -1
- package/dist/gdprEnforcement.js +1 -1
- package/dist/genericAnalyticsAdapter.js +1 -1
- package/dist/gmosspBidAdapter.js +1 -1
- package/dist/gnetBidAdapter.js +1 -1
- package/dist/goldbachBidAdapter.js +1 -1
- package/dist/gothamadsBidAdapter.js +1 -1
- package/dist/greenbidsAnalyticsAdapter.js +1 -1
- package/dist/greenbidsRtdProvider.js +1 -1
- package/dist/gridBidAdapter.js +1 -1
- package/dist/growthCodeAnalyticsAdapter.js +1 -1
- package/dist/gumgumBidAdapter.js +1 -1
- package/dist/h12mediaBidAdapter.js +1 -1
- package/dist/hadronAnalyticsAdapter.js +1 -1
- package/dist/holidBidAdapter.js +1 -1
- package/dist/hybridBidAdapter.js +1 -1
- package/dist/hypelabBidAdapter.js +1 -0
- package/dist/id5AnalyticsAdapter.js +1 -1
- package/dist/id5IdSystem.js +1 -1
- package/dist/imdsBidAdapter.js +1 -0
- package/dist/impactifyBidAdapter.js +1 -1
- package/dist/improvedigitalBidAdapter.js +1 -1
- package/dist/insticatorBidAdapter.js +1 -1
- package/dist/interactiveOffersBidAdapter.js +1 -1
- package/dist/invisiblyAnalyticsAdapter.js +1 -1
- package/dist/ixBidAdapter.js +1 -1
- package/dist/justpremiumBidAdapter.js +1 -1
- package/dist/kargoAnalyticsAdapter.js +1 -1
- package/dist/kargoBidAdapter.js +1 -1
- package/dist/keywords.js +1 -0
- package/dist/kinessoIdSystem.js +1 -1
- package/dist/koblerBidAdapter.js +1 -1
- package/dist/konduitAnalyticsAdapter.js +1 -1
- package/dist/kueezBidAdapter.js +1 -1
- package/dist/kueezRtbBidAdapter.js +1 -1
- package/dist/kulturemediaBidAdapter.js +1 -1
- package/dist/lassoBidAdapter.js +1 -1
- package/dist/lifestreetBidAdapter.js +1 -1
- package/dist/limelightDigitalBidAdapter.js +1 -1
- package/dist/liveIntentAnalyticsAdapter.js +1 -1
- package/dist/liveIntentIdSystem.js +1 -1
- package/dist/livewrappedAnalyticsAdapter.js +1 -1
- package/dist/livewrappedBidAdapter.js +1 -1
- package/dist/logicadBidAdapter.js +1 -1
- package/dist/loglyliftBidAdapter.js +1 -1
- package/dist/lotamePanoramaIdSystem.js +1 -1
- package/dist/luponmediaBidAdapter.js +1 -1
- package/dist/magniteAnalyticsAdapter.js +1 -1
- package/dist/malltvAnalyticsAdapter.js +1 -1
- package/dist/marsmediaAnalyticsAdapter.js +1 -1
- package/dist/marsmediaBidAdapter.js +1 -1
- package/dist/mediaforceBidAdapter.js +1 -1
- package/dist/mediafuseBidAdapter.js +1 -1
- package/dist/mediakeysBidAdapter.js +1 -1
- package/dist/medianetAnalyticsAdapter.js +1 -1
- package/dist/medianetBidAdapter.js +1 -1
- package/dist/mediasniperBidAdapter.js +1 -1
- package/dist/mediasquareBidAdapter.js +1 -1
- package/dist/mgidBidAdapter.js +1 -1
- package/dist/microadBidAdapter.js +1 -1
- package/dist/minutemediaBidAdapter.js +1 -1
- package/dist/minutemediaplusBidAdapter.js +1 -1
- package/dist/newspassidBidAdapter.js +1 -1
- package/dist/nextMillenniumBidAdapter.js +1 -1
- package/dist/nexx360BidAdapter.js +1 -1
- package/dist/not-for-prod/prebid.js +293 -323
- package/dist/objectGuard.js +1 -1
- package/dist/oguryBidAdapter.js +1 -1
- package/dist/onetagBidAdapter.js +1 -1
- package/dist/ooloAnalyticsAdapter.js +1 -1
- package/dist/operaadsBidAdapter.js +1 -1
- package/dist/optidigitalBidAdapter.js +1 -1
- package/dist/optimonAnalyticsAdapter.js +1 -1
- package/dist/orbidderBidAdapter.js +1 -1
- package/dist/ortbConverter.js +1 -1
- package/dist/otmBidAdapter.js +1 -1
- package/dist/outbrainBidAdapter.js +1 -1
- package/dist/oxxionAnalyticsAdapter.js +1 -1
- package/dist/oxxionRtdProvider.js +1 -1
- package/dist/ozoneBidAdapter.js +1 -1
- package/dist/padsquadBidAdapter.js +1 -1
- package/dist/parrableIdSystem.js +1 -1
- package/dist/pbsExtensions.js +1 -1
- package/dist/pianoDmpAnalyticsAdapter.js +1 -1
- package/dist/pixfutureBidAdapter.js +1 -1
- package/dist/prebid-core.js +2 -2
- package/dist/prebidServerBidAdapter.js +1 -1
- package/dist/prebidmanagerAnalyticsAdapter.js +1 -1
- package/dist/priceFloors.js +1 -1
- package/dist/prismaBidAdapter.js +1 -1
- package/dist/proxistoreBidAdapter.js +1 -1
- package/dist/pubgeniusBidAdapter.js +1 -1
- package/dist/publinkIdSystem.js +1 -1
- package/dist/pubmaticAnalyticsAdapter.js +1 -1
- package/dist/pubmaticBidAdapter.js +1 -1
- package/dist/pubperfAnalyticsAdapter.js +1 -1
- package/dist/pubstackAnalyticsAdapter.js +1 -1
- package/dist/pubwiseAnalyticsAdapter.js +1 -1
- package/dist/pubwiseBidAdapter.js +1 -1
- package/dist/pubxaiAnalyticsAdapter.js +1 -1
- package/dist/pulsepointAnalyticsAdapter.js +1 -1
- package/dist/pxyzBidAdapter.js +1 -1
- package/dist/quantcastBidAdapter.js +1 -1
- package/dist/quantcastIdSystem.js +1 -1
- package/dist/rasBidAdapter.js +1 -1
- package/dist/readpeakBidAdapter.js +1 -1
- package/dist/relaidoBidAdapter.js +1 -1
- package/dist/relevantAnalyticsAdapter.js +1 -1
- package/dist/retailspotBidAdapter.js +1 -1
- package/dist/revcontentBidAdapter.js +1 -1
- package/dist/rhythmoneBidAdapter.js +1 -1
- package/dist/richaudienceBidAdapter.js +1 -1
- package/dist/riseBidAdapter.js +1 -1
- package/dist/rivrAnalyticsAdapter.js +1 -1
- package/dist/roxotAnalyticsAdapter.js +1 -1
- package/dist/rtbhouseBidAdapter.js +1 -1
- package/dist/rtdModule.js +1 -1
- package/dist/rubiconBidAdapter.js +1 -1
- package/dist/s2sTesting.js +1 -1
- package/dist/saambaaBidAdapter.js +1 -1
- package/dist/scaleableAnalyticsAdapter.js +1 -1
- package/dist/schain.js +1 -1
- package/dist/seedingAllianceBidAdapter.js +1 -1
- package/dist/seedtagBidAdapter.js +1 -1
- package/dist/sharedIdSystem.js +1 -1
- package/dist/sharethroughAnalyticsAdapter.js +1 -1
- package/dist/sharethroughBidAdapter.js +1 -1
- package/dist/shinezBidAdapter.js +1 -1
- package/dist/showheroes-bsBidAdapter.js +1 -1
- package/dist/sigmoidAnalyticsAdapter.js +1 -1
- package/dist/sizeMapping.js +1 -0
- package/dist/slimcutBidAdapter.js +1 -1
- package/dist/smaatoBidAdapter.js +1 -1
- package/dist/smartadserverBidAdapter.js +1 -1
- package/dist/smartxBidAdapter.js +1 -1
- package/dist/smartytechBidAdapter.js +1 -1
- package/dist/smilewantedBidAdapter.js +1 -1
- package/dist/sonobiAnalyticsAdapter.js +1 -1
- package/dist/sonobiBidAdapter.js +1 -1
- package/dist/sovrnAnalyticsAdapter.js +1 -1
- package/dist/sovrnBidAdapter.js +1 -1
- package/dist/sspBCBidAdapter.js +1 -1
- package/dist/staqAnalyticsAdapter.js +1 -1
- package/dist/stvBidAdapter.js +1 -1
- package/dist/sublimeBidAdapter.js +1 -1
- package/dist/taboolaBidAdapter.js +1 -1
- package/dist/tapadIdSystem.js +1 -1
- package/dist/tappxBidAdapter.js +1 -1
- package/dist/targetVideoBidAdapter.js +1 -1
- package/dist/teadsBidAdapter.js +1 -1
- package/dist/teadsIdSystem.js +1 -1
- package/dist/telariaBidAdapter.js +1 -1
- package/dist/terceptAnalyticsAdapter.js +1 -1
- package/dist/theAdxBidAdapter.js +1 -1
- package/dist/topicsFpdModule.js +1 -1
- package/dist/trionBidAdapter.js +1 -1
- package/dist/tripleliftBidAdapter.js +1 -1
- package/dist/ttdBidAdapter.js +1 -1
- package/dist/ucfunnelAnalyticsAdapter.js +1 -1
- package/dist/uid2IdSystem.js +1 -1
- package/dist/underdogmediaBidAdapter.js +1 -1
- package/dist/undertoneBidAdapter.js +1 -1
- package/dist/unicornBidAdapter.js +1 -1
- package/dist/unrulyBidAdapter.js +1 -1
- package/dist/userId.js +1 -1
- package/dist/utiqSystem.js +1 -0
- package/dist/vibrantmediaBidAdapter.js +1 -1
- package/dist/vidazooBidAdapter.js +1 -1
- package/dist/videobyteBidAdapter.js +1 -1
- package/dist/videojsVideoProvider.js +1 -1
- package/dist/videoreachBidAdapter.js +1 -1
- package/dist/visxBidAdapter.js +1 -1
- package/dist/vrtcalBidAdapter.js +1 -1
- package/dist/vuukleBidAdapter.js +1 -1
- package/dist/weboramaRtdProvider.js +1 -1
- package/dist/widespaceBidAdapter.js +1 -1
- package/dist/winrBidAdapter.js +1 -1
- package/dist/xeBidAdapter.js +1 -1
- package/dist/yahoosspBidAdapter.js +1 -1
- package/dist/yieldliftBidAdapter.js +1 -1
- package/dist/yieldmoBidAdapter.js +1 -1
- package/dist/yieldoneAnalyticsAdapter.js +1 -1
- package/dist/yieldoneBidAdapter.js +1 -1
- package/dist/yuktamediaAnalyticsAdapter.js +1 -1
- package/dist/zetaBidAdapter.js +1 -1
- package/dist/zeta_global_sspAnalyticsAdapter.js +1 -1
- package/dist/zeta_global_sspBidAdapter.js +1 -1
- package/libraries/analyticsAdapter/AnalyticsAdapter.js +1 -7
- package/libraries/appnexusKeywords/anKeywords.js +140 -0
- package/libraries/categoryTranslationMapping/index.js +100 -0
- package/libraries/keywords/keywords.js +31 -0
- package/libraries/objectGuard/objectGuard.js +2 -11
- package/libraries/ortbConverter/processors/default.js +3 -4
- package/modules/.submodules.json +1 -1
- package/modules/1plusXRtdProvider.js +4 -14
- package/modules/33acrossBidAdapter.js +11 -11
- package/modules/adWMGBidAdapter.js +2 -1
- package/modules/adagioBidAdapter.js +18 -30
- package/modules/adbookpspBidAdapter.js +1 -1
- package/modules/addefendBidAdapter.js +1 -0
- package/modules/adfBidAdapter.js +3 -3
- package/modules/adgenerationBidAdapter.js +1 -1
- package/modules/adhashBidAdapter.js +56 -34
- package/modules/adkernelAdnBidAdapter.js +5 -6
- package/modules/adkernelBidAdapter.js +5 -5
- package/modules/adprimeBidAdapter.js +2 -1
- package/modules/adqueryBidAdapter.js +1 -0
- package/modules/adrelevantisBidAdapter.js +3 -24
- package/modules/adtrueBidAdapter.js +2 -2
- package/modules/aduptechBidAdapter.js +2 -1
- package/modules/advangelistsBidAdapter.js +0 -1
- package/modules/adxcgBidAdapter.js +1 -1
- package/modules/adyoulikeBidAdapter.js +1 -1
- package/modules/afpBidAdapter.js +2 -2
- package/modules/aidemBidAdapter.js +16 -3
- package/modules/airgridRtdProvider.js +24 -53
- package/modules/ajaBidAdapter.js +1 -1
- package/modules/alkimiBidAdapter.js +2 -1
- package/modules/amxBidAdapter.js +1 -0
- package/modules/apacdexBidAdapter.js +3 -3
- package/modules/appnexusBidAdapter.js +16 -114
- package/modules/apstreamBidAdapter.js +1 -0
- package/modules/asoBidAdapter.js +1 -1
- package/modules/astraoneBidAdapter.js +1 -1
- package/modules/audiencerunBidAdapter.js +2 -1
- package/modules/automatadBidAdapter.js +5 -5
- package/modules/beachfrontBidAdapter.js +0 -1
- package/modules/beopBidAdapter.js +20 -17
- package/modules/betweenBidAdapter.js +2 -1
- package/modules/bizzclickBidAdapter.js +9 -6
- package/modules/bliinkBidAdapter.js +1 -0
- package/modules/bluebillywigBidAdapter.js +2 -2
- package/modules/braveBidAdapter.js +9 -7
- package/modules/browsiBidAdapter.js +3 -3
- package/modules/{emx_digitalBidAdapter.js → cadentApertureMXBidAdapter.js} +61 -56
- package/modules/{emx_digitalBidAdapter.md → cadentApertureMXBidAdapter.md} +6 -6
- package/modules/carodaBidAdapter.js +1 -0
- package/modules/ccxBidAdapter.js +1 -1
- package/modules/cleanmedianetBidAdapter.js +3 -3
- package/modules/codefuelBidAdapter.js +1 -1
- package/modules/colossussspBidAdapter.js +1 -1
- package/modules/concertBidAdapter.js +1 -1
- package/modules/connectadBidAdapter.js +1 -0
- package/modules/conversantAnalyticsAdapter.js +2 -0
- package/modules/conversantBidAdapter.js +22 -6
- package/modules/craftBidAdapter.js +6 -28
- package/modules/criteoBidAdapter.js +12 -9
- package/modules/currency.js +3 -3
- package/modules/dailyhuntBidAdapter.js +2 -2
- package/modules/datablocksBidAdapter.js +10 -8
- package/modules/datawrkzBidAdapter.js +0 -6
- package/modules/deltaprojectsBidAdapter.js +12 -3
- package/modules/dianomiBidAdapter.js +1 -1
- package/modules/discoveryBidAdapter.js +1 -0
- package/modules/displayioBidAdapter.js +2 -1
- package/modules/dspxBidAdapter.js +1 -0
- package/modules/ebdrBidAdapter.js +3 -2
- package/modules/etargetBidAdapter.js +1 -2
- package/modules/feedadBidAdapter.js +1 -1
- package/modules/finativeBidAdapter.js +8 -8
- package/modules/fluctBidAdapter.js +1 -2
- package/modules/gamoshiBidAdapter.js +3 -3
- package/modules/gdprEnforcement.js +0 -15
- package/modules/genericAnalyticsAdapter.js +0 -5
- package/modules/glomexBidAdapter.js +1 -0
- package/modules/gmosspBidAdapter.js +1 -1
- package/modules/gnetBidAdapter.js +1 -1
- package/modules/goldbachBidAdapter.js +7 -45
- package/modules/gothamadsBidAdapter.js +4 -3
- package/modules/gridBidAdapter.js +20 -421
- package/modules/gumgumBidAdapter.js +1 -2
- package/modules/h12mediaBidAdapter.js +1 -1
- package/modules/holidBidAdapter.js +8 -13
- package/modules/hybridBidAdapter.js +2 -2
- package/modules/hypelabBidAdapter.js +153 -0
- package/modules/hypelabBidAdapter.md +38 -0
- package/modules/{synacormediaBidAdapter.js → imdsBidAdapter.js} +11 -8
- package/modules/{synacormediaBidAdapter.md → imdsBidAdapter.md} +5 -5
- package/modules/impactifyBidAdapter.js +6 -6
- package/modules/improvedigitalBidAdapter.js +1 -2
- package/modules/innityBidAdapter.js +1 -0
- package/modules/insticatorBidAdapter.js +1 -1
- package/modules/interactiveOffersBidAdapter.js +5 -4
- package/modules/iqmBidAdapter.js +1 -0
- package/modules/ixBidAdapter.js +74 -75
- package/modules/jixieBidAdapter.js +1 -0
- package/modules/kargoBidAdapter.js +1 -1
- package/modules/koblerBidAdapter.js +2 -1
- package/modules/kueezBidAdapter.js +1 -1
- package/modules/kueezRtbBidAdapter.js +1 -0
- package/modules/kulturemediaBidAdapter.js +7 -7
- package/modules/lassoBidAdapter.js +2 -1
- package/modules/limelightDigitalBidAdapter.js +1 -1
- package/modules/livewrappedBidAdapter.js +2 -2
- package/modules/logicadBidAdapter.js +2 -1
- package/modules/loglyliftBidAdapter.js +2 -1
- package/modules/luponmediaBidAdapter.js +16 -4
- package/modules/magniteAnalyticsAdapter.js +61 -72
- package/modules/malltvBidAdapter.js +1 -0
- package/modules/mediaforceBidAdapter.js +2 -1
- package/modules/mediafuseBidAdapter.js +45 -62
- package/modules/mediagoBidAdapter.js +1 -0
- package/modules/mediakeysBidAdapter.js +3 -5
- package/modules/medianetBidAdapter.js +2 -1
- package/modules/mediasniperBidAdapter.js +1 -2
- package/modules/mediasquareBidAdapter.js +2 -1
- package/modules/microadBidAdapter.js +1 -9
- package/modules/minutemediaBidAdapter.js +2 -2
- package/modules/minutemediaplusBidAdapter.js +3 -2
- package/modules/newspassidBidAdapter.js +6 -4
- package/modules/nextMillenniumBidAdapter.js +10 -9
- package/modules/oguryBidAdapter.js +5 -5
- package/modules/onetagBidAdapter.js +2 -1
- package/modules/operaadsBidAdapter.js +2 -2
- package/modules/optidigitalBidAdapter.js +2 -2
- package/modules/orbidderBidAdapter.js +2 -1
- package/modules/otmBidAdapter.js +2 -2
- package/modules/outbrainBidAdapter.js +9 -11
- package/modules/oxxionRtdProvider.js +7 -29
- package/modules/ozoneBidAdapter.js +2 -1
- package/modules/padsquadBidAdapter.js +2 -2
- package/modules/pixfutureBidAdapter.js +12 -36
- package/modules/prebidServerBidAdapter/index.js +1 -3
- package/modules/prebidServerBidAdapter/ortbConverter.js +34 -5
- package/modules/priceFloors.js +7 -7
- package/modules/prismaBidAdapter.js +4 -3
- package/modules/proxistoreBidAdapter.js +2 -1
- package/modules/pubgeniusBidAdapter.js +5 -5
- package/modules/pubmaticAnalyticsAdapter.js +31 -12
- package/modules/pubmaticBidAdapter.js +6 -4
- package/modules/pubwiseBidAdapter.js +6 -5
- package/modules/pxyzBidAdapter.js +4 -4
- package/modules/rasBidAdapter.js +4 -2
- package/modules/readpeakBidAdapter.js +1 -1
- package/modules/relaidoBidAdapter.js +2 -1
- package/modules/resetdigitalBidAdapter.js +1 -0
- package/modules/revcontentBidAdapter.js +6 -7
- package/modules/rhythmoneBidAdapter.js +0 -2
- package/modules/richaudienceBidAdapter.js +6 -4
- package/modules/riseBidAdapter.js +1 -1
- package/modules/rtbhouseBidAdapter.js +5 -5
- package/modules/rtbsapeBidAdapter.js +1 -0
- package/modules/rubiconBidAdapter.js +8 -11
- package/modules/saambaaBidAdapter.js +0 -1
- package/modules/seedingAllianceBidAdapter.js +6 -7
- package/modules/seedtagBidAdapter.js +1 -1
- package/modules/sharethroughBidAdapter.js +1 -1
- package/modules/shinezBidAdapter.js +435 -435
- package/modules/showheroes-bsBidAdapter.js +1 -1
- package/{src → modules}/sizeMapping.js +46 -32
- package/modules/slimcutBidAdapter.js +2 -2
- package/modules/smaatoBidAdapter.js +16 -3
- package/modules/smartadserverBidAdapter.js +1 -1
- package/modules/smarticoBidAdapter.js +1 -0
- package/modules/smartytechBidAdapter.js +0 -1
- package/modules/smilewantedBidAdapter.js +2 -2
- package/modules/sonobiBidAdapter.js +2 -1
- package/modules/sspBCBidAdapter.js +1 -1
- package/modules/stroeerCoreBidAdapter.js +1 -0
- package/modules/sublimeBidAdapter.js +1 -0
- package/modules/taboolaBidAdapter.js +3 -3
- package/modules/talkadsBidAdapter.js +1 -0
- package/modules/tappxBidAdapter.js +1 -1
- package/modules/teadsBidAdapter.js +1 -2
- package/modules/telariaBidAdapter.js +1 -1
- package/modules/theAdxBidAdapter.js +1 -1
- package/modules/topicsFpdModule.js +4 -1
- package/modules/tpmnBidAdapter.js +1 -0
- package/modules/truereachBidAdapter.js +1 -0
- package/modules/ttdBidAdapter.js +3 -3
- package/modules/underdogmediaBidAdapter.js +0 -1
- package/modules/unicornBidAdapter.js +1 -1
- package/modules/unrulyBidAdapter.js +1 -1
- package/modules/userId/eids.js +3 -3
- package/modules/userId/eids.md +1 -1
- package/modules/userId/index.js +2 -19
- package/modules/userId/userId.md +12 -10
- package/modules/utiqSystem.js +129 -0
- package/modules/{trustpidSystem.md → utiqSystem.md} +7 -7
- package/modules/vdoaiBidAdapter.js +1 -0
- package/modules/vibrantmediaBidAdapter.js +1 -1
- package/modules/vidazooBidAdapter.js +3 -2
- package/modules/videobyteBidAdapter.js +0 -1
- package/modules/videoheroesBidAdapter.js +2 -0
- package/modules/videojsVideoProvider.js +2 -0
- package/modules/videoreachBidAdapter.js +2 -1
- package/modules/vlybyBidAdapter.js +1 -0
- package/modules/voxBidAdapter.js +2 -0
- package/modules/vrtcalBidAdapter.js +6 -1
- package/modules/winrBidAdapter.js +4 -25
- package/modules/xeBidAdapter.js +2 -1
- package/modules/yieldliftBidAdapter.js +2 -2
- package/modules/yieldmoBidAdapter.js +1 -0
- package/modules/yieldoneBidAdapter.js +1 -1
- package/modules/zetaBidAdapter.js +4 -9
- package/modules/zeta_global_sspBidAdapter.js +1 -1
- package/package.json +1 -1
- package/src/activities/activities.js +5 -0
- package/src/activities/redactor.js +36 -8
- package/src/adapterManager.js +31 -20
- package/src/adapters/bidderFactory.js +41 -91
- package/src/auction.js +5 -21
- package/src/constants.json +1 -2
- package/src/utils.js +2 -34
- package/test/fixtures/fixtures.js +0 -7
- package/test/pages/banner.html +1 -0
- package/test/pages/bidderSettings.html +1 -0
- package/test/pages/consent_mgt_gdpr.html +1 -0
- package/test/pages/currency.html +1 -0
- package/test/pages/instream.html +1 -0
- package/test/pages/multiple_bidders.html +1 -1
- package/test/pages/native.html +1 -0
- package/test/pages/outstream.html +4 -1
- package/test/spec/activities/redactor_spec.js +10 -2
- package/test/spec/appnexusKeywords_spec.js +70 -0
- package/test/spec/auctionmanager_spec.js +11 -22
- package/test/spec/keywords_spec.js +102 -0
- package/test/spec/modules/1plusXRtdProvider_spec.js +17 -18
- package/test/spec/modules/33acrossBidAdapter_spec.js +49 -73
- package/test/spec/modules/adagioBidAdapter_spec.js +15 -24
- package/test/spec/modules/adbookpspBidAdapter_spec.js +5 -0
- package/test/spec/modules/adfBidAdapter_spec.js +4 -1
- package/test/spec/modules/adhashBidAdapter_spec.js +18 -2
- package/test/spec/modules/adkernelAdnBidAdapter_spec.js +1 -3
- package/test/spec/modules/adrelevantisBidAdapter_spec.js +0 -9
- package/test/spec/modules/adriverBidAdapter_spec.js +0 -9
- package/test/spec/modules/adtrueBidAdapter_spec.js +11 -7
- package/test/spec/modules/aduptechBidAdapter_spec.js +26 -8
- package/test/spec/modules/advangelistsBidAdapter_spec.js +0 -1
- package/test/spec/modules/adxcgBidAdapter_spec.js +4 -1
- package/test/spec/modules/adyoulikeBidAdapter_spec.js +50 -10
- package/test/spec/modules/afpBidAdapter_spec.js +5 -1
- package/test/spec/modules/aidemBidAdapter_spec.js +10 -2
- package/test/spec/modules/airgridRtdProvider_spec.js +9 -59
- package/test/spec/modules/apacdexBidAdapter_spec.js +2 -2
- package/test/spec/modules/appnexusBidAdapter_spec.js +100 -27
- package/test/spec/modules/astraoneBidAdapter_spec.js +5 -1
- package/test/spec/modules/beachfrontBidAdapter_spec.js +0 -1
- package/test/spec/modules/big-richmediaBidAdapter_spec.js +0 -10
- package/test/spec/modules/bluebillywigBidAdapter_spec.js +12 -10
- package/test/spec/modules/browsiBidAdapter_spec.js +6 -3
- package/test/spec/modules/{emx_digitalBidAdapter_spec.js → cadentApertureMXBidAdapter_spec.js} +16 -16
- package/test/spec/modules/ccxBidAdapter_spec.js +1 -1
- package/test/spec/modules/cleanmedianetBidAdapter_spec.js +2 -2
- package/test/spec/modules/codefuelBidAdapter_spec.js +10 -1
- package/test/spec/modules/colossussspBidAdapter_spec.js +1 -1
- package/test/spec/modules/concertBidAdapter_spec.js +5 -1
- package/test/spec/modules/conversantBidAdapter_spec.js +7 -2
- package/test/spec/modules/criteoBidAdapter_spec.js +78 -8
- package/test/spec/modules/currency_spec.js +12 -12
- package/test/spec/modules/datawrkzBidAdapter_spec.js +0 -4
- package/test/spec/modules/dianomiBidAdapter_spec.js +1 -1
- package/test/spec/modules/etargetBidAdapter_spec.js +35 -8
- package/test/spec/modules/euidIdSystem_spec.js +0 -7
- package/test/spec/modules/feedadBidAdapter_spec.js +5 -1
- package/test/spec/modules/finativeBidAdapter_spec.js +0 -12
- package/test/spec/modules/fluctBidAdapter_spec.js +0 -2
- package/test/spec/modules/gamoshiBidAdapter_spec.js +5 -2
- package/test/spec/modules/gmosspBidAdapter_spec.js +5 -1
- package/test/spec/modules/gnetBidAdapter_spec.js +5 -1
- package/test/spec/modules/goldbachBidAdapter_spec.js +0 -10
- package/test/spec/modules/gridBidAdapter_spec.js +42 -302
- package/test/spec/modules/hybridBidAdapter_spec.js +5 -1
- package/test/spec/modules/hypelabBidAdapter_spec.js +281 -0
- package/test/spec/modules/{synacormediaBidAdapter_spec.js → imdsBidAdapter_spec.js} +19 -19
- package/test/spec/modules/improvedigitalBidAdapter_spec.js +6 -1
- package/test/spec/modules/insticatorBidAdapter_spec.js +6 -2
- package/test/spec/modules/invisiblyAnalyticsAdapter_spec.js +1 -1
- package/test/spec/modules/ivsBidAdapter_spec.js +0 -2
- package/test/spec/modules/ixBidAdapter_spec.js +8 -3
- package/test/spec/modules/kargoBidAdapter_spec.js +3 -3
- package/test/spec/modules/koblerBidAdapter_spec.js +13 -2
- package/test/spec/modules/kulturemediaBidAdapter_spec.js +0 -1
- package/test/spec/modules/limelightDigitalBidAdapter_spec.js +21 -5
- package/test/spec/modules/livewrappedAnalyticsAdapter_spec.js +1 -1
- package/test/spec/modules/livewrappedBidAdapter_spec.js +5 -6
- package/test/spec/modules/loglyliftBidAdapter_spec.js +10 -0
- package/test/spec/modules/luponmediaBidAdapter_spec.js +23 -2
- package/test/spec/modules/magniteAnalyticsAdapter_spec.js +93 -1
- package/test/spec/modules/mediaforceBidAdapter_spec.js +11 -3
- package/test/spec/modules/mediafuseBidAdapter_spec.js +2 -6
- package/test/spec/modules/mediakeysBidAdapter_spec.js +6 -2
- package/test/spec/modules/medianetBidAdapter_spec.js +86 -17
- package/test/spec/modules/mediasniperBidAdapter_spec.js +1 -1
- package/test/spec/modules/mediasquareBidAdapter_spec.js +5 -5
- package/test/spec/modules/microadBidAdapter_spec.js +7 -3
- package/test/spec/modules/minutemediaplusBidAdapter_spec.js +7 -3
- package/test/spec/modules/nextMillenniumBidAdapter_spec.js +2 -2
- package/test/spec/modules/nexx360BidAdapter_spec.js +0 -1
- package/test/spec/modules/oguryBidAdapter_spec.js +2 -1
- package/test/spec/modules/onetagBidAdapter_spec.js +5 -1
- package/test/spec/modules/openxBidAdapter_spec.js +1 -1
- package/test/spec/modules/operaadsBidAdapter_spec.js +5 -5
- package/test/spec/modules/optidigitalBidAdapter_spec.js +0 -2
- package/test/spec/modules/orbidderBidAdapter_spec.js +12 -4
- package/test/spec/modules/outbrainBidAdapter_spec.js +5 -0
- package/test/spec/modules/oxxionRtdProvider_spec.js +3 -2
- package/test/spec/modules/prebidServerBidAdapter_spec.js +114 -32
- package/test/spec/modules/priceFloors_spec.js +7 -25
- package/test/spec/modules/pubgeniusBidAdapter_spec.js +2 -1
- package/test/spec/modules/pubmaticAnalyticsAdapter_spec.js +7 -0
- package/test/spec/modules/pubmaticBidAdapter_spec.js +41 -32
- package/test/spec/modules/pubwiseBidAdapter_spec.js +10 -6
- package/test/spec/modules/relaidoBidAdapter_spec.js +6 -2
- package/test/spec/modules/revcontentBidAdapter_spec.js +0 -10
- package/test/spec/modules/richaudienceBidAdapter_spec.js +5 -1
- package/test/spec/modules/rubiconBidAdapter_spec.js +26 -7
- package/test/spec/modules/scatteredBidAdapter_spec.js +0 -2
- package/test/spec/modules/seedingAllianceAdapter_spec.js +0 -13
- package/test/spec/modules/seedtagBidAdapter_spec.js +5 -1
- package/test/spec/modules/sharethroughBidAdapter_spec.js +6 -2
- package/test/spec/modules/sizeMapping_spec.js +342 -0
- package/test/spec/modules/slimcutBidAdapter_spec.js +0 -1
- package/test/spec/modules/smaatoBidAdapter_spec.js +3 -2
- package/test/spec/modules/smartadserverBidAdapter_spec.js +15 -3
- package/test/spec/modules/smilewantedBidAdapter_spec.js +25 -6
- package/test/spec/modules/sspBCBidAdapter_spec.js +4 -4
- package/test/spec/modules/taboolaBidAdapter_spec.js +10 -12
- package/test/spec/modules/teadsBidAdapter_spec.js +7 -0
- package/test/spec/modules/terceptAnalyticsAdapter_spec.js +0 -1
- package/test/spec/modules/ttdBidAdapter_spec.js +13 -5
- package/test/spec/modules/uid2IdSystem_spec.js +0 -10
- package/test/spec/modules/underdogmediaBidAdapter_spec.js +0 -1
- package/test/spec/modules/utiqSystem_spec.js +188 -0
- package/test/spec/modules/vidazooBidAdapter_spec.js +6 -2
- package/test/spec/modules/videobyteBidAdapter_spec.js +0 -1
- package/test/spec/modules/vrtcalBidAdapter_spec.js +9 -2
- package/test/spec/modules/winrBidAdapter_spec.js +0 -9
- package/test/spec/modules/xeBidAdapter_spec.js +6 -2
- package/test/spec/unit/core/adapterManager_spec.js +69 -115
- package/test/spec/unit/core/bidderFactory_spec.js +80 -152
- package/test/spec/unit/core/targeting_spec.js +0 -6
- package/test/spec/utils_spec.js +21 -90
- package/dist/aolBidAdapter.js +0 -1
- package/dist/captifyRtdProvider.js +0 -1
- package/dist/emx_digitalBidAdapter.js +0 -1
- package/dist/glimpseBidAdapter.js +0 -1
- package/dist/googleAnalyticsAdapter.js +0 -1
- package/dist/inmarBidAdapter.js +0 -1
- package/dist/inskinBidAdapter.js +0 -1
- package/dist/liveyieldAnalyticsAdapter.js +0 -1
- package/dist/mass.js +0 -1
- package/dist/openxAnalyticsAdapter.js +0 -1
- package/dist/openxOrtbBidAdapter.js +0 -1
- package/dist/pubCommonId.js +0 -1
- package/dist/realvuAnalyticsAdapter.js +0 -1
- package/dist/rubiconAnalyticsAdapter.js +0 -1
- package/dist/synacormediaBidAdapter.js +0 -1
- package/dist/trustpidSystem.js +0 -1
- package/dist/viewability.js +0 -1
- package/dist/zeusPrimeRtdProvider.js +0 -21
- package/integrationExamples/gpt/captifyRtdProvider_example.html +0 -167
- package/integrationExamples/mass/index.html +0 -132
- package/modules/aolBidAdapter.js +0 -462
- package/modules/aolBidAdapter.md +0 -46
- package/modules/captifyRtdProvider.js +0 -146
- package/modules/captifyRtdProvider.md +0 -68
- package/modules/conversantAnalyticsAdapter.md +0 -46
- package/modules/conversantBidAdapter.md +0 -46
- package/modules/glimpseBidAdapter.js +0 -198
- package/modules/glimpseBidAdapter.md +0 -37
- package/modules/googleAnalyticsAdapter.js +0 -298
- package/modules/googleAnalyticsAdapter.md +0 -38
- package/modules/inmarBidAdapter.js +0 -132
- package/modules/inmarBidAdapter.md +0 -44
- package/modules/inskinBidAdapter.js +0 -391
- package/modules/inskinBidAdapter.md +0 -31
- package/modules/liveyieldAnalyticsAdapter.js +0 -454
- package/modules/liveyieldAnalyticsAdapter.md +0 -45
- package/modules/mass.js +0 -184
- package/modules/mass.md +0 -137
- package/modules/openxAnalyticsAdapter.js +0 -27
- package/modules/openxAnalyticsAdapter.md +0 -135
- package/modules/openxOrtbBidAdapter.js +0 -238
- package/modules/openxOrtbBidAdapter.md +0 -108
- package/modules/pubCommonId.js +0 -303
- package/modules/pubCommonId.md +0 -37
- package/modules/realvuAnalyticsAdapter.js +0 -976
- package/modules/realvuAnalyticsAdapter.md +0 -9
- package/modules/rubiconAnalyticsAdapter.js +0 -938
- package/modules/trustpidSystem.js +0 -143
- package/modules/viewability.js +0 -9
- package/modules/zeusPrimeRtdProvider.js +0 -37
- package/modules/zeusPrimeRtdProvider.md +0 -63
- package/test/spec/modules/aolBidAdapter_spec.js +0 -890
- package/test/spec/modules/captifyRtdProvider_spec.js +0 -253
- package/test/spec/modules/glimpseBidAdapter_spec.js +0 -422
- package/test/spec/modules/googleAnalyticsAdapter_spec.js +0 -27
- package/test/spec/modules/inmarBidAdapter_spec.js +0 -242
- package/test/spec/modules/inskinBidAdapter_spec.js +0 -386
- package/test/spec/modules/liveyieldAnalyticsAdapter_spec.js +0 -704
- package/test/spec/modules/mass_spec.js +0 -141
- package/test/spec/modules/openxAnalyticsAdapter_spec.js +0 -21
- package/test/spec/modules/openxOrtbBidAdapter_spec.js +0 -1615
- package/test/spec/modules/pubCommonId_spec.js +0 -353
- package/test/spec/modules/rubiconAnalyticsAdapter_spec.js +0 -2540
- package/test/spec/modules/rubiconAnalyticsSchema.json +0 -494
- package/test/spec/modules/trustpidSystem_spec.js +0 -237
- package/test/spec/sizeMapping_spec.js +0 -341
|
@@ -423,6 +423,8 @@ describe('33acrossBidAdapter:', function () {
|
|
|
423
423
|
this.build = () => bidRequests;
|
|
424
424
|
}
|
|
425
425
|
|
|
426
|
+
let bidderRequest;
|
|
427
|
+
|
|
426
428
|
beforeEach(function() {
|
|
427
429
|
element = {
|
|
428
430
|
x: 0,
|
|
@@ -476,12 +478,12 @@ describe('33acrossBidAdapter:', function () {
|
|
|
476
478
|
sandbox.stub(document, 'getElementById').returns(element);
|
|
477
479
|
sandbox.stub(utils, 'getWindowTop').returns(win);
|
|
478
480
|
sandbox.stub(utils, 'getWindowSelf').returns(win);
|
|
481
|
+
bidderRequest = {bidderRequestId: 'r1'};
|
|
479
482
|
});
|
|
480
483
|
|
|
481
484
|
afterEach(function() {
|
|
482
485
|
sandbox.restore();
|
|
483
486
|
});
|
|
484
|
-
|
|
485
487
|
describe('isBidRequestValid:', function() {
|
|
486
488
|
context('basic validation', function() {
|
|
487
489
|
it('returns true for valid bidder name values', function() {
|
|
@@ -770,7 +772,7 @@ describe('33acrossBidAdapter:', function () {
|
|
|
770
772
|
|
|
771
773
|
Object.assign(element, { width: 600, height: 400 });
|
|
772
774
|
|
|
773
|
-
const [ buildRequest ] = spec.buildRequests(bidRequests);
|
|
775
|
+
const [ buildRequest ] = spec.buildRequests(bidRequests, bidderRequest);
|
|
774
776
|
validateBuiltServerRequest(buildRequest, serverRequest);
|
|
775
777
|
});
|
|
776
778
|
});
|
|
@@ -788,7 +790,7 @@ describe('33acrossBidAdapter:', function () {
|
|
|
788
790
|
|
|
789
791
|
Object.assign(element, { x: -300, y: 0, width: 207, height: 320 });
|
|
790
792
|
|
|
791
|
-
const [ buildRequest ] = spec.buildRequests(bidRequests);
|
|
793
|
+
const [ buildRequest ] = spec.buildRequests(bidRequests, bidderRequest);
|
|
792
794
|
validateBuiltServerRequest(buildRequest, serverRequest);
|
|
793
795
|
});
|
|
794
796
|
});
|
|
@@ -806,7 +808,7 @@ describe('33acrossBidAdapter:', function () {
|
|
|
806
808
|
|
|
807
809
|
Object.assign(element, { width: 800, height: 800 });
|
|
808
810
|
|
|
809
|
-
const [ buildRequest ] = spec.buildRequests(bidRequests);
|
|
811
|
+
const [ buildRequest ] = spec.buildRequests(bidRequests, bidderRequest);
|
|
810
812
|
validateBuiltServerRequest(buildRequest, serverRequest);
|
|
811
813
|
});
|
|
812
814
|
});
|
|
@@ -826,7 +828,7 @@ describe('33acrossBidAdapter:', function () {
|
|
|
826
828
|
Object.assign(element, { width: 0, height: 0 });
|
|
827
829
|
bidRequests[0].mediaTypes.banner.sizes = [[800, 2400]];
|
|
828
830
|
|
|
829
|
-
const [ buildRequest ] = spec.buildRequests(bidRequests);
|
|
831
|
+
const [ buildRequest ] = spec.buildRequests(bidRequests, bidderRequest);
|
|
830
832
|
validateBuiltServerRequest(buildRequest, serverRequest);
|
|
831
833
|
});
|
|
832
834
|
});
|
|
@@ -849,7 +851,7 @@ describe('33acrossBidAdapter:', function () {
|
|
|
849
851
|
sandbox.stub(utils, 'getWindowTop').returns({});
|
|
850
852
|
sandbox.stub(utils, 'getWindowSelf').returns(win);
|
|
851
853
|
|
|
852
|
-
const [ buildRequest ] = spec.buildRequests(bidRequests);
|
|
854
|
+
const [ buildRequest ] = spec.buildRequests(bidRequests, bidderRequest);
|
|
853
855
|
validateBuiltServerRequest(buildRequest, serverRequest);
|
|
854
856
|
});
|
|
855
857
|
|
|
@@ -890,7 +892,7 @@ describe('33acrossBidAdapter:', function () {
|
|
|
890
892
|
}
|
|
891
893
|
});
|
|
892
894
|
|
|
893
|
-
const [ buildRequest ] = spec.buildRequests(bidRequests);
|
|
895
|
+
const [ buildRequest ] = spec.buildRequests(bidRequests, bidderRequest);
|
|
894
896
|
validateBuiltServerRequest(buildRequest, serverRequest);
|
|
895
897
|
});
|
|
896
898
|
});
|
|
@@ -938,7 +940,7 @@ describe('33acrossBidAdapter:', function () {
|
|
|
938
940
|
}
|
|
939
941
|
});
|
|
940
942
|
|
|
941
|
-
const [ buildRequest ] = spec.buildRequests(bidRequests);
|
|
943
|
+
const [ buildRequest ] = spec.buildRequests(bidRequests, bidderRequest);
|
|
942
944
|
validateBuiltServerRequest(buildRequest, serverRequest);
|
|
943
945
|
});
|
|
944
946
|
});
|
|
@@ -964,7 +966,7 @@ describe('33acrossBidAdapter:', function () {
|
|
|
964
966
|
win.screen.width = 1024;
|
|
965
967
|
win.screen.height = 728;
|
|
966
968
|
|
|
967
|
-
const [ buildRequest ] = spec.buildRequests(bidRequests);
|
|
969
|
+
const [ buildRequest ] = spec.buildRequests(bidRequests, {bidderRequestId: 'r1'});
|
|
968
970
|
|
|
969
971
|
validateBuiltServerRequest(buildRequest, serverRequest);
|
|
970
972
|
});
|
|
@@ -993,7 +995,7 @@ describe('33acrossBidAdapter:', function () {
|
|
|
993
995
|
win.innerHeight = 728;
|
|
994
996
|
win.innerWidth = 727;
|
|
995
997
|
|
|
996
|
-
const [ buildRequest ] = spec.buildRequests(bidRequests);
|
|
998
|
+
const [ buildRequest ] = spec.buildRequests(bidRequests, bidderRequest);
|
|
997
999
|
|
|
998
1000
|
validateBuiltServerRequest(buildRequest, serverRequest);
|
|
999
1001
|
});
|
|
@@ -1016,16 +1018,15 @@ describe('33acrossBidAdapter:', function () {
|
|
|
1016
1018
|
win.document.visibilityState = 'hidden';
|
|
1017
1019
|
sandbox.stub(utils, 'getWindowTop').returns(win);
|
|
1018
1020
|
|
|
1019
|
-
const [ buildRequest ] = spec.buildRequests(bidRequests);
|
|
1021
|
+
const [ buildRequest ] = spec.buildRequests(bidRequests, bidderRequest);
|
|
1020
1022
|
validateBuiltServerRequest(buildRequest, serverRequest);
|
|
1021
1023
|
});
|
|
1022
1024
|
});
|
|
1023
1025
|
|
|
1024
1026
|
context('when gdpr consent data exists', function() {
|
|
1025
|
-
let bidderRequest;
|
|
1026
|
-
|
|
1027
1027
|
beforeEach(function() {
|
|
1028
1028
|
bidderRequest = {
|
|
1029
|
+
...bidderRequest,
|
|
1029
1030
|
gdprConsent: {
|
|
1030
1031
|
consentString: 'foobarMyPreference',
|
|
1031
1032
|
gdprApplies: true
|
|
@@ -1070,12 +1071,6 @@ describe('33acrossBidAdapter:', function () {
|
|
|
1070
1071
|
});
|
|
1071
1072
|
|
|
1072
1073
|
context('when gdpr consent data does not exist', function() {
|
|
1073
|
-
let bidderRequest;
|
|
1074
|
-
|
|
1075
|
-
beforeEach(function() {
|
|
1076
|
-
bidderRequest = {};
|
|
1077
|
-
});
|
|
1078
|
-
|
|
1079
1074
|
it('returns corresponding server requests with default gdpr consent data', function() {
|
|
1080
1075
|
const ttxRequest = new TtxRequestBuilder()
|
|
1081
1076
|
.withBanner()
|
|
@@ -1111,10 +1106,9 @@ describe('33acrossBidAdapter:', function () {
|
|
|
1111
1106
|
});
|
|
1112
1107
|
|
|
1113
1108
|
context('when us_privacy consent data exists', function() {
|
|
1114
|
-
let bidderRequest;
|
|
1115
|
-
|
|
1116
1109
|
beforeEach(function() {
|
|
1117
1110
|
bidderRequest = {
|
|
1111
|
+
...bidderRequest,
|
|
1118
1112
|
uspConsent: 'foo'
|
|
1119
1113
|
}
|
|
1120
1114
|
});
|
|
@@ -1156,12 +1150,6 @@ describe('33acrossBidAdapter:', function () {
|
|
|
1156
1150
|
});
|
|
1157
1151
|
|
|
1158
1152
|
context('when us_privacy consent data does not exist', function() {
|
|
1159
|
-
let bidderRequest;
|
|
1160
|
-
|
|
1161
|
-
beforeEach(function() {
|
|
1162
|
-
bidderRequest = {};
|
|
1163
|
-
});
|
|
1164
|
-
|
|
1165
1153
|
it('returns corresponding server requests with default us_privacy data', function() {
|
|
1166
1154
|
const ttxRequest = new TtxRequestBuilder()
|
|
1167
1155
|
.withBanner()
|
|
@@ -1199,7 +1187,8 @@ describe('33acrossBidAdapter:', function () {
|
|
|
1199
1187
|
context('when refererInfo values are available', function() {
|
|
1200
1188
|
context('when refererInfo.page is defined', function() {
|
|
1201
1189
|
it('returns corresponding server requests with site.page set', function() {
|
|
1202
|
-
|
|
1190
|
+
bidderRequest = {
|
|
1191
|
+
...bidderRequest,
|
|
1203
1192
|
refererInfo: {
|
|
1204
1193
|
page: 'http://foo.com/bar'
|
|
1205
1194
|
}
|
|
@@ -1222,7 +1211,8 @@ describe('33acrossBidAdapter:', function () {
|
|
|
1222
1211
|
|
|
1223
1212
|
context('when refererInfo.ref is defined', function() {
|
|
1224
1213
|
it('returns corresponding server requests with site.ref set', function() {
|
|
1225
|
-
|
|
1214
|
+
bidderRequest = {
|
|
1215
|
+
...bidderRequest,
|
|
1226
1216
|
refererInfo: {
|
|
1227
1217
|
ref: 'google.com'
|
|
1228
1218
|
}
|
|
@@ -1245,12 +1235,6 @@ describe('33acrossBidAdapter:', function () {
|
|
|
1245
1235
|
});
|
|
1246
1236
|
|
|
1247
1237
|
context('when Global Placement ID (gpid) is defined', function() {
|
|
1248
|
-
let bidderRequest;
|
|
1249
|
-
|
|
1250
|
-
beforeEach(function() {
|
|
1251
|
-
bidderRequest = {};
|
|
1252
|
-
});
|
|
1253
|
-
|
|
1254
1238
|
it('passes the Global Placement ID (gpid) in the request', function() {
|
|
1255
1239
|
const ttxRequest = new TtxRequestBuilder()
|
|
1256
1240
|
.withBanner()
|
|
@@ -1281,9 +1265,7 @@ describe('33acrossBidAdapter:', function () {
|
|
|
1281
1265
|
|
|
1282
1266
|
context('when referer value is not available', function() {
|
|
1283
1267
|
it('returns corresponding server requests without site.page and site.ref set', function() {
|
|
1284
|
-
|
|
1285
|
-
refererInfo: {}
|
|
1286
|
-
};
|
|
1268
|
+
bidderRequest.refererInfo = {};
|
|
1287
1269
|
|
|
1288
1270
|
const ttxRequest = new TtxRequestBuilder()
|
|
1289
1271
|
.withBanner()
|
|
@@ -1347,7 +1329,7 @@ describe('33acrossBidAdapter:', function () {
|
|
|
1347
1329
|
.withData(ttxRequest)
|
|
1348
1330
|
.build();
|
|
1349
1331
|
|
|
1350
|
-
const [ builtServerRequest ] = spec.buildRequests(bidRequests,
|
|
1332
|
+
const [ builtServerRequest ] = spec.buildRequests(bidRequests, bidderRequest);
|
|
1351
1333
|
|
|
1352
1334
|
validateBuiltServerRequest(builtServerRequest, serverRequest);
|
|
1353
1335
|
});
|
|
@@ -1365,7 +1347,7 @@ describe('33acrossBidAdapter:', function () {
|
|
|
1365
1347
|
.withData(ttxRequest)
|
|
1366
1348
|
.build();
|
|
1367
1349
|
|
|
1368
|
-
const [ builtServerRequest ] = spec.buildRequests(bidRequests,
|
|
1350
|
+
const [ builtServerRequest ] = spec.buildRequests(bidRequests, bidderRequest);
|
|
1369
1351
|
|
|
1370
1352
|
validateBuiltServerRequest(builtServerRequest, serverRequest);
|
|
1371
1353
|
});
|
|
@@ -1380,7 +1362,7 @@ describe('33acrossBidAdapter:', function () {
|
|
|
1380
1362
|
const serverRequest = new ServerRequestBuilder()
|
|
1381
1363
|
.withData(ttxRequest)
|
|
1382
1364
|
.build();
|
|
1383
|
-
const [ builtServerRequest ] = spec.buildRequests(bidRequests,
|
|
1365
|
+
const [ builtServerRequest ] = spec.buildRequests(bidRequests, bidderRequest);
|
|
1384
1366
|
|
|
1385
1367
|
validateBuiltServerRequest(builtServerRequest, serverRequest);
|
|
1386
1368
|
});
|
|
@@ -1397,7 +1379,7 @@ describe('33acrossBidAdapter:', function () {
|
|
|
1397
1379
|
const serverRequest = new ServerRequestBuilder()
|
|
1398
1380
|
.withData(ttxRequest)
|
|
1399
1381
|
.build();
|
|
1400
|
-
const [ builtServerRequest ] = spec.buildRequests(bidRequests,
|
|
1382
|
+
const [ builtServerRequest ] = spec.buildRequests(bidRequests, bidderRequest);
|
|
1401
1383
|
|
|
1402
1384
|
validateBuiltServerRequest(builtServerRequest, serverRequest);
|
|
1403
1385
|
});
|
|
@@ -1422,7 +1404,7 @@ describe('33acrossBidAdapter:', function () {
|
|
|
1422
1404
|
const serverRequest = new ServerRequestBuilder()
|
|
1423
1405
|
.withData(ttxRequest)
|
|
1424
1406
|
.build();
|
|
1425
|
-
const [ builtServerRequest ] = spec.buildRequests(bidRequests,
|
|
1407
|
+
const [ builtServerRequest ] = spec.buildRequests(bidRequests, bidderRequest);
|
|
1426
1408
|
|
|
1427
1409
|
validateBuiltServerRequest(builtServerRequest, serverRequest);
|
|
1428
1410
|
});
|
|
@@ -1447,7 +1429,7 @@ describe('33acrossBidAdapter:', function () {
|
|
|
1447
1429
|
const serverRequest = new ServerRequestBuilder()
|
|
1448
1430
|
.withData(ttxRequest)
|
|
1449
1431
|
.build();
|
|
1450
|
-
const [ builtServerRequest ] = spec.buildRequests(bidRequests,
|
|
1432
|
+
const [ builtServerRequest ] = spec.buildRequests(bidRequests, bidderRequest);
|
|
1451
1433
|
|
|
1452
1434
|
validateBuiltServerRequest(builtServerRequest, serverRequest);
|
|
1453
1435
|
});
|
|
@@ -1464,7 +1446,7 @@ describe('33acrossBidAdapter:', function () {
|
|
|
1464
1446
|
.withProduct('instream')
|
|
1465
1447
|
.build();
|
|
1466
1448
|
|
|
1467
|
-
const [ builtServerRequest ] = spec.buildRequests(bidRequests,
|
|
1449
|
+
const [ builtServerRequest ] = spec.buildRequests(bidRequests, bidderRequest);
|
|
1468
1450
|
|
|
1469
1451
|
expect(JSON.parse(builtServerRequest.data)).to.deep.equal(ttxRequest);
|
|
1470
1452
|
});
|
|
@@ -1488,7 +1470,7 @@ describe('33acrossBidAdapter:', function () {
|
|
|
1488
1470
|
const serverRequest = new ServerRequestBuilder()
|
|
1489
1471
|
.withData(ttxRequest)
|
|
1490
1472
|
.build();
|
|
1491
|
-
const [ builtServerRequest ] = spec.buildRequests(bidRequests,
|
|
1473
|
+
const [ builtServerRequest ] = spec.buildRequests(bidRequests, bidderRequest);
|
|
1492
1474
|
|
|
1493
1475
|
validateBuiltServerRequest(builtServerRequest, serverRequest);
|
|
1494
1476
|
});
|
|
@@ -1508,7 +1490,7 @@ describe('33acrossBidAdapter:', function () {
|
|
|
1508
1490
|
const serverRequest = new ServerRequestBuilder()
|
|
1509
1491
|
.withData(ttxRequest)
|
|
1510
1492
|
.build();
|
|
1511
|
-
const [ builtServerRequest ] = spec.buildRequests(bidRequests,
|
|
1493
|
+
const [ builtServerRequest ] = spec.buildRequests(bidRequests, bidderRequest);
|
|
1512
1494
|
|
|
1513
1495
|
validateBuiltServerRequest(builtServerRequest, serverRequest);
|
|
1514
1496
|
});
|
|
@@ -1530,7 +1512,7 @@ describe('33acrossBidAdapter:', function () {
|
|
|
1530
1512
|
const serverRequest = new ServerRequestBuilder()
|
|
1531
1513
|
.withData(ttxRequest)
|
|
1532
1514
|
.build();
|
|
1533
|
-
const [ builtServerRequest ] = spec.buildRequests(bidRequests,
|
|
1515
|
+
const [ builtServerRequest ] = spec.buildRequests(bidRequests, bidderRequest);
|
|
1534
1516
|
|
|
1535
1517
|
validateBuiltServerRequest(builtServerRequest, serverRequest);
|
|
1536
1518
|
});
|
|
@@ -1551,7 +1533,7 @@ describe('33acrossBidAdapter:', function () {
|
|
|
1551
1533
|
const serverRequest = new ServerRequestBuilder()
|
|
1552
1534
|
.withData(ttxRequest)
|
|
1553
1535
|
.build();
|
|
1554
|
-
const [ builtServerRequest ] = spec.buildRequests(bidRequests,
|
|
1536
|
+
const [ builtServerRequest ] = spec.buildRequests(bidRequests, bidderRequest);
|
|
1555
1537
|
|
|
1556
1538
|
validateBuiltServerRequest(builtServerRequest, serverRequest);
|
|
1557
1539
|
});
|
|
@@ -1575,7 +1557,7 @@ describe('33acrossBidAdapter:', function () {
|
|
|
1575
1557
|
const serverRequest = new ServerRequestBuilder()
|
|
1576
1558
|
.withData(ttxRequest)
|
|
1577
1559
|
.build();
|
|
1578
|
-
const [ builtServerRequest ] = spec.buildRequests(bidRequests,
|
|
1560
|
+
const [ builtServerRequest ] = spec.buildRequests(bidRequests, bidderRequest);
|
|
1579
1561
|
|
|
1580
1562
|
validateBuiltServerRequest(builtServerRequest, serverRequest);
|
|
1581
1563
|
});
|
|
@@ -1599,7 +1581,7 @@ describe('33acrossBidAdapter:', function () {
|
|
|
1599
1581
|
const serverRequest = new ServerRequestBuilder()
|
|
1600
1582
|
.withData(ttxRequest)
|
|
1601
1583
|
.build();
|
|
1602
|
-
const [ builtServerRequest ] = spec.buildRequests(bidRequests,
|
|
1584
|
+
const [ builtServerRequest ] = spec.buildRequests(bidRequests, bidderRequest);
|
|
1603
1585
|
|
|
1604
1586
|
validateBuiltServerRequest(builtServerRequest, serverRequest);
|
|
1605
1587
|
});
|
|
@@ -1620,7 +1602,7 @@ describe('33acrossBidAdapter:', function () {
|
|
|
1620
1602
|
.withProduct()
|
|
1621
1603
|
.build();
|
|
1622
1604
|
|
|
1623
|
-
const [ builtServerRequest ] = spec.buildRequests(bidRequests,
|
|
1605
|
+
const [ builtServerRequest ] = spec.buildRequests(bidRequests, bidderRequest);
|
|
1624
1606
|
|
|
1625
1607
|
expect(JSON.parse(builtServerRequest.data)).to.deep.equal(ttxRequest);
|
|
1626
1608
|
});
|
|
@@ -1648,7 +1630,7 @@ describe('33acrossBidAdapter:', function () {
|
|
|
1648
1630
|
.withFloors('video', [ 1.0 ])
|
|
1649
1631
|
.build();
|
|
1650
1632
|
|
|
1651
|
-
const [ builtServerRequest ] = spec.buildRequests(bidRequests,
|
|
1633
|
+
const [ builtServerRequest ] = spec.buildRequests(bidRequests, bidderRequest);
|
|
1652
1634
|
|
|
1653
1635
|
expect(JSON.parse(builtServerRequest.data)).to.deep.equal(ttxRequest);
|
|
1654
1636
|
});
|
|
@@ -1690,7 +1672,7 @@ describe('33acrossBidAdapter:', function () {
|
|
|
1690
1672
|
.withProduct()
|
|
1691
1673
|
.build();
|
|
1692
1674
|
|
|
1693
|
-
const [ builtServerRequest ] = spec.buildRequests(bidRequests,
|
|
1675
|
+
const [ builtServerRequest ] = spec.buildRequests(bidRequests, bidderRequest);
|
|
1694
1676
|
|
|
1695
1677
|
expect(JSON.parse(builtServerRequest.data)).to.deep.equal(ttxRequest);
|
|
1696
1678
|
});
|
|
@@ -1709,7 +1691,7 @@ describe('33acrossBidAdapter:', function () {
|
|
|
1709
1691
|
.withProduct()
|
|
1710
1692
|
.build();
|
|
1711
1693
|
|
|
1712
|
-
const [ builtServerRequest ] = spec.buildRequests(bidRequests,
|
|
1694
|
+
const [ builtServerRequest ] = spec.buildRequests(bidRequests, bidderRequest);
|
|
1713
1695
|
|
|
1714
1696
|
expect(JSON.parse(builtServerRequest.data)).to.deep.equal(ttxRequest);
|
|
1715
1697
|
});
|
|
@@ -1756,7 +1738,7 @@ describe('33acrossBidAdapter:', function () {
|
|
|
1756
1738
|
.withProduct()
|
|
1757
1739
|
.build();
|
|
1758
1740
|
|
|
1759
|
-
const [ builtServerRequest ] = spec.buildRequests(bidRequests,
|
|
1741
|
+
const [ builtServerRequest ] = spec.buildRequests(bidRequests, bidderRequest);
|
|
1760
1742
|
|
|
1761
1743
|
expect(JSON.parse(builtServerRequest.data)).to.deep.equal(ttxRequest);
|
|
1762
1744
|
});
|
|
@@ -1830,7 +1812,7 @@ describe('33acrossBidAdapter:', function () {
|
|
|
1830
1812
|
.withUrl('https://ssc.33across.com/api/v1/hb?guid=sample33xGUID123456780')
|
|
1831
1813
|
.build();
|
|
1832
1814
|
|
|
1833
|
-
const builtServerRequests = spec.buildRequests(bidRequests,
|
|
1815
|
+
const builtServerRequests = spec.buildRequests(bidRequests, bidderRequest);
|
|
1834
1816
|
|
|
1835
1817
|
expect(builtServerRequests).to.deep.equal([serverReq1, serverReq2, serverReq3]);
|
|
1836
1818
|
});
|
|
@@ -1887,7 +1869,7 @@ describe('33acrossBidAdapter:', function () {
|
|
|
1887
1869
|
.withUrl('https://ssc.33across.com/api/v1/hb?guid=sample33xGUID123456780')
|
|
1888
1870
|
.build();
|
|
1889
1871
|
|
|
1890
|
-
const builtServerRequests = spec.buildRequests(bidRequests,
|
|
1872
|
+
const builtServerRequests = spec.buildRequests(bidRequests, bidderRequest);
|
|
1891
1873
|
|
|
1892
1874
|
expect(builtServerRequests)
|
|
1893
1875
|
.to.deep.equal([
|
|
@@ -1946,7 +1928,6 @@ describe('33acrossBidAdapter:', function () {
|
|
|
1946
1928
|
};
|
|
1947
1929
|
const bidResponse = {
|
|
1948
1930
|
requestId: 'b1',
|
|
1949
|
-
bidderCode: BIDDER_CODE,
|
|
1950
1931
|
cpm: 0.0938,
|
|
1951
1932
|
width: 300,
|
|
1952
1933
|
height: 250,
|
|
@@ -1992,7 +1973,6 @@ describe('33acrossBidAdapter:', function () {
|
|
|
1992
1973
|
};
|
|
1993
1974
|
const bidResponse = {
|
|
1994
1975
|
requestId: 'b1',
|
|
1995
|
-
bidderCode: BIDDER_CODE,
|
|
1996
1976
|
cpm: 0.0938,
|
|
1997
1977
|
width: 300,
|
|
1998
1978
|
height: 250,
|
|
@@ -2036,7 +2016,6 @@ describe('33acrossBidAdapter:', function () {
|
|
|
2036
2016
|
// Bid response below doesn't contain meta.advertiserDomains
|
|
2037
2017
|
const bidResponse = {
|
|
2038
2018
|
requestId: 'b1',
|
|
2039
|
-
bidderCode: BIDDER_CODE,
|
|
2040
2019
|
cpm: 0.0938,
|
|
2041
2020
|
width: 300,
|
|
2042
2021
|
height: 250,
|
|
@@ -2116,7 +2095,6 @@ describe('33acrossBidAdapter:', function () {
|
|
|
2116
2095
|
const bidResponse = [
|
|
2117
2096
|
{
|
|
2118
2097
|
requestId: 'b1',
|
|
2119
|
-
bidderCode: BIDDER_CODE,
|
|
2120
2098
|
cpm: 0.0940,
|
|
2121
2099
|
width: 300,
|
|
2122
2100
|
height: 250,
|
|
@@ -2129,7 +2107,6 @@ describe('33acrossBidAdapter:', function () {
|
|
|
2129
2107
|
},
|
|
2130
2108
|
{
|
|
2131
2109
|
requestId: 'b2',
|
|
2132
|
-
bidderCode: BIDDER_CODE,
|
|
2133
2110
|
cpm: 0.0938,
|
|
2134
2111
|
width: 300,
|
|
2135
2112
|
height: 250,
|
|
@@ -2142,7 +2119,6 @@ describe('33acrossBidAdapter:', function () {
|
|
|
2142
2119
|
},
|
|
2143
2120
|
{
|
|
2144
2121
|
requestId: 'b3',
|
|
2145
|
-
bidderCode: BIDDER_CODE,
|
|
2146
2122
|
cpm: 0.0938,
|
|
2147
2123
|
width: 300,
|
|
2148
2124
|
height: 250,
|
|
@@ -2225,7 +2201,7 @@ describe('33acrossBidAdapter:', function () {
|
|
|
2225
2201
|
|
|
2226
2202
|
expect(spec.getUserSyncs(syncOptions)).to.deep.equal([]);
|
|
2227
2203
|
});
|
|
2228
|
-
});
|
|
2204
|
+
}, bidderRequest);
|
|
2229
2205
|
|
|
2230
2206
|
context('when iframe is enabled', function() {
|
|
2231
2207
|
let syncOptions;
|
|
@@ -2237,7 +2213,7 @@ describe('33acrossBidAdapter:', function () {
|
|
|
2237
2213
|
|
|
2238
2214
|
context('when there is no gdpr consent data', function() {
|
|
2239
2215
|
it('returns sync urls with undefined consent string as param', function() {
|
|
2240
|
-
spec.buildRequests(bidRequests);
|
|
2216
|
+
spec.buildRequests(bidRequests, bidderRequest);
|
|
2241
2217
|
|
|
2242
2218
|
const syncResults = spec.getUserSyncs(syncOptions, {}, undefined);
|
|
2243
2219
|
const expectedSyncs = [
|
|
@@ -2257,7 +2233,7 @@ describe('33acrossBidAdapter:', function () {
|
|
|
2257
2233
|
|
|
2258
2234
|
context('when gdpr applies but there is no consent string', function() {
|
|
2259
2235
|
it('returns sync urls with undefined consent string as param and gdpr=1', function() {
|
|
2260
|
-
spec.buildRequests(bidRequests);
|
|
2236
|
+
spec.buildRequests(bidRequests, bidderRequest);
|
|
2261
2237
|
|
|
2262
2238
|
const syncResults = spec.getUserSyncs(syncOptions, {}, {gdprApplies: true});
|
|
2263
2239
|
const expectedSyncs = [
|
|
@@ -2277,7 +2253,7 @@ describe('33acrossBidAdapter:', function () {
|
|
|
2277
2253
|
|
|
2278
2254
|
context('when gdpr applies and there is consent string', function() {
|
|
2279
2255
|
it('returns sync urls with gdpr_consent=consent string as param and gdpr=1', function() {
|
|
2280
|
-
spec.buildRequests(bidRequests);
|
|
2256
|
+
spec.buildRequests(bidRequests, bidderRequest);
|
|
2281
2257
|
|
|
2282
2258
|
const syncResults = spec.getUserSyncs(syncOptions, {}, {gdprApplies: true, consentString: 'consent123A'});
|
|
2283
2259
|
const expectedSyncs = [
|
|
@@ -2297,7 +2273,7 @@ describe('33acrossBidAdapter:', function () {
|
|
|
2297
2273
|
|
|
2298
2274
|
context('when gdpr does not apply and there is no consent string', function() {
|
|
2299
2275
|
it('returns sync urls with undefined consent string as param and gdpr=0', function() {
|
|
2300
|
-
spec.buildRequests(bidRequests);
|
|
2276
|
+
spec.buildRequests(bidRequests, bidderRequest);
|
|
2301
2277
|
|
|
2302
2278
|
const syncResults = spec.getUserSyncs(syncOptions, {}, {gdprApplies: false});
|
|
2303
2279
|
const expectedSyncs = [
|
|
@@ -2316,7 +2292,7 @@ describe('33acrossBidAdapter:', function () {
|
|
|
2316
2292
|
|
|
2317
2293
|
context('when gdpr is unknown and there is consent string', function() {
|
|
2318
2294
|
it('returns sync urls with only consent string as param', function() {
|
|
2319
|
-
spec.buildRequests(bidRequests);
|
|
2295
|
+
spec.buildRequests(bidRequests, bidderRequest);
|
|
2320
2296
|
|
|
2321
2297
|
const syncResults = spec.getUserSyncs(syncOptions, {}, {consentString: 'consent123A'});
|
|
2322
2298
|
const expectedSyncs = [
|
|
@@ -2335,7 +2311,7 @@ describe('33acrossBidAdapter:', function () {
|
|
|
2335
2311
|
|
|
2336
2312
|
context('when gdpr does not apply and there is consent string (yikes!)', function() {
|
|
2337
2313
|
it('returns sync urls with consent string as param and gdpr=0', function() {
|
|
2338
|
-
spec.buildRequests(bidRequests);
|
|
2314
|
+
spec.buildRequests(bidRequests, bidderRequest);
|
|
2339
2315
|
|
|
2340
2316
|
const syncResults = spec.getUserSyncs(syncOptions, {}, {gdprApplies: false, consentString: 'consent123A'});
|
|
2341
2317
|
const expectedSyncs = [
|
|
@@ -2354,7 +2330,7 @@ describe('33acrossBidAdapter:', function () {
|
|
|
2354
2330
|
|
|
2355
2331
|
context('when there is no usPrivacy data', function() {
|
|
2356
2332
|
it('returns sync urls with undefined consent string as param', function() {
|
|
2357
|
-
spec.buildRequests(bidRequests);
|
|
2333
|
+
spec.buildRequests(bidRequests, bidderRequest);
|
|
2358
2334
|
|
|
2359
2335
|
const syncResults = spec.getUserSyncs(syncOptions, {});
|
|
2360
2336
|
const expectedSyncs = [
|
|
@@ -2374,7 +2350,7 @@ describe('33acrossBidAdapter:', function () {
|
|
|
2374
2350
|
|
|
2375
2351
|
context('when there is usPrivacy data', function() {
|
|
2376
2352
|
it('returns sync urls with consent string as param', function() {
|
|
2377
|
-
spec.buildRequests(bidRequests);
|
|
2353
|
+
spec.buildRequests(bidRequests, bidderRequest);
|
|
2378
2354
|
|
|
2379
2355
|
const syncResults = spec.getUserSyncs(syncOptions, {}, {}, 'foo');
|
|
2380
2356
|
const expectedSyncs = [
|
|
@@ -296,6 +296,7 @@ describe('Adagio bid adapter', () => {
|
|
|
296
296
|
sandbox.stub(adagio, 'getDevice').returns({ a: 'a' });
|
|
297
297
|
sandbox.stub(adagio, 'getSite').returns({ domain: 'adagio.io', 'page': 'https://adagio.io/hb' });
|
|
298
298
|
sandbox.stub(adagio, 'getPageviewId').returns('1234-567');
|
|
299
|
+
sandbox.stub(utils, 'generateUUID').returns('blabla');
|
|
299
300
|
|
|
300
301
|
const bid01 = new BidRequestBuilder().withParams().build();
|
|
301
302
|
const bidderRequest = new BidderRequestBuilder().build();
|
|
@@ -309,6 +310,18 @@ describe('Adagio bid adapter', () => {
|
|
|
309
310
|
expect(requests[0].data).to.have.all.keys(expectedDataKeys);
|
|
310
311
|
});
|
|
311
312
|
|
|
313
|
+
it('should use a custom generated auctionId and remove transactionId', function() {
|
|
314
|
+
const expectedAuctionId = '373bcda7-9794-4f1c-be2c-0d223d11d579'
|
|
315
|
+
sandbox.stub(utils, 'generateUUID').returns(expectedAuctionId);
|
|
316
|
+
|
|
317
|
+
const bid01 = new BidRequestBuilder().withParams().build();
|
|
318
|
+
const bidderRequest = new BidderRequestBuilder().build();
|
|
319
|
+
|
|
320
|
+
const requests = spec.buildRequests([bid01], bidderRequest);
|
|
321
|
+
expect(requests[0].data.adUnits[0].auctionId).eq(expectedAuctionId);
|
|
322
|
+
expect(requests[0].data.adUnits[0].transactionId).to.not.exist;
|
|
323
|
+
});
|
|
324
|
+
|
|
312
325
|
it('should enqueue computed features for collect usage', function() {
|
|
313
326
|
sandbox.stub(Date, 'now').returns(12345);
|
|
314
327
|
|
|
@@ -1280,14 +1293,6 @@ describe('Adagio bid adapter', () => {
|
|
|
1280
1293
|
|
|
1281
1294
|
describe('transformBidParams', function() {
|
|
1282
1295
|
it('Compute additional params in s2s mode', function() {
|
|
1283
|
-
GlobalExchange.prepareExchangeData('{}');
|
|
1284
|
-
|
|
1285
|
-
sandbox.stub(window.top.document, 'getElementById').returns(
|
|
1286
|
-
fixtures.getElementById()
|
|
1287
|
-
);
|
|
1288
|
-
sandbox.stub(window.top, 'getComputedStyle').returns({ display: 'block' });
|
|
1289
|
-
sandbox.stub(utils, 'inIframe').returns(false);
|
|
1290
|
-
|
|
1291
1296
|
const adUnit = {
|
|
1292
1297
|
code: 'adunit-code',
|
|
1293
1298
|
params: {
|
|
@@ -1308,22 +1313,8 @@ describe('Adagio bid adapter', () => {
|
|
|
1308
1313
|
}
|
|
1309
1314
|
}).withParams().build();
|
|
1310
1315
|
|
|
1311
|
-
const params = spec.transformBidParams({
|
|
1312
|
-
|
|
1313
|
-
expect(params.organizationId).to.exist;
|
|
1314
|
-
expect(params.auctionId).to.exist;
|
|
1315
|
-
expect(params.playerName).to.exist;
|
|
1316
|
-
expect(params.playerName).to.equal('other');
|
|
1317
|
-
expect(params.features).to.exist;
|
|
1318
|
-
expect(params.features.page_dimensions).to.exist;
|
|
1319
|
-
expect(params.features.adunit_position).to.exist;
|
|
1320
|
-
expect(params.features.dom_loading).to.exist;
|
|
1321
|
-
expect(params.features.print_number).to.exist;
|
|
1322
|
-
expect(params.features.user_timestamp).to.exist;
|
|
1323
|
-
expect(params.placement).to.exist;
|
|
1324
|
-
expect(params.adUnitElementId).to.exist;
|
|
1325
|
-
expect(params.site).to.exist;
|
|
1326
|
-
expect(params.data.session).to.exist;
|
|
1316
|
+
const params = spec.transformBidParams({ param01: 'test' }, true, adUnit, [{ bidderCode: 'adagio', auctionId: bid01.auctionId, bids: [bid01] }]);
|
|
1317
|
+
expect(params.param01).eq('test');
|
|
1327
1318
|
});
|
|
1328
1319
|
});
|
|
1329
1320
|
|
|
@@ -171,7 +171,10 @@ describe('Adf adapter', function () {
|
|
|
171
171
|
bidId: 'bidId',
|
|
172
172
|
params: { siteId: 'siteId' },
|
|
173
173
|
}];
|
|
174
|
-
let request = JSON.parse(spec.buildRequests(validBidRequests, {
|
|
174
|
+
let request = JSON.parse(spec.buildRequests(validBidRequests, {
|
|
175
|
+
refererInfo: {page: 'page'},
|
|
176
|
+
ortb2: {source: {tid: 'tid'}}
|
|
177
|
+
}).data);
|
|
175
178
|
|
|
176
179
|
assert.equal(request.source.tid, 'tid');
|
|
177
180
|
assert.equal(request.source.fd, 1);
|
|
@@ -88,7 +88,7 @@ describe('adhashBidAdapter', function () {
|
|
|
88
88
|
);
|
|
89
89
|
expect(result.length).to.equal(1);
|
|
90
90
|
expect(result[0].method).to.equal('POST');
|
|
91
|
-
expect(result[0].url).to.equal('https://bidder.adhash.com/rtb?version=3.
|
|
91
|
+
expect(result[0].url).to.equal('https://bidder.adhash.com/rtb?version=3.6&prebid=true&publisher=0xc3b09b27e9c6ef73957901aa729b9e69e5bbfbfb');
|
|
92
92
|
expect(result[0].bidRequest).to.equal(bidRequest);
|
|
93
93
|
expect(result[0].data).to.have.property('timezone');
|
|
94
94
|
expect(result[0].data).to.have.property('location');
|
|
@@ -104,7 +104,7 @@ describe('adhashBidAdapter', function () {
|
|
|
104
104
|
const result = spec.buildRequests([ bidRequest ], { gdprConsent: { gdprApplies: true, consentString: 'example' } });
|
|
105
105
|
expect(result.length).to.equal(1);
|
|
106
106
|
expect(result[0].method).to.equal('POST');
|
|
107
|
-
expect(result[0].url).to.equal('https://bidder.adhash.com/rtb?version=3.
|
|
107
|
+
expect(result[0].url).to.equal('https://bidder.adhash.com/rtb?version=3.6&prebid=true&publisher=0xc3b09b27e9c6ef73957901aa729b9e69e5bbfbfb');
|
|
108
108
|
expect(result[0].bidRequest).to.equal(bidRequest);
|
|
109
109
|
expect(result[0].data).to.have.property('timezone');
|
|
110
110
|
expect(result[0].data).to.have.property('location');
|
|
@@ -152,6 +152,8 @@ describe('adhashBidAdapter', function () {
|
|
|
152
152
|
['дума', 'full', 1],
|
|
153
153
|
['старт', 'starts', 1],
|
|
154
154
|
['край', 'ends', 1],
|
|
155
|
+
['onq jbeq', 'partial', 1],
|
|
156
|
+
['dhrra qvrf', 'combo', 2],
|
|
155
157
|
],
|
|
156
158
|
maxScore: 2
|
|
157
159
|
}
|
|
@@ -196,6 +198,13 @@ describe('adhashBidAdapter', function () {
|
|
|
196
198
|
expect(spec.interpretResponse(serverResponse, request).length).to.equal(0);
|
|
197
199
|
});
|
|
198
200
|
|
|
201
|
+
it('should return empty array when there are bad words (partial, compound phrase)', function () {
|
|
202
|
+
bodyStub = sinon.stub(window.top.document.body, 'innerText').get(function() {
|
|
203
|
+
return 'example text partialbad wordb bad wordb example bad wordbtext' + ' word'.repeat(994);
|
|
204
|
+
});
|
|
205
|
+
expect(spec.interpretResponse(serverResponse, request).length).to.equal(0);
|
|
206
|
+
});
|
|
207
|
+
|
|
199
208
|
it('should return empty array when there are bad words (starts)', function () {
|
|
200
209
|
bodyStub = sinon.stub(window.top.document.body, 'innerText').get(function() {
|
|
201
210
|
return 'example text startsWith starts text startsAgain' + ' word'.repeat(994);
|
|
@@ -224,6 +233,13 @@ describe('adhashBidAdapter', function () {
|
|
|
224
233
|
expect(spec.interpretResponse(serverResponse, request).length).to.equal(0);
|
|
225
234
|
});
|
|
226
235
|
|
|
236
|
+
it('should return empty array when there are bad words (combo)', function () {
|
|
237
|
+
bodyStub = sinon.stub(window.top.document.body, 'innerText').get(function() {
|
|
238
|
+
return 'queen of england dies, the queen dies' + ' word'.repeat(993);
|
|
239
|
+
});
|
|
240
|
+
expect(spec.interpretResponse(serverResponse, request).length).to.equal(0);
|
|
241
|
+
});
|
|
242
|
+
|
|
227
243
|
it('should return empty array when there are bad words (regexp)', function () {
|
|
228
244
|
bodyStub = sinon.stub(window.top.document.body, 'innerText').get(function() {
|
|
229
245
|
return 'example text xxxayyy zzxxxAyyyzz text xxxbyyy' + ' word'.repeat(994);
|
|
@@ -220,7 +220,7 @@ describe('AdkernelAdn adapter', function () {
|
|
|
220
220
|
}
|
|
221
221
|
|
|
222
222
|
describe('banner request building', function () {
|
|
223
|
-
let [_, tagRequests] = buildRequest([bid1_pub1]);
|
|
223
|
+
let [_, tagRequests] = buildRequest([bid1_pub1], {ortb2: {source: {tid: 'mock-tid'}}});
|
|
224
224
|
let tagRequest = tagRequests[0];
|
|
225
225
|
|
|
226
226
|
it('should have request id', function () {
|
|
@@ -374,7 +374,6 @@ describe('AdkernelAdn adapter', function () {
|
|
|
374
374
|
|
|
375
375
|
it('should return fully-initialized bid-response', function () {
|
|
376
376
|
let resp = responses[0];
|
|
377
|
-
expect(resp).to.have.property('bidderCode', 'adkernelAdn');
|
|
378
377
|
expect(resp).to.have.property('requestId', '2c5e951baeeadd');
|
|
379
378
|
expect(resp).to.have.property('cpm', 5.0);
|
|
380
379
|
expect(resp).to.have.property('width', 300);
|
|
@@ -394,7 +393,6 @@ describe('AdkernelAdn adapter', function () {
|
|
|
394
393
|
|
|
395
394
|
it('should return fully-initialized video bid-response', function () {
|
|
396
395
|
let resp = responses[2];
|
|
397
|
-
expect(resp).to.have.property('bidderCode', 'adkernelAdn');
|
|
398
396
|
expect(resp).to.have.property('requestId', '57d602ad1c9545');
|
|
399
397
|
expect(resp).to.have.property('cpm', 10.0);
|
|
400
398
|
expect(resp).to.have.property('creativeId', '108_158802');
|