prebid.js 8.3.0 → 8.5.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/dist/33acrossBidAdapter.js +1 -1
- package/dist/33acrossIdSystem.js +1 -1
- package/dist/a1MediaRtdProvider.js +1 -0
- 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/adkernelAdnBidAdapter.js +1 -1
- package/dist/adkernelBidAdapter.js +1 -1
- package/dist/admanBidAdapter.js +1 -1
- package/dist/admixerIdSystem.js +1 -1
- package/dist/adnuntiusBidAdapter.js +1 -1
- package/dist/adqueryBidAdapter.js +1 -1
- package/dist/adqueryIdSystem.js +1 -1
- package/dist/adrelevantisBidAdapter.js +1 -1
- package/dist/adtelligentIdSystem.js +1 -1
- package/dist/adtrgtmeBidAdapter.js +1 -1
- package/dist/adxcgBidAdapter.js +1 -1
- package/dist/adyoulikeBidAdapter.js +1 -1
- package/dist/ajaBidAdapter.js +1 -1
- package/dist/amxBidAdapter.js +1 -1
- package/dist/amxIdSystem.js +1 -1
- package/dist/appierAnalyticsAdapter.js +1 -1
- package/dist/appnexusBidAdapter.js +1 -1
- package/dist/asoBidAdapter.js +1 -1
- package/dist/axonixBidAdapter.js +1 -1
- package/dist/beachfrontBidAdapter.js +1 -1
- package/dist/bidglassBidAdapter.js +1 -1
- package/dist/big-richmediaBidAdapter.js +1 -1
- package/dist/brandmetricsRtdProvider.js +1 -1
- package/dist/bridBidAdapter.js +1 -1
- package/dist/bridgewellBidAdapter.js +1 -1
- package/dist/brightMountainMediaBidAdapter.js +1 -1
- package/dist/britepoolIdSystem.js +1 -1
- package/dist/carodaBidAdapter.js +1 -1
- package/dist/chtnwBidAdapter.js +1 -1
- package/dist/concertBidAdapter.js +1 -1
- package/dist/connectIdSystem.js +1 -1
- package/dist/connectadBidAdapter.js +1 -1
- package/dist/consentManagementGpp.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/cwireBidAdapter.js +1 -1
- package/dist/czechAdIdSystem.js +1 -1
- package/dist/dacIdSystem.js +1 -1
- package/dist/deepintentDpesIdSystem.js +1 -1
- package/dist/dependencies.json +6 -0
- package/dist/dmdIdSystem.js +1 -1
- package/dist/dspxBidAdapter.js +1 -1
- package/dist/eplanningBidAdapter.js +1 -1
- package/dist/euidIdSystem.js +1 -1
- package/dist/fabrickIdSystem.js +1 -1
- package/dist/feedadBidAdapter.js +1 -1
- package/dist/finativeBidAdapter.js +1 -1
- package/dist/freewheel-sspBidAdapter.js +1 -1
- package/dist/ftrackIdSystem.js +1 -1
- package/dist/gdprEnforcement.js +1 -1
- package/dist/geolocationRtdProvider.js +1 -0
- package/dist/gmosspBidAdapter.js +1 -1
- package/dist/goldbachBidAdapter.js +1 -1
- package/dist/gravitoIdSystem.js +1 -1
- package/dist/greenbidsAnalyticsAdapter.js +1 -1
- package/dist/greenbidsRtdProvider.js +1 -1
- package/dist/gridBidAdapter.js +1 -1
- package/dist/growthCodeIdSystem.js +1 -1
- package/dist/gumgumBidAdapter.js +1 -1
- package/dist/h12mediaBidAdapter.js +1 -1
- package/dist/hadronIdSystem.js +1 -1
- package/dist/hypelabBidAdapter.js +1 -1
- package/dist/id5IdSystem.js +1 -1
- package/dist/identityLinkIdSystem.js +1 -1
- package/dist/idxIdSystem.js +1 -1
- package/dist/imdsBidAdapter.js +1 -1
- package/dist/improvedigitalBidAdapter.js +1 -1
- package/dist/imuIdSystem.js +1 -1
- package/dist/insticatorBidAdapter.js +1 -1
- package/dist/intentIqIdSystem.js +1 -1
- package/dist/invibesBidAdapter.js +1 -1
- package/dist/ixBidAdapter.js +1 -1
- package/dist/justIdSystem.js +1 -1
- package/dist/justpremiumBidAdapter.js +1 -1
- package/dist/kargoBidAdapter.js +1 -1
- package/dist/kinessoIdSystem.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/liveIntentIdSystem.js +1 -1
- package/dist/logicadBidAdapter.js +1 -1
- package/dist/loglyliftBidAdapter.js +1 -1
- package/dist/lotamePanoramaIdSystem.js +1 -1
- package/dist/magniteAnalyticsAdapter.js +1 -1
- package/dist/malltvAnalyticsAdapter.js +1 -1
- package/dist/marsmediaBidAdapter.js +1 -1
- package/dist/mediafuseBidAdapter.js +1 -1
- package/dist/mediasquareBidAdapter.js +1 -1
- package/dist/merkleIdSystem.js +1 -1
- package/dist/mgidBidAdapter.js +1 -1
- package/dist/minutemediaBidAdapter.js +1 -1
- package/dist/minutemediaplusBidAdapter.js +1 -1
- package/dist/mwOpenLinkIdSystem.js +1 -1
- package/dist/naveggIdSystem.js +1 -1
- package/dist/netIdSystem.js +1 -1
- package/dist/nexx360BidAdapter.js +1 -1
- package/dist/not-for-prod/prebid.js +185 -182
- package/dist/novatiqIdSystem.js +1 -1
- package/dist/oguryBidAdapter.js +1 -1
- package/dist/oneKeyIdSystem.js +1 -1
- package/dist/onetagBidAdapter.js +1 -1
- package/dist/ooloAnalyticsAdapter.js +1 -1
- package/dist/optidigitalBidAdapter.js +1 -1
- package/dist/outbrainBidAdapter.js +1 -1
- package/dist/ozoneBidAdapter.js +1 -1
- package/dist/pairIdSystem.js +1 -1
- package/dist/parrableIdSystem.js +1 -1
- package/dist/pixfutureBidAdapter.js +1 -1
- package/dist/prebid-core.js +2 -2
- package/dist/publinkIdSystem.js +1 -1
- package/dist/pubmaticBidAdapter.js +1 -1
- package/dist/pubwiseAnalyticsAdapter.js +1 -1
- package/dist/pulsepointBidAdapter.js +1 -1
- package/dist/pxyzBidAdapter.js +1 -1
- package/dist/quantcastBidAdapter.js +1 -1
- package/dist/quantcastIdSystem.js +1 -1
- package/dist/readpeakBidAdapter.js +1 -1
- package/dist/relaidoBidAdapter.js +1 -1
- package/dist/retailspotBidAdapter.js +1 -1
- package/dist/rhythmoneBidAdapter.js +1 -1
- package/dist/riseBidAdapter.js +1 -1
- package/dist/rubiconBidAdapter.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/silverpushBidAdapter.js +1 -1
- package/dist/smaatoBidAdapter.js +1 -1
- package/dist/smartadserverBidAdapter.js +1 -1
- package/dist/smartxBidAdapter.js +1 -1
- package/dist/smilewantedBidAdapter.js +1 -1
- package/dist/sonobiBidAdapter.js +1 -1
- package/dist/sovrnAnalyticsAdapter.js +1 -1
- package/dist/sovrnBidAdapter.js +1 -1
- package/dist/ssmasBidAdapter.js +1 -0
- package/dist/sspBCBidAdapter.js +1 -1
- package/dist/stroeerCoreBidAdapter.js +1 -1
- package/dist/stvBidAdapter.js +1 -1
- package/dist/sublimeBidAdapter.js +1 -1
- package/dist/tapadIdSystem.js +1 -1
- package/dist/targetVideoBidAdapter.js +1 -1
- package/dist/teadsBidAdapter.js +1 -1
- package/dist/tncIdSystem.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/unifiedIdSystem.js +1 -1
- package/dist/userId.js +1 -1
- package/dist/utiqSystem.js +1 -1
- package/dist/verizonMediaIdSystem.js +1 -1
- package/dist/vidazooBidAdapter.js +1 -1
- package/dist/videobyteBidAdapter.js +1 -1
- package/dist/visxBidAdapter.js +1 -1
- package/dist/voxBidAdapter.js +1 -1
- package/dist/vrtcalBidAdapter.js +1 -1
- package/dist/vuukleBidAdapter.js +1 -1
- package/dist/widespaceBidAdapter.js +1 -1
- package/dist/winrBidAdapter.js +1 -1
- package/dist/yahoosspBidAdapter.js +1 -1
- package/dist/yandexBidAdapter.js +1 -1
- package/dist/yieldmoBidAdapter.js +1 -1
- package/dist/yieldoneAnalyticsAdapter.js +1 -1
- package/dist/zeotapIdPlusIdSystem.js +1 -1
- package/integrationExamples/gpt/adUnitFloors.html +0 -1
- package/integrationExamples/videoModule/jwplayer/bidMarkedAsUsed.html +1 -1
- package/integrationExamples/videoModule/jwplayer/eventListeners.html +2 -2
- package/integrationExamples/videoModule/jwplayer/eventsUI.html +1 -1
- package/integrationExamples/videoModule/jwplayer/gamAdServerMediation.html +1 -1
- package/integrationExamples/videoModule/jwplayer/mediaMetadata.html +1 -1
- package/integrationExamples/videoModule/jwplayer/playlist.html +1 -1
- package/integrationExamples/videoModule/videojs/bidMarkedAsUsed.html +1 -1
- package/integrationExamples/videoModule/videojs/bidRequestScheduling.html +1 -1
- package/integrationExamples/videoModule/videojs/eventListeners.html +1 -1
- package/integrationExamples/videoModule/videojs/eventsUI.html +1 -1
- package/integrationExamples/videoModule/videojs/gamAdServerMediation.html +1 -1
- package/integrationExamples/videoModule/videojs/mediaMetadata.html +1 -1
- package/integrationExamples/videoModule/videojs/playlist.html +1 -1
- package/modules/.submodules.json +1 -0
- package/modules/33acrossBidAdapter.js +24 -14
- package/modules/33acrossIdSystem.js +24 -4
- package/modules/a1MediaRtdProvider.js +92 -0
- package/modules/a1MediaRtdProvider.md +46 -0
- package/modules/adagioBidAdapter.js +0 -1
- package/modules/adfBidAdapter.js +4 -1
- package/modules/adkernelAdnBidAdapter.js +1 -1
- package/modules/adkernelBidAdapter.js +10 -3
- package/modules/admanBidAdapter.js +4 -0
- package/modules/admixerIdSystem.js +6 -0
- package/modules/adnuntiusBidAdapter.js +5 -13
- package/modules/adqueryIdSystem.js +6 -0
- package/modules/adtelligentIdSystem.js +6 -0
- package/modules/adyoulikeBidAdapter.js +6 -3
- package/modules/amxIdSystem.js +6 -0
- package/modules/beachfrontBidAdapter.js +32 -6
- package/modules/brandmetricsRtdProvider.js +36 -2
- package/modules/brandmetricsRtdProvider.md +17 -2
- package/modules/britepoolIdSystem.js +6 -0
- package/modules/connectIdSystem.js +6 -0
- package/modules/consentManagementGpp.js +10 -1
- package/modules/consumableBidAdapter.js +9 -1
- package/modules/criteoIdSystem.js +6 -0
- package/modules/czechAdIdSystem.js +6 -0
- package/modules/dacIdSystem.js +6 -0
- package/modules/deepintentDpesIdSystem.js +7 -2
- package/modules/dmdIdSystem.js +6 -0
- package/modules/euidIdSystem.js +9 -0
- package/modules/fabrickIdSystem.js +6 -0
- package/modules/ftrackIdSystem.js +16 -0
- package/modules/gdprEnforcement.js +27 -22
- package/modules/geolocationRtdProvider.js +65 -0
- package/modules/gravitoIdSystem.js +6 -0
- package/modules/greenbidsRtdProvider.js +1 -1
- package/modules/gridBidAdapter.js +19 -0
- package/modules/growthCodeIdSystem.js +20 -1
- package/modules/hadronIdSystem.js +6 -0
- package/modules/id5IdSystem.js +34 -8
- package/modules/identityLinkIdSystem.js +6 -0
- package/modules/idxIdSystem.js +6 -0
- package/modules/imdsBidAdapter.js +38 -14
- package/modules/imuIdSystem.js +10 -0
- package/modules/intentIqIdSystem.js +6 -0
- package/modules/invibesBidAdapter.js +5 -5
- package/modules/ixBidAdapter.js +56 -2
- package/modules/justIdSystem.js +6 -0
- package/modules/kargoBidAdapter.js +4 -0
- package/modules/kinessoIdSystem.js +7 -2
- package/modules/liveIntentIdSystem.js +53 -0
- package/modules/lotamePanoramaIdSystem.js +6 -0
- package/modules/merkleIdSystem.js +24 -0
- package/modules/minutemediaBidAdapter.js +17 -2
- package/modules/mwOpenLinkIdSystem.js +6 -0
- package/modules/naveggIdSystem.js +6 -0
- package/modules/netIdSystem.js +6 -0
- package/modules/novatiqIdSystem.js +12 -0
- package/modules/oguryBidAdapter.js +29 -16
- package/modules/oneKeyIdSystem.js +26 -0
- package/modules/ozoneBidAdapter.js +65 -18
- package/modules/ozoneBidAdapter.md +3 -1
- package/modules/pairIdSystem.js +6 -0
- package/modules/parrableIdSystem.js +38 -2
- package/modules/publinkIdSystem.js +7 -1
- package/modules/pubmaticBidAdapter.js +16 -1
- package/modules/pulsepointBidAdapter.js +63 -424
- package/modules/pulsepointBidAdapter.md +39 -45
- package/modules/quantcastIdSystem.js +6 -0
- package/modules/rubiconBidAdapter.js +9 -0
- package/modules/sharedIdSystem.js +7 -1
- package/modules/silverpushBidAdapter.js +2 -2
- package/modules/sovrnBidAdapter.js +5 -1
- package/modules/ssmasBidAdapter.js +126 -0
- package/modules/ssmasBidAdapter.md +35 -0
- package/modules/sspBCBidAdapter.js +36 -13
- package/modules/stroeerCoreBidAdapter.js +2 -3
- package/modules/tapadIdSystem.js +6 -0
- package/modules/teadsBidAdapter.js +2 -0
- package/modules/tncIdSystem.js +6 -0
- package/modules/topicsFpdModule.js +4 -1
- package/modules/topicsFpdModule.md +4 -0
- package/modules/tripleliftBidAdapter.js +5 -0
- package/modules/uid2IdSystem.js +14 -0
- package/modules/unifiedIdSystem.js +11 -0
- package/modules/userId/eids.js +6 -445
- package/modules/userId/index.js +38 -26
- package/modules/utiqSystem.js +9 -0
- package/modules/verizonMediaIdSystem.js +6 -0
- package/modules/vidazooBidAdapter.js +5 -7
- package/modules/voxBidAdapter.js +16 -5
- package/modules/vrtcalBidAdapter.js +10 -6
- package/modules/yahoosspBidAdapter.js +38 -33
- package/modules/yahoosspBidAdapter.md +96 -95
- package/modules/yandexBidAdapter.js +12 -15
- package/modules/zeotapIdPlusIdSystem.js +6 -0
- package/package.json +1 -1
- package/src/activities/redactor.js +1 -1
- package/src/adapters/bidderFactory.js +15 -6
- package/src/adloader.js +2 -1
- package/src/auction.js +24 -2
- package/src/constants.json +3 -1
- package/src/fpd/sua.js +8 -2
- package/test/spec/auctionmanager_spec.js +29 -1
- package/test/spec/fpd/enrichment_spec.js +7 -1
- package/test/spec/fpd/sua_spec.js +12 -0
- package/test/spec/modules/33acrossBidAdapter_spec.js +188 -35
- package/test/spec/modules/33acrossIdSystem_spec.js +122 -27
- package/test/spec/modules/a1MediaRtdProvider_spec.js +105 -0
- package/test/spec/modules/adagioBidAdapter_spec.js +0 -1
- package/test/spec/modules/adfBidAdapter_spec.js +47 -0
- package/test/spec/modules/adkernelAdnBidAdapter_spec.js +1 -2
- package/test/spec/modules/adkernelBidAdapter_spec.js +7 -2
- package/test/spec/modules/adnuntiusBidAdapter_spec.js +116 -64
- package/test/spec/modules/adyoulikeBidAdapter_spec.js +13 -24
- package/test/spec/modules/beachfrontBidAdapter_spec.js +35 -2
- package/test/spec/modules/brandmetricsRtdProvider_spec.js +69 -7
- package/test/spec/modules/consentManagementGpp_spec.js +16 -0
- package/test/spec/modules/consumableBidAdapter_spec.js +15 -0
- package/test/spec/modules/freewheel-sspBidAdapter_spec.js +5 -5
- package/test/spec/modules/gdprEnforcement_spec.js +43 -2
- package/test/spec/modules/geolocationRtdProvider_spec.js +119 -0
- package/test/spec/modules/greenbidsRtdProvider_spec.js +1 -1
- package/test/spec/modules/gridBidAdapter_spec.js +42 -0
- package/test/spec/modules/id5IdSystem_spec.js +18 -0
- package/test/spec/modules/imdsBidAdapter_spec.js +98 -17
- package/test/spec/modules/invibesBidAdapter_spec.js +123 -32
- package/test/spec/modules/ixBidAdapter_spec.js +95 -5
- package/test/spec/modules/kargoBidAdapter_spec.js +121 -106
- package/test/spec/modules/medianetBidAdapter_spec.js +117 -0
- package/test/spec/modules/minutemediaBidAdapter_spec.js +36 -5
- package/test/spec/modules/oguryBidAdapter_spec.js +208 -108
- package/test/spec/modules/outbrainBidAdapter_spec.js +3 -5
- package/test/spec/modules/ozoneBidAdapter_spec.js +27 -1
- package/test/spec/modules/prebidServerBidAdapter_spec.js +2 -20
- package/test/spec/modules/priceFloors_spec.js +14 -0
- package/test/spec/modules/pubmaticBidAdapter_spec.js +125 -373
- package/test/spec/modules/pulsepointBidAdapter_spec.js +225 -486
- package/test/spec/modules/rubiconBidAdapter_spec.js +220 -9
- package/test/spec/modules/smaatoBidAdapter_spec.js +4 -6
- package/test/spec/modules/sovrnBidAdapter_spec.js +24 -4
- package/test/spec/modules/ssmasBidAdapter_spec.js +244 -0
- package/test/spec/modules/sspBCBidAdapter_spec.js +18 -19
- package/test/spec/modules/stroeerCoreBidAdapter_spec.js +8 -5
- package/test/spec/modules/teadsBidAdapter_spec.js +70 -21
- package/test/spec/modules/topicsFpdModule_spec.js +10 -4
- package/test/spec/modules/tripleliftBidAdapter_spec.js +40 -0
- package/test/spec/modules/userId_spec.js +116 -7
- package/test/spec/modules/vidazooBidAdapter_spec.js +0 -5
- package/test/spec/modules/voxBidAdapter_spec.js +93 -0
- package/test/spec/modules/vrtcalBidAdapter_spec.js +12 -4
- package/test/spec/modules/xeBidAdapter_spec.js +366 -368
- package/test/spec/modules/yahoosspBidAdapter_spec.js +405 -330
- package/test/spec/modules/yandexBidAdapter_spec.js +21 -3
- package/test/spec/unit/core/bidderFactory_spec.js +61 -14
- package/integrationExamples/gpt/inskin_example.html +0 -100
- package/integrationExamples/gpt/pbjs_video_adUnit.html +0 -109
|
@@ -38,7 +38,7 @@ describe('SSPBC adapter', function () {
|
|
|
38
38
|
},
|
|
39
39
|
auctionId,
|
|
40
40
|
bidderRequestId,
|
|
41
|
-
bidId:
|
|
41
|
+
bidId: bidderRequestId + '1',
|
|
42
42
|
transactionId,
|
|
43
43
|
},
|
|
44
44
|
{
|
|
@@ -60,7 +60,7 @@ describe('SSPBC adapter', function () {
|
|
|
60
60
|
},
|
|
61
61
|
auctionId,
|
|
62
62
|
bidderRequestId,
|
|
63
|
-
bidId:
|
|
63
|
+
bidId: bidderRequestId + '2',
|
|
64
64
|
transactionId,
|
|
65
65
|
}
|
|
66
66
|
];
|
|
@@ -83,7 +83,7 @@ describe('SSPBC adapter', function () {
|
|
|
83
83
|
],
|
|
84
84
|
auctionId,
|
|
85
85
|
bidderRequestId,
|
|
86
|
-
bidId:
|
|
86
|
+
bidId: bidderRequestId + '1',
|
|
87
87
|
transactionId,
|
|
88
88
|
};
|
|
89
89
|
const bid_native = {
|
|
@@ -122,7 +122,7 @@ describe('SSPBC adapter', function () {
|
|
|
122
122
|
],
|
|
123
123
|
auctionId,
|
|
124
124
|
bidderRequestId,
|
|
125
|
-
bidId:
|
|
125
|
+
bidId: bidderRequestId + '1',
|
|
126
126
|
transactionId,
|
|
127
127
|
};
|
|
128
128
|
const bid_video = {
|
|
@@ -144,7 +144,7 @@ describe('SSPBC adapter', function () {
|
|
|
144
144
|
],
|
|
145
145
|
auctionId,
|
|
146
146
|
bidderRequestId,
|
|
147
|
-
bidId:
|
|
147
|
+
bidId: bidderRequestId + '1',
|
|
148
148
|
transactionId,
|
|
149
149
|
};
|
|
150
150
|
const bids_timeouted = [{
|
|
@@ -155,7 +155,7 @@ describe('SSPBC adapter', function () {
|
|
|
155
155
|
siteId: '8816',
|
|
156
156
|
}],
|
|
157
157
|
auctionId,
|
|
158
|
-
bidId:
|
|
158
|
+
bidId: bidderRequestId + '1',
|
|
159
159
|
timeout: 100,
|
|
160
160
|
},
|
|
161
161
|
{
|
|
@@ -166,7 +166,7 @@ describe('SSPBC adapter', function () {
|
|
|
166
166
|
siteId: '8816',
|
|
167
167
|
}],
|
|
168
168
|
auctionId,
|
|
169
|
-
bidId:
|
|
169
|
+
bidId: bidderRequestId + '2',
|
|
170
170
|
timeout: 100,
|
|
171
171
|
}
|
|
172
172
|
];
|
|
@@ -198,7 +198,7 @@ describe('SSPBC adapter', function () {
|
|
|
198
198
|
},
|
|
199
199
|
auctionId,
|
|
200
200
|
bidderRequestId,
|
|
201
|
-
bidId:
|
|
201
|
+
bidId: bidderRequestId + '1',
|
|
202
202
|
transactionId,
|
|
203
203
|
}];
|
|
204
204
|
const bidRequest = {
|
|
@@ -293,7 +293,7 @@ describe('SSPBC adapter', function () {
|
|
|
293
293
|
};
|
|
294
294
|
const serverResponse = {
|
|
295
295
|
'body': {
|
|
296
|
-
'id':
|
|
296
|
+
'id': bidderRequestId,
|
|
297
297
|
'seatbid': [{
|
|
298
298
|
'bid': [{
|
|
299
299
|
'id': '3347324c-6889-46d2-a800-ae78a5214c06',
|
|
@@ -333,7 +333,7 @@ describe('SSPBC adapter', function () {
|
|
|
333
333
|
};
|
|
334
334
|
const serverResponseSingle = {
|
|
335
335
|
'body': {
|
|
336
|
-
'id':
|
|
336
|
+
'id': bidderRequestId,
|
|
337
337
|
'seatbid': [{
|
|
338
338
|
'bid': [{
|
|
339
339
|
'id': '3347324c-6889-46d2-a800-ae78a5214c06',
|
|
@@ -358,11 +358,11 @@ describe('SSPBC adapter', function () {
|
|
|
358
358
|
};
|
|
359
359
|
const serverResponseOneCode = {
|
|
360
360
|
'body': {
|
|
361
|
-
'id':
|
|
361
|
+
'id': bidderRequestId,
|
|
362
362
|
'seatbid': [{
|
|
363
363
|
'bid': [{
|
|
364
364
|
'id': '3347324c-6889-46d2-a800-ae78a5214c06',
|
|
365
|
-
'impid': 'bidid-' +
|
|
365
|
+
'impid': 'bidid-' + bidderRequestId + '1',
|
|
366
366
|
'price': 1,
|
|
367
367
|
'adid': 'lxHWkB7OnZeso3QiN1N4',
|
|
368
368
|
'nurl': '',
|
|
@@ -385,11 +385,11 @@ describe('SSPBC adapter', function () {
|
|
|
385
385
|
};
|
|
386
386
|
const serverResponseVideo = {
|
|
387
387
|
'body': {
|
|
388
|
-
'id':
|
|
388
|
+
'id': bidderRequestId,
|
|
389
389
|
'seatbid': [{
|
|
390
390
|
'bid': [{
|
|
391
391
|
'id': '3347324c-6889-46d2-a800-ae78a5214c06',
|
|
392
|
-
'impid': 'bidid-' +
|
|
392
|
+
'impid': 'bidid-' + bidderRequestId + '1',
|
|
393
393
|
'price': 1,
|
|
394
394
|
'adid': 'lxHWkB7OnZeso3QiN1N4',
|
|
395
395
|
'nurl': '',
|
|
@@ -413,11 +413,11 @@ describe('SSPBC adapter', function () {
|
|
|
413
413
|
};
|
|
414
414
|
const serverResponseNative = {
|
|
415
415
|
'body': {
|
|
416
|
-
'id':
|
|
416
|
+
'id': bidderRequestId,
|
|
417
417
|
'seatbid': [{
|
|
418
418
|
'bid': [{
|
|
419
419
|
'id': '3347324c-6889-46d2-a800-ae78a5214c06',
|
|
420
|
-
'impid': 'bidid-' +
|
|
420
|
+
'impid': 'bidid-' + bidderRequestId + '1',
|
|
421
421
|
'price': 1,
|
|
422
422
|
'adid': 'lxHWkB7OnZeso3QiN1N4',
|
|
423
423
|
'nurl': '',
|
|
@@ -438,7 +438,7 @@ describe('SSPBC adapter', function () {
|
|
|
438
438
|
};
|
|
439
439
|
const emptyResponse = {
|
|
440
440
|
'body': {
|
|
441
|
-
'id':
|
|
441
|
+
'id': bidderRequestId,
|
|
442
442
|
}
|
|
443
443
|
}
|
|
444
444
|
return {
|
|
@@ -696,7 +696,7 @@ describe('SSPBC adapter', function () {
|
|
|
696
696
|
|
|
697
697
|
let notificationPayload = spec.onBidWon(bid);
|
|
698
698
|
expect(notificationPayload).to.have.property('event').that.equals('bidWon');
|
|
699
|
-
expect(notificationPayload).to.have.property('requestId').that.equals(bid.
|
|
699
|
+
expect(notificationPayload).to.have.property('requestId').that.equals(bid.bidderRequestId);
|
|
700
700
|
expect(notificationPayload).to.have.property('tagid').that.deep.equals([bid.adUnitCode]);
|
|
701
701
|
expect(notificationPayload).to.have.property('siteId').that.is.an('array');
|
|
702
702
|
expect(notificationPayload).to.have.property('slotId').that.is.an('array');
|
|
@@ -717,7 +717,6 @@ describe('SSPBC adapter', function () {
|
|
|
717
717
|
let notificationPayload = spec.onTimeout(bids_timeouted);
|
|
718
718
|
|
|
719
719
|
expect(notificationPayload).to.have.property('event').that.equals('timeout');
|
|
720
|
-
expect(notificationPayload).to.have.property('requestId').that.equals(bids_timeouted[0].auctionId);
|
|
721
720
|
expect(notificationPayload).to.have.property('tagid').that.deep.equals([bids_timeouted[0].adUnitCode, bids_timeouted[1].adUnitCode]);
|
|
722
721
|
});
|
|
723
722
|
});
|
|
@@ -3,6 +3,7 @@ import {spec} from 'modules/stroeerCoreBidAdapter.js';
|
|
|
3
3
|
import * as utils from 'src/utils.js';
|
|
4
4
|
import {BANNER, VIDEO} from '../../../src/mediaTypes.js';
|
|
5
5
|
import {find} from 'src/polyfill.js';
|
|
6
|
+
import sinon from 'sinon';
|
|
6
7
|
|
|
7
8
|
describe('stroeerCore bid adapter', function () {
|
|
8
9
|
let sandbox;
|
|
@@ -51,8 +52,6 @@ describe('stroeerCore bid adapter', function () {
|
|
|
51
52
|
assert.notProperty(bidObject, 'ad');
|
|
52
53
|
}
|
|
53
54
|
|
|
54
|
-
const AUCTION_ID = utils.getUniqueIdentifierStr();
|
|
55
|
-
|
|
56
55
|
// Vendor user ids and associated data
|
|
57
56
|
const userIds = Object.freeze({
|
|
58
57
|
criteoId: 'criteo-user-id',
|
|
@@ -72,7 +71,6 @@ describe('stroeerCore bid adapter', function () {
|
|
|
72
71
|
});
|
|
73
72
|
|
|
74
73
|
const buildBidderRequest = () => ({
|
|
75
|
-
auctionId: AUCTION_ID,
|
|
76
74
|
bidderRequestId: 'bidder-request-id-123',
|
|
77
75
|
bidderCode: 'stroeerCore',
|
|
78
76
|
timeout: 5000,
|
|
@@ -394,6 +392,10 @@ describe('stroeerCore bid adapter', function () {
|
|
|
394
392
|
clock.tick(13500);
|
|
395
393
|
const bidReq = buildBidderRequest();
|
|
396
394
|
|
|
395
|
+
const UUID = 'fb6a39e3-083f-424c-9046-f1095e15f3d5';
|
|
396
|
+
|
|
397
|
+
const generateUUIDStub = sinon.stub(utils, 'generateUUID').returns(UUID);
|
|
398
|
+
|
|
397
399
|
const serverRequestInfo = spec.buildRequests(bidReq.bids, bidReq);
|
|
398
400
|
|
|
399
401
|
const expectedTimeout = bidderRequest.timeout - (13500 - bidderRequest.auctionStart);
|
|
@@ -401,7 +403,7 @@ describe('stroeerCore bid adapter', function () {
|
|
|
401
403
|
assert.equal(expectedTimeout, 1500);
|
|
402
404
|
|
|
403
405
|
const expectedJsonPayload = {
|
|
404
|
-
'id':
|
|
406
|
+
'id': UUID,
|
|
405
407
|
'timeout': expectedTimeout,
|
|
406
408
|
'ref': 'https://www.example.com/?search=monkey',
|
|
407
409
|
'mpa': true,
|
|
@@ -429,8 +431,9 @@ describe('stroeerCore bid adapter', function () {
|
|
|
429
431
|
|
|
430
432
|
// trim away fields with undefined
|
|
431
433
|
const actualJsonPayload = JSON.parse(JSON.stringify(serverRequestInfo.data));
|
|
432
|
-
|
|
433
434
|
assert.deepEqual(actualJsonPayload, expectedJsonPayload);
|
|
435
|
+
|
|
436
|
+
generateUUIDStub.restore();
|
|
434
437
|
});
|
|
435
438
|
|
|
436
439
|
describe('video bids', () => {
|
|
@@ -108,21 +108,21 @@ describe('teadsBidAdapter', () => {
|
|
|
108
108
|
}
|
|
109
109
|
];
|
|
110
110
|
|
|
111
|
-
let
|
|
111
|
+
let bidderRequestDefault = {
|
|
112
112
|
'auctionId': '1d1a030790a475',
|
|
113
113
|
'bidderRequestId': '22edbae2733bf6',
|
|
114
114
|
'timeout': 3000
|
|
115
115
|
};
|
|
116
116
|
|
|
117
117
|
it('should send bid request to ENDPOINT via POST', function() {
|
|
118
|
-
const request = spec.buildRequests(bidRequests,
|
|
118
|
+
const request = spec.buildRequests(bidRequests, bidderRequestDefault);
|
|
119
119
|
|
|
120
120
|
expect(request.url).to.equal(ENDPOINT);
|
|
121
121
|
expect(request.method).to.equal('POST');
|
|
122
122
|
});
|
|
123
123
|
|
|
124
124
|
it('should not send auctionId in bid request ', function() {
|
|
125
|
-
const request = spec.buildRequests(bidRequests,
|
|
125
|
+
const request = spec.buildRequests(bidRequests, bidderRequestDefault);
|
|
126
126
|
const payload = JSON.parse(request.data);
|
|
127
127
|
|
|
128
128
|
expect(payload.data[0].auctionId).to.not.exist
|
|
@@ -169,6 +169,55 @@ describe('teadsBidAdapter', () => {
|
|
|
169
169
|
expect(payload.gdpr_iab.apiVersion).to.equal(2);
|
|
170
170
|
});
|
|
171
171
|
|
|
172
|
+
it('should add videoPlcmt to payload', function () {
|
|
173
|
+
let bidRequestWithVideoPlcmt = Object.assign({}, bidRequests[0], {
|
|
174
|
+
mediaTypes: {
|
|
175
|
+
video: {
|
|
176
|
+
plcmt: 1
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
});
|
|
180
|
+
|
|
181
|
+
const request = spec.buildRequests([bidRequestWithVideoPlcmt], bidderRequestDefault);
|
|
182
|
+
const payload = JSON.parse(request.data);
|
|
183
|
+
|
|
184
|
+
expect(payload.data[0].videoPlcmt).to.exist;
|
|
185
|
+
expect(payload.data[0].videoPlcmt).to.equal(1);
|
|
186
|
+
});
|
|
187
|
+
|
|
188
|
+
it('should not add videoPlcmt to payload if empty', function () {
|
|
189
|
+
let bidRequestWithNullVideoPlcmt = Object.assign({}, bidRequests[0], {
|
|
190
|
+
mediaTypes: {
|
|
191
|
+
video: {
|
|
192
|
+
plcmt: null
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
});
|
|
196
|
+
|
|
197
|
+
let bidRequestWithEmptyVideoPlcmt = Object.assign({}, bidRequests[0], {
|
|
198
|
+
mediaTypes: {
|
|
199
|
+
video: {
|
|
200
|
+
plcmt: ''
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
});
|
|
204
|
+
|
|
205
|
+
const request1 = spec.buildRequests([bidRequestWithNullVideoPlcmt], bidderRequestDefault);
|
|
206
|
+
const request2 = spec.buildRequests([bidRequestWithEmptyVideoPlcmt], bidderRequestDefault);
|
|
207
|
+
const payload1 = JSON.parse(request1.data);
|
|
208
|
+
const payload2 = JSON.parse(request2.data);
|
|
209
|
+
|
|
210
|
+
expect(payload1.data[0].videoPlcmt).to.not.exist;
|
|
211
|
+
expect(payload2.data[0].videoPlcmt).to.not.exist;
|
|
212
|
+
});
|
|
213
|
+
|
|
214
|
+
it('should not add videoPlcmt to payload if it is not in bid request', function () {
|
|
215
|
+
const request = spec.buildRequests(bidRequests, bidderRequestDefault);
|
|
216
|
+
const payload = JSON.parse(request.data);
|
|
217
|
+
|
|
218
|
+
expect(payload.data[0].videoPlcmt).to.not.exist;
|
|
219
|
+
});
|
|
220
|
+
|
|
172
221
|
it('should add referer info to payload', function () {
|
|
173
222
|
const bidRequest = Object.assign({}, bidRequests[0])
|
|
174
223
|
const bidderRequest = {
|
|
@@ -186,7 +235,7 @@ describe('teadsBidAdapter', () => {
|
|
|
186
235
|
});
|
|
187
236
|
|
|
188
237
|
it('should add networkBandwidth info to payload', function () {
|
|
189
|
-
const request = spec.buildRequests(bidRequests,
|
|
238
|
+
const request = spec.buildRequests(bidRequests, bidderRequestDefault);
|
|
190
239
|
const payload = JSON.parse(request.data);
|
|
191
240
|
|
|
192
241
|
const bandwidth = window.navigator && window.navigator.connection && window.navigator.connection.downlink;
|
|
@@ -201,7 +250,7 @@ describe('teadsBidAdapter', () => {
|
|
|
201
250
|
});
|
|
202
251
|
|
|
203
252
|
it('should add pageReferrer info to payload', function () {
|
|
204
|
-
const request = spec.buildRequests(bidRequests,
|
|
253
|
+
const request = spec.buildRequests(bidRequests, bidderRequestDefault);
|
|
205
254
|
const payload = JSON.parse(request.data);
|
|
206
255
|
|
|
207
256
|
expect(payload.pageReferrer).to.exist;
|
|
@@ -209,7 +258,7 @@ describe('teadsBidAdapter', () => {
|
|
|
209
258
|
});
|
|
210
259
|
|
|
211
260
|
it('should add timeToFirstByte info to payload', function () {
|
|
212
|
-
const request = spec.buildRequests(bidRequests,
|
|
261
|
+
const request = spec.buildRequests(bidRequests, bidderRequestDefault);
|
|
213
262
|
const payload = JSON.parse(request.data);
|
|
214
263
|
const performance = window.performance || window.webkitPerformance || window.msPerformance || window.mozPerformance;
|
|
215
264
|
|
|
@@ -410,7 +459,7 @@ describe('teadsBidAdapter', () => {
|
|
|
410
459
|
}
|
|
411
460
|
});
|
|
412
461
|
|
|
413
|
-
const request = spec.buildRequests([bidRequest],
|
|
462
|
+
const request = spec.buildRequests([bidRequest], bidderRequestDefault);
|
|
414
463
|
const payload = JSON.parse(request.data);
|
|
415
464
|
|
|
416
465
|
expect(payload.schain).to.exist;
|
|
@@ -458,7 +507,7 @@ describe('teadsBidAdapter', () => {
|
|
|
458
507
|
}
|
|
459
508
|
});
|
|
460
509
|
|
|
461
|
-
const requestWithUserAgentClientHints = spec.buildRequests([bidRequest],
|
|
510
|
+
const requestWithUserAgentClientHints = spec.buildRequests([bidRequest], bidderRequestDefault);
|
|
462
511
|
const payload = JSON.parse(requestWithUserAgentClientHints.data);
|
|
463
512
|
|
|
464
513
|
expect(payload.userAgentClientHints).to.exist;
|
|
@@ -489,7 +538,7 @@ describe('teadsBidAdapter', () => {
|
|
|
489
538
|
}
|
|
490
539
|
);
|
|
491
540
|
|
|
492
|
-
const defaultRequest = spec.buildRequests(bidRequests,
|
|
541
|
+
const defaultRequest = spec.buildRequests(bidRequests, bidderRequestDefault);
|
|
493
542
|
expect(JSON.parse(defaultRequest.data).userAgentClientHints).to.not.exist;
|
|
494
543
|
});
|
|
495
544
|
|
|
@@ -566,7 +615,7 @@ describe('teadsBidAdapter', () => {
|
|
|
566
615
|
userId: {} // no property -> assumption that the system is disabled
|
|
567
616
|
};
|
|
568
617
|
|
|
569
|
-
const request = spec.buildRequests([bidRequest],
|
|
618
|
+
const request = spec.buildRequests([bidRequest], bidderRequestDefault);
|
|
570
619
|
const payload = JSON.parse(request.data);
|
|
571
620
|
|
|
572
621
|
for (const userId in userIdModules) {
|
|
@@ -575,7 +624,7 @@ describe('teadsBidAdapter', () => {
|
|
|
575
624
|
});
|
|
576
625
|
|
|
577
626
|
it(`should not add param to payload if user id field is absent`, function () {
|
|
578
|
-
const request = spec.buildRequests([baseBidRequest],
|
|
627
|
+
const request = spec.buildRequests([baseBidRequest], bidderRequestDefault);
|
|
579
628
|
const payload = JSON.parse(request.data);
|
|
580
629
|
|
|
581
630
|
for (const userId in userIdModules) {
|
|
@@ -592,7 +641,7 @@ describe('teadsBidAdapter', () => {
|
|
|
592
641
|
}
|
|
593
642
|
};
|
|
594
643
|
|
|
595
|
-
const request = spec.buildRequests([bidRequest],
|
|
644
|
+
const request = spec.buildRequests([bidRequest], bidderRequestDefault);
|
|
596
645
|
const payload = JSON.parse(request.data);
|
|
597
646
|
|
|
598
647
|
expect(payload).not.to.have.property('liveRampId');
|
|
@@ -612,7 +661,7 @@ describe('teadsBidAdapter', () => {
|
|
|
612
661
|
userId: userIdObject
|
|
613
662
|
};
|
|
614
663
|
|
|
615
|
-
const request = spec.buildRequests([bidRequest],
|
|
664
|
+
const request = spec.buildRequests([bidRequest], bidderRequestDefault);
|
|
616
665
|
const payload = JSON.parse(request.data);
|
|
617
666
|
|
|
618
667
|
expect(payload['unifiedId2']).to.equal('unifiedId2-id');
|
|
@@ -641,7 +690,7 @@ describe('teadsBidAdapter', () => {
|
|
|
641
690
|
}
|
|
642
691
|
};
|
|
643
692
|
|
|
644
|
-
const request = spec.buildRequests([bidRequest],
|
|
693
|
+
const request = spec.buildRequests([bidRequest], bidderRequestDefault);
|
|
645
694
|
const payload = JSON.parse(request.data);
|
|
646
695
|
|
|
647
696
|
expect(payload).not.to.have.property('firstPartyCookieTeadsId');
|
|
@@ -659,7 +708,7 @@ describe('teadsBidAdapter', () => {
|
|
|
659
708
|
}
|
|
660
709
|
};
|
|
661
710
|
|
|
662
|
-
const request = spec.buildRequests([bidRequest],
|
|
711
|
+
const request = spec.buildRequests([bidRequest], bidderRequestDefault);
|
|
663
712
|
const payload = JSON.parse(request.data);
|
|
664
713
|
|
|
665
714
|
expect(payload).not.to.have.property('firstPartyCookieTeadsId');
|
|
@@ -677,7 +726,7 @@ describe('teadsBidAdapter', () => {
|
|
|
677
726
|
}
|
|
678
727
|
};
|
|
679
728
|
|
|
680
|
-
const request = spec.buildRequests([bidRequest],
|
|
729
|
+
const request = spec.buildRequests([bidRequest], bidderRequestDefault);
|
|
681
730
|
|
|
682
731
|
const payload = JSON.parse(request.data);
|
|
683
732
|
|
|
@@ -697,7 +746,7 @@ describe('teadsBidAdapter', () => {
|
|
|
697
746
|
}
|
|
698
747
|
};
|
|
699
748
|
|
|
700
|
-
const request = spec.buildRequests([bidRequest],
|
|
749
|
+
const request = spec.buildRequests([bidRequest], bidderRequestDefault);
|
|
701
750
|
|
|
702
751
|
const payload = JSON.parse(request.data);
|
|
703
752
|
|
|
@@ -750,7 +799,7 @@ describe('teadsBidAdapter', () => {
|
|
|
750
799
|
};
|
|
751
800
|
}
|
|
752
801
|
);
|
|
753
|
-
const request = spec.buildRequests(updatedBidRequests,
|
|
802
|
+
const request = spec.buildRequests(updatedBidRequests, bidderRequestDefault);
|
|
754
803
|
const payload = JSON.parse(request.data);
|
|
755
804
|
|
|
756
805
|
expect(payload.data[0].gpid).to.equal('1111/home-left-0');
|
|
@@ -767,7 +816,7 @@ describe('teadsBidAdapter', () => {
|
|
|
767
816
|
}
|
|
768
817
|
}));
|
|
769
818
|
|
|
770
|
-
const request = spec.buildRequests(updatedBidRequests,
|
|
819
|
+
const request = spec.buildRequests(updatedBidRequests, bidderRequestDefault);
|
|
771
820
|
const payload = JSON.parse(request.data);
|
|
772
821
|
|
|
773
822
|
return payload.data.forEach(bid => {
|
|
@@ -784,7 +833,7 @@ describe('teadsBidAdapter', () => {
|
|
|
784
833
|
}
|
|
785
834
|
}));
|
|
786
835
|
|
|
787
|
-
const request = spec.buildRequests(updatedBidRequests,
|
|
836
|
+
const request = spec.buildRequests(updatedBidRequests, bidderRequestDefault);
|
|
788
837
|
const payload = JSON.parse(request.data);
|
|
789
838
|
|
|
790
839
|
return payload.data.forEach(bid => {
|
|
@@ -795,7 +844,7 @@ describe('teadsBidAdapter', () => {
|
|
|
795
844
|
|
|
796
845
|
function checkMediaTypesSizes(mediaTypes, expectedSizes) {
|
|
797
846
|
const bidRequestWithBannerSizes = Object.assign(bidRequests[0], mediaTypes);
|
|
798
|
-
const requestWithBannerSizes = spec.buildRequests([bidRequestWithBannerSizes],
|
|
847
|
+
const requestWithBannerSizes = spec.buildRequests([bidRequestWithBannerSizes], bidderRequestDefault);
|
|
799
848
|
const payloadWithBannerSizes = JSON.parse(requestWithBannerSizes.data);
|
|
800
849
|
|
|
801
850
|
return payloadWithBannerSizes.data.forEach(bid => {
|
|
@@ -372,11 +372,16 @@ describe('getCachedTopics()', () => {
|
|
|
372
372
|
}
|
|
373
373
|
];
|
|
374
374
|
|
|
375
|
-
const
|
|
375
|
+
const evt_pm = {
|
|
376
376
|
data: '{"segment":{"domain":"ads.pubmatic.com","topics":[{"configVersion":"chrome.1","modelVersion":"2206021246","taxonomyVersion":"1","topic":165,"version":"chrome.1:1:2206021246"}],"bidder":"pubmatic"},"date":1669743901858}',
|
|
377
377
|
origin: 'https://ads.pubmatic.com'
|
|
378
378
|
};
|
|
379
379
|
|
|
380
|
+
const evt_rh = {
|
|
381
|
+
data: '{"segment":{"domain":"topics.authorizedvault.com","topics":[{"configVersion":"chrome.1","modelVersion":"2206021246","taxonomyVersion":"1","topic":165,"version":"chrome.1:1:2206021246"}],"bidder":"rtbhouse"},"date":1669743901858}',
|
|
382
|
+
origin: 'https://topics.authorizedvault.com'
|
|
383
|
+
};
|
|
384
|
+
|
|
380
385
|
let gdprDataHdlrStub;
|
|
381
386
|
beforeEach(() => {
|
|
382
387
|
gdprDataHdlrStub = sinon.stub(gdprDataHandler, 'getConsentData');
|
|
@@ -413,9 +418,10 @@ describe('getCachedTopics()', () => {
|
|
|
413
418
|
it('should stored segments if receiveMessage event is triggerred with segment data', () => {
|
|
414
419
|
return processFpd({}, {global: {}}, {data: Promise.resolve(mockData)})
|
|
415
420
|
.then(({global}) => {
|
|
416
|
-
receiveMessage(
|
|
421
|
+
receiveMessage(evt_pm);
|
|
422
|
+
receiveMessage(evt_rh);
|
|
417
423
|
let segments = new Map(safeJSONParse(storage.getDataFromLocalStorage(topicStorageName)));
|
|
418
|
-
expect(segments.has('pubmatic')).to.equal(true);
|
|
424
|
+
expect(segments.has('pubmatic') || segments.has('rtbhouse')).to.equal(true);
|
|
419
425
|
});
|
|
420
426
|
});
|
|
421
427
|
|
|
@@ -424,7 +430,7 @@ describe('getCachedTopics()', () => {
|
|
|
424
430
|
storage.setDataInLocalStorage(topicStorageName, storedSegments);
|
|
425
431
|
return processFpd({}, {global: {}}, {data: Promise.resolve(mockData)})
|
|
426
432
|
.then(({global}) => {
|
|
427
|
-
receiveMessage(
|
|
433
|
+
receiveMessage(evt_pm);
|
|
428
434
|
let segments = new Map(safeJSONParse(storage.getDataFromLocalStorage(topicStorageName)));
|
|
429
435
|
expect(segments.get('pubmatic')[2206021246].segment.length).to.equal(1);
|
|
430
436
|
});
|
|
@@ -1130,6 +1130,46 @@ describe('triplelift adapter', function () {
|
|
|
1130
1130
|
|
|
1131
1131
|
expect(logErrorSpy.calledOnce).to.equal(true);
|
|
1132
1132
|
});
|
|
1133
|
+
it('should add ortb2 ext object if global fpd is available', function() {
|
|
1134
|
+
const ortb2 = {
|
|
1135
|
+
site: {
|
|
1136
|
+
domain: 'page.example.com',
|
|
1137
|
+
cat: ['IAB2'],
|
|
1138
|
+
sectioncat: ['IAB2-2'],
|
|
1139
|
+
pagecat: ['IAB2-2'],
|
|
1140
|
+
page: 'https://page.example.com/here.html',
|
|
1141
|
+
},
|
|
1142
|
+
user: {
|
|
1143
|
+
yob: 1985,
|
|
1144
|
+
gender: 'm',
|
|
1145
|
+
keywords: 'a,b',
|
|
1146
|
+
data: [
|
|
1147
|
+
{
|
|
1148
|
+
name: 'dataprovider.com',
|
|
1149
|
+
ext: { segtax: 4 },
|
|
1150
|
+
segment: [{ id: '1' }]
|
|
1151
|
+
}
|
|
1152
|
+
],
|
|
1153
|
+
ext: {
|
|
1154
|
+
data: {
|
|
1155
|
+
registered: true,
|
|
1156
|
+
interests: ['cars']
|
|
1157
|
+
}
|
|
1158
|
+
}
|
|
1159
|
+
}
|
|
1160
|
+
};
|
|
1161
|
+
|
|
1162
|
+
const request = tripleliftAdapterSpec.buildRequests(bidRequests, {...bidderRequest, ortb2});
|
|
1163
|
+
const { data: payload } = request;
|
|
1164
|
+
expect(payload.ext.ortb2).to.exist;
|
|
1165
|
+
expect(payload.ext.ortb2.site).to.deep.equal({
|
|
1166
|
+
domain: 'page.example.com',
|
|
1167
|
+
cat: ['IAB2'],
|
|
1168
|
+
sectioncat: ['IAB2-2'],
|
|
1169
|
+
pagecat: ['IAB2-2'],
|
|
1170
|
+
page: 'https://page.example.com/here.html',
|
|
1171
|
+
});
|
|
1172
|
+
});
|
|
1133
1173
|
it('should send global config fpd if kvps are available', function() {
|
|
1134
1174
|
const sens = null;
|
|
1135
1175
|
const category = ['news', 'weather', 'hurricane'];
|