prebid.js 6.6.0 → 6.10.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/.eslintrc.js +8 -1
- package/allowedModules.js +4 -7
- package/integrationExamples/gpt/amp/creative.html +11 -33
- package/integrationExamples/gpt/{haloRtdProvider_example.html → hadronRtdProvider_example.html} +9 -9
- package/integrationExamples/gpt/idImportLibrary_example.html +2 -2
- package/integrationExamples/gpt/userId_example.html +2 -2
- package/integrationExamples/gpt/weboramaRtdProvider_example.html +154 -115
- package/integrationExamples/gpt/x-domain/creative.html +63 -29
- package/modules/.submodules.json +3 -0
- package/modules/adagioBidAdapter.js +1 -9
- package/modules/adagioBidAdapter.md +1 -1
- package/modules/adbookpspBidAdapter.js +29 -12
- package/modules/adhashBidAdapter.js +4 -4
- package/modules/adkernelBidAdapter.js +2 -2
- package/modules/adlooxAnalyticsAdapter.js +1 -1
- package/modules/adlooxRtdProvider.js +1 -1
- package/modules/adnowBidAdapter.js +1 -1
- package/modules/adnuntiusRtdProvider.js +96 -0
- package/modules/adnuntiusRtdProvider.md +41 -0
- package/modules/adomikAnalyticsAdapter.js +2 -2
- package/modules/adotBidAdapter.js +1 -1
- package/modules/adpod.js +14 -17
- package/modules/adrelevantisBidAdapter.js +2 -2
- package/modules/adtargetBidAdapter.js +1 -1
- package/modules/adtelligentBidAdapter.js +1 -1
- package/modules/advangelistsBidAdapter.js +2 -2
- package/modules/adxpremiumAnalyticsAdapter.js +1 -1
- package/modules/adyoulikeBidAdapter.js +1 -1
- package/modules/afpBidAdapter.js +1 -1
- package/modules/appnexusBidAdapter.js +16 -4
- package/modules/asealBidAdapter.js +58 -0
- package/modules/asealBidAdapter.md +52 -0
- package/modules/beachfrontBidAdapter.js +2 -2
- package/modules/betweenBidAdapter.js +1 -1
- package/modules/bidViewability.js +1 -1
- package/modules/bluebillywigBidAdapter.js +1 -1
- package/modules/brandmetricsRtdProvider.js +168 -0
- package/modules/brandmetricsRtdProvider.md +40 -0
- package/modules/bridgewellBidAdapter.js +1 -1
- package/modules/browsiRtdProvider.js +2 -2
- package/modules/cleanmedianetBidAdapter.js +1 -1
- package/modules/colossussspBidAdapter.js +12 -8
- package/modules/colossussspBidAdapter.md +15 -1
- package/modules/compassBidAdapter.js +1 -1
- package/modules/connectIdSystem.js +1 -1
- package/modules/consentManagement.js +2 -3
- package/modules/consumableBidAdapter.md +1 -1
- package/modules/conversantBidAdapter.js +7 -0
- package/modules/craftBidAdapter.js +2 -2
- package/modules/criteoBidAdapter.js +10 -1
- package/modules/currency.js +27 -5
- package/modules/cwireBidAdapter.js +1 -1
- package/modules/dailyhuntBidAdapter.js +1 -1
- package/modules/dchain.js +1 -1
- package/modules/displayioBidAdapter.js +157 -0
- package/modules/displayioBidAdapter.md +148 -0
- package/modules/dspxBidAdapter.js +69 -29
- package/modules/dspxBidAdapter.md +2 -1
- package/modules/e_volutionBidAdapter.js +158 -0
- package/modules/emx_digitalBidAdapter.js +2 -2
- package/modules/fluctBidAdapter.js +0 -1
- package/modules/gamoshiBidAdapter.js +1 -1
- package/modules/gdprEnforcement.js +2 -2
- package/modules/glomexBidAdapter.js +1 -1
- package/modules/gnetBidAdapter.js +3 -3
- package/modules/gnetBidAdapter.md +4 -4
- package/modules/goldbachBidAdapter.js +2 -2
- package/modules/gptPreAuction.js +1 -1
- package/modules/gridBidAdapter.js +15 -1
- package/modules/gumgumBidAdapter.js +57 -43
- package/modules/hadronIdSystem.js +96 -0
- package/modules/hadronIdSystem.md +35 -0
- package/modules/hadronRtdProvider.js +254 -0
- package/modules/hadronRtdProvider.md +126 -0
- package/modules/haloIdSystem.md +4 -35
- package/modules/haloRtdProvider.md +3 -126
- package/modules/hybridBidAdapter.js +1 -1
- package/modules/improvedigitalBidAdapter.js +6 -1
- package/modules/insticatorBidAdapter.js +1 -1
- package/modules/interactiveOffersBidAdapter.js +9 -6
- package/modules/intersectionRtdProvider.js +1 -1
- package/modules/ixBidAdapter.js +2 -2
- package/modules/jwplayerRtdProvider.js +72 -7
- package/modules/jwplayerRtdProvider.md +27 -11
- package/modules/kargoBidAdapter.js +2 -2
- package/modules/livewrappedBidAdapter.js +1 -1
- package/modules/lunamediahbBidAdapter.js +32 -4
- package/modules/malltvBidAdapter.js +7 -3
- package/modules/malltvBidAdapter.md +64 -51
- package/modules/mass.js +3 -5
- package/modules/mediakeysBidAdapter.js +2 -2
- package/modules/medianetAnalyticsAdapter.js +2 -2
- package/modules/medianetRtdProvider.js +1 -1
- package/modules/mediasquareBidAdapter.js +1 -0
- package/modules/nextMillenniumBidAdapter.js +1 -0
- package/modules/nextrollBidAdapter.js +1 -1
- package/modules/oguryBidAdapter.js +7 -14
- package/modules/onetagBidAdapter.js +1 -1
- package/modules/openwebBidAdapter.js +1 -1
- package/modules/openxAnalyticsAdapter.js +2 -2
- package/modules/openxBidAdapter.js +1 -1
- package/modules/parrableIdSystem.js +1 -1
- package/modules/permutiveRtdProvider.js +1 -1
- package/modules/pilotxBidAdapter.js +147 -0
- package/modules/pilotxBidAdapter.md +50 -0
- package/modules/pixfutureBidAdapter.js +2 -2
- package/modules/prebidServerBidAdapter/index.js +63 -41
- package/modules/priceFloors.js +15 -14
- package/modules/pubmaticBidAdapter.js +1 -1
- package/modules/quantcastBidAdapter.js +1 -1
- package/modules/reconciliationRtdProvider.js +1 -1
- package/modules/richaudienceBidAdapter.js +7 -2
- package/modules/riseBidAdapter.js +17 -6
- package/modules/roxotAnalyticsAdapter.js +1 -1
- package/modules/rtbhouseBidAdapter.js +1 -1
- package/modules/rtdModule/index.js +9 -11
- package/modules/rubiconAnalyticsAdapter.js +8 -2
- package/modules/rubiconBidAdapter.js +1 -1
- package/modules/saambaaBidAdapter.js +420 -420
- package/modules/seedingAllianceBidAdapter.js +3 -3
- package/modules/sharethroughBidAdapter.js +12 -17
- package/modules/sigmoidAnalyticsAdapter.js +1 -1
- package/modules/sirdataRtdProvider.js +1 -1
- package/modules/sizeMappingV2.js +2 -9
- package/modules/smarticoBidAdapter.js +1 -1
- package/modules/sortableAnalyticsAdapter.js +5 -4
- package/modules/sovrnAnalyticsAdapter.js +2 -2
- package/modules/sovrnBidAdapter.js +93 -18
- package/modules/sovrnBidAdapter.md +80 -2
- package/modules/sspBCBidAdapter.js +54 -21
- package/modules/synacormediaBidAdapter.js +32 -11
- package/modules/targetVideoBidAdapter.js +1 -1
- package/modules/telariaBidAdapter.js +22 -29
- package/modules/trustpidSystem.js +197 -0
- package/modules/trustpidSystem.md +45 -0
- package/modules/undertoneBidAdapter.js +17 -1
- package/modules/userId/eids.js +16 -1
- package/modules/userId/eids.md +10 -2
- package/modules/userId/index.js +2 -2
- package/modules/userId/userId.md +17 -2
- package/modules/ventesBidAdapter.js +1 -1
- package/modules/verizonMediaIdSystem.js +1 -1
- package/modules/vibrantmediaBidAdapter.js +220 -0
- package/modules/vibrantmediaBidAdapter.md +92 -0
- package/modules/viewability.js +177 -0
- package/modules/viewability.md +87 -0
- package/modules/viewdeosDXBidAdapter.js +1 -1
- package/modules/voxBidAdapter.js +1 -1
- package/modules/waardexBidAdapter.js +1 -1
- package/modules/weboramaRtdProvider.js +264 -34
- package/modules/weboramaRtdProvider.md +110 -40
- package/modules/widespaceBidAdapter.js +2 -2
- package/modules/winrBidAdapter.js +7 -7
- package/modules/yahoosspBidAdapter.js +3 -1
- package/modules/yieldlabBidAdapter.js +1 -1
- package/modules/yieldmoBidAdapter.js +2 -2
- package/modules/yieldoneBidAdapter.js +6 -0
- package/modules/yuktamediaAnalyticsAdapter.js +1 -1
- package/package.json +3 -1
- package/plugins/poly/arrayFrom.js +3 -0
- package/plugins/poly/find.js +3 -0
- package/plugins/poly/findIndex.js +3 -0
- package/plugins/poly/includes.js +3 -0
- package/plugins/poly/package.json +8 -0
- package/src/Renderer.js +1 -1
- package/src/adRendering.js +38 -0
- package/src/adapterManager.js +33 -28
- package/src/adapters/bidderFactory.js +13 -11
- package/src/adloader.js +3 -2
- package/src/auction.js +140 -117
- package/src/auctionIndex.js +85 -0
- package/src/auctionManager.js +4 -1
- package/src/bidderSettings.js +69 -0
- package/src/bidfactory.js +18 -6
- package/src/config.js +3 -4
- package/src/cpmBucketManager.js +1 -1
- package/src/native.js +30 -22
- package/src/prebid.js +4 -20
- package/src/secureCreatives.js +133 -49
- package/src/sizeMapping.js +1 -1
- package/src/storageManager.js +1 -1
- package/src/targeting.js +13 -4
- package/src/userSync.js +1 -1
- package/src/utils.js +16 -19
- package/src/video.js +11 -12
- package/src/videoCache.js +10 -9
- package/test/fixtures/fixtures.js +2 -1
- package/test/helpers/indexStub.js +28 -0
- package/test/helpers/syncPromise.js +71 -0
- package/test/spec/auctionmanager_spec.js +269 -90
- package/test/spec/config_spec.js +24 -1
- package/test/spec/e2e/longform/basic_w_bidderSettings.spec.js +1 -1
- package/test/spec/e2e/longform/basic_w_custom_adserver_translation.spec.js +1 -1
- package/test/spec/e2e/longform/basic_w_priceGran.spec.js +1 -1
- package/test/spec/e2e/longform/basic_w_requireExactDuration.spec.js +1 -1
- package/test/spec/e2e/longform/basic_wo_brandCategoryExclusion.spec.js +1 -1
- package/test/spec/e2e/longform/basic_wo_requireExactDuration.spec.js +1 -1
- package/test/spec/modules/adagioBidAdapter_spec.js +0 -10
- package/test/spec/modules/adbookpspBidAdapter_spec.js +17 -3
- package/test/spec/modules/adhashBidAdapter_spec.js +2 -2
- package/test/spec/modules/adnuntiusRtdProvider_spec.js +145 -0
- package/test/spec/modules/adpod_spec.js +91 -156
- package/test/spec/modules/afpBidAdapter_spec.js +1 -1
- package/test/spec/modules/appnexusBidAdapter_spec.js +27 -0
- package/test/spec/modules/asealBidAdapter_spec.js +144 -0
- package/test/spec/modules/brandmetricsRtdProvider_spec.js +191 -0
- package/test/spec/modules/colossussspBidAdapter_spec.js +5 -2
- package/test/spec/modules/conversantBidAdapter_spec.js +54 -2
- package/test/spec/modules/criteoBidAdapter_spec.js +21 -0
- package/test/spec/modules/currency_spec.js +36 -15
- package/test/spec/modules/deepintentDpesIdsystem_spec.js +1 -1
- package/test/spec/modules/displayioBidAdapter_spec.js +239 -0
- package/test/spec/modules/dspxBidAdapter_spec.js +20 -15
- package/test/spec/modules/e_volutionBidAdapter_spec.js +242 -0
- package/test/spec/modules/eids_spec.js +2 -2
- package/test/spec/modules/eplanningAnalyticsAdapter_spec.js +1 -1
- package/test/spec/modules/fintezaAnalyticsAdapter_spec.js +1 -1
- package/test/spec/modules/gnetBidAdapter_spec.js +6 -6
- package/test/spec/modules/gridBidAdapter_spec.js +18 -0
- package/test/spec/modules/gumgumBidAdapter_spec.js +49 -3
- package/test/spec/modules/hadronIdSystem_spec.js +57 -0
- package/test/spec/modules/hadronRtdProvider_spec.js +762 -0
- package/test/spec/modules/idxIdSystem_spec.js +1 -1
- package/test/spec/modules/improvedigitalBidAdapter_spec.js +19 -0
- package/test/spec/modules/jwplayerRtdProvider_spec.js +195 -2
- package/test/spec/modules/kargoBidAdapter_spec.js +1 -1
- package/test/spec/modules/lunamediahbBidAdapter_spec.js +27 -1
- package/test/spec/modules/mass_spec.js +2 -14
- package/test/spec/modules/mediakeysBidAdapter_spec.js +1 -1
- package/test/spec/modules/multibid_spec.js +1 -1
- package/test/spec/modules/oguryBidAdapter_spec.js +63 -5
- package/test/spec/modules/onetagBidAdapter_spec.js +1 -1
- package/test/spec/modules/openxAnalyticsAdapter_spec.js +1 -1
- package/test/spec/modules/parrableIdSystem_spec.js +1 -1
- package/test/spec/modules/pilotxBidAdapter_spec.js +244 -0
- package/test/spec/modules/prebidServerBidAdapter_spec.js +43 -6
- package/test/spec/modules/priceFloors_spec.js +37 -24
- package/test/spec/modules/pubmaticBidAdapter_spec.js +40 -0
- package/test/spec/modules/realTimeDataModule_spec.js +51 -2
- package/test/spec/modules/riseBidAdapter_spec.js +30 -4
- package/test/spec/modules/rubiconAnalyticsAdapter_spec.js +61 -1
- package/test/spec/modules/rubiconBidAdapter_spec.js +1 -1
- package/test/spec/modules/sharethroughBidAdapter_spec.js +91 -6
- package/test/spec/modules/sortableAnalyticsAdapter_spec.js +2 -3
- package/test/spec/modules/sovrnBidAdapter_spec.js +413 -333
- package/test/spec/modules/sspBCBidAdapter_spec.js +7 -7
- package/test/spec/modules/stroeerCoreBidAdapter_spec.js +1 -1
- package/test/spec/modules/synacormediaBidAdapter_spec.js +70 -0
- package/test/spec/modules/telariaBidAdapter_spec.js +1 -3
- package/test/spec/modules/trustpidSystem_spec.js +232 -0
- package/test/spec/modules/undertoneBidAdapter_spec.js +55 -2
- package/test/spec/modules/userId_spec.js +40 -40
- package/test/spec/modules/vibrantmediaBidAdapter_spec.js +1237 -0
- package/test/spec/modules/viewability_spec.js +280 -0
- package/test/spec/modules/weboramaRtdProvider_spec.js +536 -20
- package/test/spec/modules/widespaceBidAdapter_spec.js +1 -1
- package/test/spec/modules/yahoosspBidAdapter_spec.js +10 -0
- package/test/spec/modules/yieldoneBidAdapter_spec.js +33 -0
- package/test/spec/modules/zeotapIdPlusIdSystem_spec.js +1 -1
- package/test/spec/native_spec.js +62 -40
- package/test/spec/sizeMapping_spec.js +1 -1
- package/test/spec/unit/core/adapterManager_spec.js +24 -2
- package/test/spec/unit/core/auctionIndex_spec.js +129 -0
- package/test/spec/unit/core/bidderFactory_spec.js +65 -12
- package/test/spec/unit/core/bidderSettings_spec.js +123 -0
- package/test/spec/unit/core/targeting_spec.js +93 -0
- package/test/spec/unit/pbjs_api_spec.js +81 -43
- package/test/spec/unit/secureCreatives_spec.js +143 -24
- package/test/spec/videoCache_spec.js +18 -19
- package/test/spec/video_spec.js +51 -61
- package/webpack.conf.js +1 -1
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
setConsentConfig
|
|
24
24
|
} from 'modules/consentManagement.js';
|
|
25
25
|
import {server} from 'test/mocks/xhr.js';
|
|
26
|
-
import find from '
|
|
26
|
+
import find from 'prebidjs-polyfill/find.js';
|
|
27
27
|
import {unifiedIdSubmodule} from 'modules/unifiedIdSystem.js';
|
|
28
28
|
import {britepoolIdSubmodule} from 'modules/britepoolIdSystem.js';
|
|
29
29
|
import {id5IdSubmodule} from 'modules/id5IdSystem.js';
|
|
@@ -36,7 +36,7 @@ import {nextrollIdSubmodule} from 'modules/nextrollIdSystem.js';
|
|
|
36
36
|
import {intentIqIdSubmodule} from 'modules/intentIqIdSystem.js';
|
|
37
37
|
import {zeotapIdPlusSubmodule} from 'modules/zeotapIdPlusIdSystem.js';
|
|
38
38
|
import {sharedIdSystemSubmodule} from 'modules/sharedIdSystem.js';
|
|
39
|
-
import {
|
|
39
|
+
import {hadronIdSubmodule} from 'modules/hadronIdSystem.js';
|
|
40
40
|
import {pubProvidedIdSubmodule} from 'modules/pubProvidedIdSystem.js';
|
|
41
41
|
import {criteoIdSubmodule} from 'modules/criteoIdSystem.js';
|
|
42
42
|
import {mwOpenLinkIdSubModule} from 'modules/mwOpenLinkIdSystem.js';
|
|
@@ -625,7 +625,7 @@ describe('User ID', function () {
|
|
|
625
625
|
});
|
|
626
626
|
|
|
627
627
|
it('config with 24 configurations should result in 24 submodules add', function () {
|
|
628
|
-
setSubmoduleRegistry([sharedIdSystemSubmodule, unifiedIdSubmodule, id5IdSubmodule, identityLinkSubmodule, liveIntentIdSubmodule, britepoolIdSubmodule, netIdSubmodule, nextrollIdSubmodule, intentIqIdSubmodule, zeotapIdPlusSubmodule,
|
|
628
|
+
setSubmoduleRegistry([sharedIdSystemSubmodule, unifiedIdSubmodule, id5IdSubmodule, identityLinkSubmodule, liveIntentIdSubmodule, britepoolIdSubmodule, netIdSubmodule, nextrollIdSubmodule, intentIqIdSubmodule, zeotapIdPlusSubmodule, hadronIdSubmodule, pubProvidedIdSubmodule, criteoIdSubmodule, mwOpenLinkIdSubModule, tapadIdSubmodule, uid2IdSubmodule, admixerIdSubmodule, deepintentDpesSubmodule, dmdIdSubmodule, flocIdSubmodule, akamaiDAPIdSubmodule, amxIdSubmodule, kinessoIdSubmodule, adqueryIdSubmodule]);
|
|
629
629
|
init(config);
|
|
630
630
|
config.setConfig({
|
|
631
631
|
userSync: {
|
|
@@ -658,8 +658,8 @@ describe('User ID', function () {
|
|
|
658
658
|
name: 'intentIqId',
|
|
659
659
|
storage: {name: 'intentIqId', type: 'cookie'}
|
|
660
660
|
}, {
|
|
661
|
-
name: '
|
|
662
|
-
storage: {name: '
|
|
661
|
+
name: 'hadronId',
|
|
662
|
+
storage: {name: 'hadronId', type: 'cookie'}
|
|
663
663
|
}, {
|
|
664
664
|
name: 'zeotapIdPlus'
|
|
665
665
|
}, {
|
|
@@ -700,7 +700,7 @@ describe('User ID', function () {
|
|
|
700
700
|
});
|
|
701
701
|
|
|
702
702
|
it('config syncDelay updates module correctly', function () {
|
|
703
|
-
setSubmoduleRegistry([sharedIdSystemSubmodule, unifiedIdSubmodule, id5IdSubmodule, identityLinkSubmodule, netIdSubmodule, nextrollIdSubmodule, intentIqIdSubmodule, zeotapIdPlusSubmodule,
|
|
703
|
+
setSubmoduleRegistry([sharedIdSystemSubmodule, unifiedIdSubmodule, id5IdSubmodule, identityLinkSubmodule, netIdSubmodule, nextrollIdSubmodule, intentIqIdSubmodule, zeotapIdPlusSubmodule, hadronIdSubmodule, pubProvidedIdSubmodule, criteoIdSubmodule, mwOpenLinkIdSubModule, tapadIdSubmodule, uid2IdSubmodule, admixerIdSubmodule, deepintentDpesSubmodule, dmdIdSubmodule, flocIdSubmodule, akamaiDAPIdSubmodule, amxIdSubmodule, kinessoIdSubmodule, adqueryIdSubmodule]);
|
|
704
704
|
|
|
705
705
|
init(config);
|
|
706
706
|
config.setConfig({
|
|
@@ -716,7 +716,7 @@ describe('User ID', function () {
|
|
|
716
716
|
});
|
|
717
717
|
|
|
718
718
|
it('config auctionDelay updates module correctly', function () {
|
|
719
|
-
setSubmoduleRegistry([sharedIdSystemSubmodule, unifiedIdSubmodule, id5IdSubmodule, identityLinkSubmodule, netIdSubmodule, nextrollIdSubmodule, intentIqIdSubmodule, zeotapIdPlusSubmodule,
|
|
719
|
+
setSubmoduleRegistry([sharedIdSystemSubmodule, unifiedIdSubmodule, id5IdSubmodule, identityLinkSubmodule, netIdSubmodule, nextrollIdSubmodule, intentIqIdSubmodule, zeotapIdPlusSubmodule, hadronIdSubmodule, pubProvidedIdSubmodule, criteoIdSubmodule, mwOpenLinkIdSubModule, tapadIdSubmodule, uid2IdSubmodule, admixerIdSubmodule, deepintentDpesSubmodule, dmdIdSubmodule, flocIdSubmodule, akamaiDAPIdSubmodule, amxIdSubmodule, kinessoIdSubmodule, adqueryIdSubmodule]);
|
|
720
720
|
init(config);
|
|
721
721
|
config.setConfig({
|
|
722
722
|
userSync: {
|
|
@@ -731,7 +731,7 @@ describe('User ID', function () {
|
|
|
731
731
|
});
|
|
732
732
|
|
|
733
733
|
it('config auctionDelay defaults to 0 if not a number', function () {
|
|
734
|
-
setSubmoduleRegistry([sharedIdSystemSubmodule, unifiedIdSubmodule, id5IdSubmodule, identityLinkSubmodule, netIdSubmodule, nextrollIdSubmodule, intentIqIdSubmodule, zeotapIdPlusSubmodule,
|
|
734
|
+
setSubmoduleRegistry([sharedIdSystemSubmodule, unifiedIdSubmodule, id5IdSubmodule, identityLinkSubmodule, netIdSubmodule, nextrollIdSubmodule, intentIqIdSubmodule, zeotapIdPlusSubmodule, hadronIdSubmodule, pubProvidedIdSubmodule, criteoIdSubmodule, mwOpenLinkIdSubModule, tapadIdSubmodule, uid2IdSubmodule, admixerIdSubmodule, deepintentDpesSubmodule, dmdIdSubmodule, flocIdSubmodule, akamaiDAPIdSubmodule, amxIdSubmodule, kinessoIdSubmodule, adqueryIdSubmodule]);
|
|
735
735
|
init(config);
|
|
736
736
|
config.setConfig({
|
|
737
737
|
userSync: {
|
|
@@ -1639,28 +1639,28 @@ describe('User ID', function () {
|
|
|
1639
1639
|
}, {adUnits});
|
|
1640
1640
|
});
|
|
1641
1641
|
|
|
1642
|
-
it('test hook from
|
|
1642
|
+
it('test hook from hadronId html5', function (done) {
|
|
1643
1643
|
// simulate existing browser local storage values
|
|
1644
|
-
localStorage.setItem('
|
|
1645
|
-
localStorage.setItem('
|
|
1644
|
+
localStorage.setItem('hadronId', JSON.stringify({'hadronId': 'random-ls-identifier'}));
|
|
1645
|
+
localStorage.setItem('hadronId_exp', '');
|
|
1646
1646
|
|
|
1647
|
-
setSubmoduleRegistry([
|
|
1647
|
+
setSubmoduleRegistry([hadronIdSubmodule]);
|
|
1648
1648
|
init(config);
|
|
1649
|
-
config.setConfig(getConfigMock(['
|
|
1649
|
+
config.setConfig(getConfigMock(['hadronId', 'hadronId', 'html5']));
|
|
1650
1650
|
|
|
1651
1651
|
requestBidsHook(function () {
|
|
1652
1652
|
adUnits.forEach(unit => {
|
|
1653
1653
|
unit.bids.forEach(bid => {
|
|
1654
|
-
expect(bid).to.have.deep.nested.property('userId.
|
|
1655
|
-
expect(bid.userId.
|
|
1654
|
+
expect(bid).to.have.deep.nested.property('userId.hadronId');
|
|
1655
|
+
expect(bid.userId.hadronId).to.equal('random-ls-identifier');
|
|
1656
1656
|
expect(bid.userIdAsEids[0]).to.deep.equal({
|
|
1657
1657
|
source: 'audigent.com',
|
|
1658
1658
|
uids: [{id: 'random-ls-identifier', atype: 1}]
|
|
1659
1659
|
});
|
|
1660
1660
|
});
|
|
1661
1661
|
});
|
|
1662
|
-
localStorage.removeItem('
|
|
1663
|
-
localStorage.removeItem('
|
|
1662
|
+
localStorage.removeItem('hadronId');
|
|
1663
|
+
localStorage.removeItem('hadronId_exp', '');
|
|
1664
1664
|
done();
|
|
1665
1665
|
}, {adUnits});
|
|
1666
1666
|
});
|
|
@@ -1858,7 +1858,7 @@ describe('User ID', function () {
|
|
|
1858
1858
|
}, {adUnits});
|
|
1859
1859
|
});
|
|
1860
1860
|
|
|
1861
|
-
it('test hook when pubCommonId, unifiedId, id5Id, identityLink, britepoolId, intentIqId, zeotapIdPlus, netId,
|
|
1861
|
+
it('test hook when pubCommonId, unifiedId, id5Id, identityLink, britepoolId, intentIqId, zeotapIdPlus, netId, hadronId, Criteo, UID 2.0, admixerId, amxId, dmdId, kpuid, qid and mwOpenLinkId have data to pass', function (done) {
|
|
1862
1862
|
coreStorage.setCookie('pubcid', 'testpubcid', (new Date(Date.now() + 5000).toUTCString()));
|
|
1863
1863
|
coreStorage.setCookie('unifiedid', JSON.stringify({'TDID': 'testunifiedid'}), (new Date(Date.now() + 5000).toUTCString()));
|
|
1864
1864
|
coreStorage.setCookie('id5id', JSON.stringify({'universal_uid': 'testid5id'}), (new Date(Date.now() + 5000).toUTCString()));
|
|
@@ -1868,7 +1868,7 @@ describe('User ID', function () {
|
|
|
1868
1868
|
coreStorage.setCookie('netId', JSON.stringify({'netId': 'testnetId'}), (new Date(Date.now() + 5000).toUTCString()));
|
|
1869
1869
|
coreStorage.setCookie('intentIqId', 'testintentIqId', (new Date(Date.now() + 5000).toUTCString()));
|
|
1870
1870
|
coreStorage.setCookie('IDP', btoa(JSON.stringify('zeotapId')), (new Date(Date.now() + 5000).toUTCString()));
|
|
1871
|
-
coreStorage.setCookie('
|
|
1871
|
+
coreStorage.setCookie('hadronId', JSON.stringify({'hadronId': 'testHadronId'}), (new Date(Date.now() + 5000).toUTCString()));
|
|
1872
1872
|
coreStorage.setCookie('storage_criteo', JSON.stringify({'criteoId': 'test_bidid'}), (new Date(Date.now() + 5000).toUTCString()));
|
|
1873
1873
|
coreStorage.setCookie('mwol', JSON.stringify({eid: 'XX-YY-ZZ-123'}), (new Date(Date.now() + 5000).toUTCString()));
|
|
1874
1874
|
coreStorage.setCookie('uid2id', 'Sample_AD_Token', (new Date(Date.now() + 5000).toUTCString()));
|
|
@@ -1881,7 +1881,7 @@ describe('User ID', function () {
|
|
|
1881
1881
|
// qid only supports localStorage
|
|
1882
1882
|
localStorage.setItem('qid', 'testqid');
|
|
1883
1883
|
localStorage.setItem('qid_exp', (new Date(Date.now() + 5000)).toUTCString());
|
|
1884
|
-
setSubmoduleRegistry([sharedIdSystemSubmodule, unifiedIdSubmodule, id5IdSubmodule, identityLinkSubmodule, britepoolIdSubmodule, netIdSubmodule, intentIqIdSubmodule, zeotapIdPlusSubmodule,
|
|
1884
|
+
setSubmoduleRegistry([sharedIdSystemSubmodule, unifiedIdSubmodule, id5IdSubmodule, identityLinkSubmodule, britepoolIdSubmodule, netIdSubmodule, intentIqIdSubmodule, zeotapIdPlusSubmodule, hadronIdSubmodule, criteoIdSubmodule, mwOpenLinkIdSubModule, tapadIdSubmodule, uid2IdSubmodule, admixerIdSubmodule, deepintentDpesSubmodule, dmdIdSubmodule, amxIdSubmodule, kinessoIdSubmodule, adqueryIdSubmodule]);
|
|
1885
1885
|
init(config);
|
|
1886
1886
|
config.setConfig(getConfigMock(['pubCommonId', 'pubcid', 'cookie'],
|
|
1887
1887
|
['unifiedId', 'unifiedid', 'cookie'],
|
|
@@ -1892,7 +1892,7 @@ describe('User ID', function () {
|
|
|
1892
1892
|
['netId', 'netId', 'cookie'],
|
|
1893
1893
|
['intentIqId', 'intentIqId', 'cookie'],
|
|
1894
1894
|
['zeotapIdPlus', 'IDP', 'cookie'],
|
|
1895
|
-
['
|
|
1895
|
+
['hadronId', 'hadronId', 'cookie'],
|
|
1896
1896
|
['criteo', 'storage_criteo', 'cookie'],
|
|
1897
1897
|
['mwOpenLinkId', 'mwol', 'cookie'],
|
|
1898
1898
|
['tapadId', 'tapad_id', 'cookie'],
|
|
@@ -1933,9 +1933,9 @@ describe('User ID', function () {
|
|
|
1933
1933
|
// also check that zeotapIdPlus id data was copied to bid
|
|
1934
1934
|
expect(bid).to.have.deep.nested.property('userId.IDP');
|
|
1935
1935
|
expect(bid.userId.IDP).to.equal('zeotapId');
|
|
1936
|
-
// also check that
|
|
1937
|
-
expect(bid).to.have.deep.nested.property('userId.
|
|
1938
|
-
expect(bid.userId.
|
|
1936
|
+
// also check that hadronId id was copied to bid
|
|
1937
|
+
expect(bid).to.have.deep.nested.property('userId.hadronId');
|
|
1938
|
+
expect(bid.userId.hadronId).to.equal('testHadronId');
|
|
1939
1939
|
// also check that criteo id was copied to bid
|
|
1940
1940
|
expect(bid).to.have.deep.nested.property('userId.criteoId');
|
|
1941
1941
|
expect(bid.userId.criteoId).to.equal('test_bidid');
|
|
@@ -1974,7 +1974,7 @@ describe('User ID', function () {
|
|
|
1974
1974
|
coreStorage.setCookie('netId', '', EXPIRED_COOKIE_DATE);
|
|
1975
1975
|
coreStorage.setCookie('intentIqId', '', EXPIRED_COOKIE_DATE);
|
|
1976
1976
|
coreStorage.setCookie('IDP', '', EXPIRED_COOKIE_DATE);
|
|
1977
|
-
coreStorage.setCookie('
|
|
1977
|
+
coreStorage.setCookie('hadronId', '', EXPIRED_COOKIE_DATE);
|
|
1978
1978
|
coreStorage.setCookie('storage_criteo', '', EXPIRED_COOKIE_DATE);
|
|
1979
1979
|
coreStorage.setCookie('mwol', '', EXPIRED_COOKIE_DATE);
|
|
1980
1980
|
coreStorage.setCookie('uid2id', '', EXPIRED_COOKIE_DATE);
|
|
@@ -1989,7 +1989,7 @@ describe('User ID', function () {
|
|
|
1989
1989
|
}, {adUnits});
|
|
1990
1990
|
});
|
|
1991
1991
|
|
|
1992
|
-
it('test hook when pubCommonId, unifiedId, id5Id, britepoolId, dmdId, intentIqId, zeotapIdPlus, criteo, netId,
|
|
1992
|
+
it('test hook when pubCommonId, unifiedId, id5Id, britepoolId, dmdId, intentIqId, zeotapIdPlus, criteo, netId, hadronId, UID 2.0, admixerId, kpuid and mwOpenLinkId have their modules added before and after init', function (done) {
|
|
1993
1993
|
coreStorage.setCookie('pubcid', 'testpubcid', (new Date(Date.now() + 5000).toUTCString()));
|
|
1994
1994
|
coreStorage.setCookie('unifiedid', JSON.stringify({'TDID': 'cookie-value-add-module-variations'}), new Date(Date.now() + 5000).toUTCString());
|
|
1995
1995
|
coreStorage.setCookie('id5id', JSON.stringify({'universal_uid': 'testid5id'}), (new Date(Date.now() + 5000).toUTCString()));
|
|
@@ -1998,7 +1998,7 @@ describe('User ID', function () {
|
|
|
1998
1998
|
coreStorage.setCookie('netId', JSON.stringify({'netId': 'testnetId'}), (new Date(Date.now() + 5000).toUTCString()));
|
|
1999
1999
|
coreStorage.setCookie('intentIqId', 'testintentIqId', (new Date(Date.now() + 5000).toUTCString()));
|
|
2000
2000
|
coreStorage.setCookie('IDP', btoa(JSON.stringify('zeotapId')), (new Date(Date.now() + 5000).toUTCString()));
|
|
2001
|
-
coreStorage.setCookie('
|
|
2001
|
+
coreStorage.setCookie('hadronId', JSON.stringify({'hadronId': 'testHadronId'}), (new Date(Date.now() + 5000).toUTCString()));
|
|
2002
2002
|
coreStorage.setCookie('dmdId', 'testdmdId', (new Date(Date.now() + 5000).toUTCString()));
|
|
2003
2003
|
coreStorage.setCookie('storage_criteo', JSON.stringify({'criteoId': 'test_bidid'}), (new Date(Date.now() + 5000).toUTCString()));
|
|
2004
2004
|
coreStorage.setCookie('mwol', JSON.stringify({eid: 'XX-YY-ZZ-123'}), (new Date(Date.now() + 5000).toUTCString()));
|
|
@@ -2022,7 +2022,7 @@ describe('User ID', function () {
|
|
|
2022
2022
|
attachIdSystem(netIdSubmodule);
|
|
2023
2023
|
attachIdSystem(intentIqIdSubmodule);
|
|
2024
2024
|
attachIdSystem(zeotapIdPlusSubmodule);
|
|
2025
|
-
attachIdSystem(
|
|
2025
|
+
attachIdSystem(hadronIdSubmodule);
|
|
2026
2026
|
attachIdSystem(dmdIdSubmodule);
|
|
2027
2027
|
attachIdSystem(criteoIdSubmodule);
|
|
2028
2028
|
attachIdSystem(mwOpenLinkIdSubModule);
|
|
@@ -2040,7 +2040,7 @@ describe('User ID', function () {
|
|
|
2040
2040
|
['netId', 'netId', 'cookie'],
|
|
2041
2041
|
['intentIqId', 'intentIqId', 'cookie'],
|
|
2042
2042
|
['zeotapIdPlus', 'IDP', 'cookie'],
|
|
2043
|
-
['
|
|
2043
|
+
['hadronId', 'hadronId', 'cookie'],
|
|
2044
2044
|
['dmdId', 'dmdId', 'cookie'],
|
|
2045
2045
|
['criteo', 'storage_criteo', 'cookie'],
|
|
2046
2046
|
['mwOpenLinkId', 'mwol', 'cookie'],
|
|
@@ -2078,9 +2078,9 @@ describe('User ID', function () {
|
|
|
2078
2078
|
// also check that zeotapIdPlus id data was copied to bid
|
|
2079
2079
|
expect(bid).to.have.deep.nested.property('userId.IDP');
|
|
2080
2080
|
expect(bid.userId.IDP).to.equal('zeotapId');
|
|
2081
|
-
// also check that
|
|
2082
|
-
expect(bid).to.have.deep.nested.property('userId.
|
|
2083
|
-
expect(bid.userId.
|
|
2081
|
+
// also check that hadronId id data was copied to bid
|
|
2082
|
+
expect(bid).to.have.deep.nested.property('userId.hadronId');
|
|
2083
|
+
expect(bid.userId.hadronId).to.equal('testHadronId');
|
|
2084
2084
|
// also check that dmdId id data was copied to bid
|
|
2085
2085
|
expect(bid).to.have.deep.nested.property('userId.dmdId');
|
|
2086
2086
|
expect(bid.userId.dmdId).to.equal('testdmdId');
|
|
@@ -2116,7 +2116,7 @@ describe('User ID', function () {
|
|
|
2116
2116
|
coreStorage.setCookie('netId', '', EXPIRED_COOKIE_DATE);
|
|
2117
2117
|
coreStorage.setCookie('intentIqId', '', EXPIRED_COOKIE_DATE);
|
|
2118
2118
|
coreStorage.setCookie('IDP', '', EXPIRED_COOKIE_DATE);
|
|
2119
|
-
coreStorage.setCookie('
|
|
2119
|
+
coreStorage.setCookie('hadronId', '', EXPIRED_COOKIE_DATE);
|
|
2120
2120
|
coreStorage.setCookie('dmdId', '', EXPIRED_COOKIE_DATE);
|
|
2121
2121
|
coreStorage.setCookie('storage_criteo', '', EXPIRED_COOKIE_DATE);
|
|
2122
2122
|
coreStorage.setCookie('mwol', '', EXPIRED_COOKIE_DATE);
|
|
@@ -2166,7 +2166,7 @@ describe('User ID', function () {
|
|
|
2166
2166
|
coreStorage.setCookie('netId', JSON.stringify({'netId': 'testnetId'}), new Date(Date.now() + 5000).toUTCString());
|
|
2167
2167
|
coreStorage.setCookie('intentIqId', 'testintentIqId', (new Date(Date.now() + 5000).toUTCString()));
|
|
2168
2168
|
coreStorage.setCookie('IDP', btoa(JSON.stringify('zeotapId')), (new Date(Date.now() + 5000).toUTCString()));
|
|
2169
|
-
coreStorage.setCookie('
|
|
2169
|
+
coreStorage.setCookie('hadronId', JSON.stringify({'hadronId': 'testHadronId'}), (new Date(Date.now() + 5000).toUTCString()));
|
|
2170
2170
|
coreStorage.setCookie('admixerId', 'testadmixerId', new Date(Date.now() + 5000).toUTCString());
|
|
2171
2171
|
coreStorage.setCookie('deepintentId', 'testdeepintentId', new Date(Date.now() + 5000).toUTCString());
|
|
2172
2172
|
coreStorage.setCookie('MOCKID', JSON.stringify({'MOCKID': '123456778'}), new Date(Date.now() + 5000).toUTCString());
|
|
@@ -2177,7 +2177,7 @@ describe('User ID', function () {
|
|
|
2177
2177
|
localStorage.setItem('qid', 'testqid');
|
|
2178
2178
|
localStorage.setItem('qid_exp', new Date(Date.now() + 5000).toUTCString())
|
|
2179
2179
|
|
|
2180
|
-
setSubmoduleRegistry([sharedIdSystemSubmodule, unifiedIdSubmodule, id5IdSubmodule, identityLinkSubmodule, britepoolIdSubmodule, netIdSubmodule, intentIqIdSubmodule, zeotapIdPlusSubmodule,
|
|
2180
|
+
setSubmoduleRegistry([sharedIdSystemSubmodule, unifiedIdSubmodule, id5IdSubmodule, identityLinkSubmodule, britepoolIdSubmodule, netIdSubmodule, intentIqIdSubmodule, zeotapIdPlusSubmodule, hadronIdSubmodule, uid2IdSubmodule, admixerIdSubmodule, deepintentDpesSubmodule, dmdIdSubmodule, akamaiDAPIdSubmodule, amxIdSubmodule, kinessoIdSubmodule, adqueryIdSubmodule]);
|
|
2181
2181
|
init(config);
|
|
2182
2182
|
|
|
2183
2183
|
config.setConfig({
|
|
@@ -2202,7 +2202,7 @@ describe('User ID', function () {
|
|
|
2202
2202
|
}, {
|
|
2203
2203
|
name: 'zeotapIdPlus'
|
|
2204
2204
|
}, {
|
|
2205
|
-
name: '
|
|
2205
|
+
name: 'hadronId', storage: {name: 'hadronId', type: 'cookie'}
|
|
2206
2206
|
}, {
|
|
2207
2207
|
name: 'admixerId', storage: {name: 'admixerId', type: 'cookie'}
|
|
2208
2208
|
}, {
|
|
@@ -2268,9 +2268,9 @@ describe('User ID', function () {
|
|
|
2268
2268
|
// also check that zeotapIdPlus id data was copied to bid
|
|
2269
2269
|
expect(bid).to.have.deep.nested.property('userId.IDP');
|
|
2270
2270
|
expect(bid.userId.IDP).to.equal('zeotapId');
|
|
2271
|
-
// also check that
|
|
2272
|
-
expect(bid).to.have.deep.nested.property('userId.
|
|
2273
|
-
expect(bid.userId.
|
|
2271
|
+
// also check that hadronId id data was copied to bid
|
|
2272
|
+
expect(bid).to.have.deep.nested.property('userId.hadronId');
|
|
2273
|
+
expect(bid.userId.hadronId).to.equal('testHadronId');
|
|
2274
2274
|
expect(bid.userId.uid2).to.deep.equal({
|
|
2275
2275
|
id: 'Sample_AD_Token'
|
|
2276
2276
|
});
|
|
@@ -2302,7 +2302,7 @@ describe('User ID', function () {
|
|
|
2302
2302
|
coreStorage.setCookie('netId', '', EXPIRED_COOKIE_DATE);
|
|
2303
2303
|
coreStorage.setCookie('intentIqId', '', EXPIRED_COOKIE_DATE);
|
|
2304
2304
|
coreStorage.setCookie('IDP', '', EXPIRED_COOKIE_DATE);
|
|
2305
|
-
coreStorage.setCookie('
|
|
2305
|
+
coreStorage.setCookie('hadronId', '', EXPIRED_COOKIE_DATE);
|
|
2306
2306
|
coreStorage.setCookie('dmdId', '', EXPIRED_COOKIE_DATE);
|
|
2307
2307
|
coreStorage.setCookie('admixerId', '', EXPIRED_COOKIE_DATE);
|
|
2308
2308
|
coreStorage.setCookie('deepintentId', '', EXPIRED_COOKIE_DATE);
|