prebid.js 9.46.0 → 9.48.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/codeql/queries/jsonRequestContentType.ql +18 -0
- package/AGENTS.md +42 -0
- package/CLAUDE.md +1 -0
- package/babelConfig.js +1 -1
- package/dist/33acrossAnalyticsAdapter.js +1 -1
- package/dist/33acrossBidAdapter.js +1 -1
- package/dist/33acrossIdSystem.js +1 -1
- package/dist/BTBidAdapter.js +1 -1
- package/dist/adagioAnalyticsAdapter.js +1 -1
- package/dist/adagioBidAdapter.js +1 -1
- package/dist/adagioUtils.js +1 -1
- package/dist/addefendBidAdapter.js +1 -1
- package/dist/adgenerationBidAdapter.js +1 -1
- package/dist/adlooxRtdProvider.js +1 -1
- package/dist/adqueryBidAdapter.js +1 -1
- package/dist/adrelevantisBidAdapter.js +1 -1
- package/dist/adstirBidAdapter.js +1 -1
- package/dist/adtrgtmeBidAdapter.js +1 -1
- package/dist/advangUtils.js +1 -1
- package/dist/adverxoBidAdapter.js +1 -1
- package/dist/adxcgAnalyticsAdapter.js +1 -1
- package/dist/adxcgBidAdapter.js +1 -1
- package/dist/adyoulikeBidAdapter.js +1 -1
- package/dist/agmaAnalyticsAdapter.js +1 -1
- package/dist/ajaBidAdapter.js +1 -1
- package/dist/amxBidAdapter.js +1 -1
- package/dist/amxIdSystem.js +1 -1
- package/dist/aniviewBidAdapter.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/beopBidAdapter.js +1 -1
- package/dist/bidglassBidAdapter.js +1 -1
- package/dist/big-richmediaBidAdapter.js +1 -1
- package/dist/bitmediaBidAdapter.js +1 -1
- package/dist/blueBidAdapter.js +1 -1
- package/dist/blueUtils.js +1 -0
- package/dist/bmsBidAdapter.js +1 -1
- package/dist/bridBidAdapter.js +1 -1
- package/dist/bridgeuppBidAdapter.js +1 -1
- package/dist/bridgewellBidAdapter.js +1 -1
- package/dist/brightMountainMediaBidAdapter.js +1 -1
- package/dist/browsiUtils.js +1 -1
- package/dist/carodaBidAdapter.js +1 -1
- package/dist/chtnwBidAdapter.js +1 -1
- package/dist/chunk-core.js +1 -1
- package/dist/concertBidAdapter.js +1 -1
- package/dist/connectadBidAdapter.js +1 -1
- package/dist/consumableBidAdapter.js +1 -1
- package/dist/contxtfulBidAdapter.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/cwireBidAdapter.js +1 -1
- package/dist/czechAdIdSystem.js +1 -1
- package/dist/dailymotionBidAdapter.js +1 -1
- package/dist/debugging-standalone.js +1 -1
- package/dist/dependencies.json +16 -2
- package/dist/dspxBidAdapter.js +1 -1
- package/dist/dxkultureBidAdapter.js +1 -1
- package/dist/dynamicAdBoostRtdProvider.js +1 -1
- package/dist/eplanningBidAdapter.js +1 -1
- package/dist/eskimiBidAdapter.js +1 -1
- package/dist/euidIdSystem.js +1 -1
- package/dist/exadsBidAdapter.js +1 -1
- package/dist/excoBidAdapter.js +1 -1
- package/dist/feedadBidAdapter.js +1 -1
- package/dist/finativeBidAdapter.js +1 -1
- package/dist/freewheel-sspBidAdapter.js +1 -1
- package/dist/gmosspBidAdapter.js +1 -1
- package/dist/gptUtils.js +1 -1
- package/dist/greenbidsAnalyticsAdapter.js +1 -1
- package/dist/greenbidsBidAdapter.js +1 -1
- package/dist/greenbidsRtdProvider.js +1 -1
- package/dist/gridBidAdapter.js +1 -1
- package/dist/gumgumBidAdapter.js +1 -1
- package/dist/h12mediaBidAdapter.js +1 -1
- package/dist/hypelabBidAdapter.js +1 -1
- package/dist/id5AnalyticsAdapter.js +1 -1
- package/dist/id5IdSystem.js +1 -1
- package/dist/imdsBidAdapter.js +1 -1
- package/dist/improvedigitalBidAdapter.js +1 -1
- package/dist/inmobiBidAdapter.js +1 -1
- package/dist/insticatorBidAdapter.js +1 -1
- package/dist/intentIqAnalyticsAdapter.js +1 -1
- package/dist/ixBidAdapter.js +1 -1
- package/dist/jixieBidAdapter.js +1 -1
- package/dist/justpremiumBidAdapter.js +1 -1
- package/dist/kargoBidAdapter.js +1 -1
- package/dist/kimberliteBidAdapter.js +1 -1
- package/dist/konduitAnalyticsAdapter.js +1 -1
- package/dist/kueezBidAdapter.js +1 -1
- package/dist/lassoBidAdapter.js +1 -1
- package/dist/lifestreetBidAdapter.js +1 -1
- package/dist/liveIntentId.js +1 -1
- package/dist/logicadBidAdapter.js +1 -1
- package/dist/loglyliftBidAdapter.js +1 -1
- package/dist/luceadBidAdapter.js +1 -1
- package/dist/luponmediaBidAdapter.js +1 -1
- package/dist/mabidderBidAdapter.js +1 -1
- package/dist/madsenseBidAdapter.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/medianetBidAdapter.js +1 -1
- package/dist/medianetUtils.js +1 -1
- package/dist/mediasquareBidAdapter.js +1 -1
- package/dist/mgidBidAdapter.js +1 -1
- package/dist/missenaBidAdapter.js +1 -1
- package/dist/mobilefuseBidAdapter.js +1 -1
- package/dist/nativeryBidAdapter.js +1 -0
- package/dist/nextMillenniumBidAdapter.js +1 -1
- package/dist/nexx360Utils.js +1 -1
- package/dist/nobidAnalyticsAdapter.js +1 -1
- package/dist/nobidBidAdapter.js +1 -1
- package/dist/nodalsAiRtdProvider.js +1 -1
- package/dist/not-for-prod/prebid.js +187 -184
- package/dist/oguryBidAdapter.js +1 -1
- package/dist/onetagBidAdapter.js +1 -1
- package/dist/ooloAnalyticsAdapter.js +1 -1
- package/dist/openxBidAdapter.js +1 -1
- package/dist/optidigitalBidAdapter.js +1 -1
- package/dist/orbidderBidAdapter.js +1 -1
- package/dist/outbrainBidAdapter.js +1 -1
- package/dist/pinkLionBidAdapter.js +1 -0
- package/dist/pixfutureBidAdapter.js +1 -1
- package/dist/prebidServerBidAdapter.js +1 -1
- package/dist/priceFloors.js +1 -1
- package/dist/publinkIdSystem.js +1 -1
- package/dist/pubmaticAnalyticsAdapter.js +1 -1
- package/dist/pubmaticBidAdapter.js +1 -1
- package/dist/pubmaticRtdProvider.js +1 -1
- package/dist/pubwiseAnalyticsAdapter.js +1 -1
- package/dist/pubxaiAnalyticsAdapter.js +1 -1
- package/dist/pubxaiRtdProvider.js +1 -1
- package/dist/pxyzBidAdapter.js +1 -1
- package/dist/quantcastBidAdapter.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/riseUtils.js +1 -1
- package/dist/rtbhouseBidAdapter.js +1 -1
- package/dist/rubiconBidAdapter.js +1 -1
- package/dist/seedingAllianceBidAdapter.js +1 -1
- package/dist/seedtagBidAdapter.js +1 -1
- package/dist/sharethroughAnalyticsAdapter.js +1 -1
- package/dist/sharethroughBidAdapter.js +1 -1
- package/dist/showheroes-bsBidAdapter.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/snigelBidAdapter.js +1 -1
- package/dist/sonobiBidAdapter.js +1 -1
- package/dist/sovrnBidAdapter.js +1 -1
- package/dist/sparteoBidAdapter.js +1 -1
- 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/taboolaBidAdapter.js +1 -1
- package/dist/tappxBidAdapter.js +1 -1
- package/dist/targetVideoBidAdapter.js +1 -1
- package/dist/teadsBidAdapter.js +1 -1
- package/dist/terceptAnalyticsAdapter.js +1 -1
- package/dist/themoneytizerBidAdapter.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/unrulyBidAdapter.js +1 -1
- package/dist/userId.js +1 -1
- package/dist/vidazooUtils.js +1 -1
- package/dist/videobyteBidAdapter.js +1 -1
- package/dist/visxBidAdapter.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/xeUtils.js +1 -1
- package/dist/yahooAdsBidAdapter.js +1 -1
- package/dist/yandexBidAdapter.js +1 -1
- package/dist/yieldmoBidAdapter.js +1 -1
- package/dist/yieldoneAnalyticsAdapter.js +1 -1
- package/eslint.config.js +1 -3
- package/gulpHelpers.js +3 -6
- package/gulpfile.js +25 -24
- package/karma.conf.maker.js +1 -3
- package/libraries/advangUtils/index.js +3 -4
- package/libraries/blueUtils/bidderUtils.js +113 -0
- package/libraries/browsiUtils/browsiUtils.js +1 -2
- package/libraries/gptUtils/gptUtils.js +1 -2
- package/libraries/liveIntentId/shared.js +4 -0
- package/libraries/xeUtils/bidderUtils.js +3 -4
- package/modules/adagioBidAdapter.js +1 -2
- package/modules/addefendBidAdapter.md +1 -1
- package/modules/adtrgtmeBidAdapter.js +6 -8
- package/modules/aduptechBidAdapter.md +1 -1
- package/modules/adverxoBidAdapter.js +3 -3
- package/modules/blueBidAdapter.js +24 -104
- package/modules/bmsBidAdapter.js +25 -105
- package/modules/concertBidAdapter.md +1 -1
- package/modules/contxtfulBidAdapter.js +56 -10
- package/modules/conversantBidAdapter.js +0 -58
- package/modules/cwireBidAdapter.js +8 -0
- package/modules/czechAdIdSystem.js +13 -3
- package/modules/dynamicAdBoostRtdProvider.js +16 -33
- package/modules/dynamicAdBoostRtdProvider.md +1 -6
- package/modules/ixBidAdapter.js +2 -3
- package/modules/luponmediaBidAdapter.js +117 -522
- package/modules/luponmediaBidAdapter.md +2 -3
- package/modules/mediasquareBidAdapter.js +14 -20
- package/modules/microadBidAdapter.js +0 -1
- package/modules/nativeryBidAdapter.js +135 -0
- package/modules/nativeryBidAdapter.md +95 -0
- package/modules/nativoBidAdapter.js +3 -3
- package/modules/onetagBidAdapter.js +0 -1
- package/modules/pinkLionBidAdapter.js +17 -0
- package/modules/pinkLionBidAdapter.md +79 -0
- package/modules/prebidServerBidAdapter/ortbConverter.js +1 -1
- package/modules/priceFloors.js +2 -2
- package/modules/pubmaticBidAdapter.js +4 -1
- package/modules/qortexRtdProvider.md +1 -1
- package/modules/reconciliationRtdProvider.md +4 -4
- package/modules/rtbhouseBidAdapter.js +4 -83
- package/modules/rubiconBidAdapter.js +1 -1
- package/modules/sspBCBidAdapter.js +1 -1
- package/modules/stroeerCoreBidAdapter.js +3 -3
- package/modules/stvBidAdapter.js +19 -14
- package/modules/topicsFpdModule.md +1 -1
- package/modules/unifiedIdSystem.js +8 -1
- package/modules/userId/eids.js +15 -0
- package/modules/videoModule/index.js +0 -1
- package/modules/videoModule/videoImpressionVerifier.js +0 -1
- package/modules/yieldlabBidAdapter.js +1 -2
- package/modules/yieldmoBidAdapter.js +1 -2
- package/package.json +13 -20
- package/src/Renderer.js +1 -2
- package/src/adapterManager.js +14 -4
- package/src/auction.js +2 -3
- package/src/config.js +1 -2
- package/src/cpmBucketManager.js +1 -2
- package/src/secureCreatives.js +2 -3
- package/src/targeting.js +1 -2
- package/test/fake-server/README.md +3 -3
- package/test/helpers/index_adapter_utils.js +2 -2
- package/test/helpers/testing-utils.js +1 -1
- package/test/spec/auctionmanager_spec.js +2 -3
- package/test/spec/fpd/enrichment_spec.js +1 -1
- package/test/spec/libraries/greedy/greedyPromise_spec.js +2 -2
- package/test/spec/modules/adfBidAdapter_spec.js +1 -1
- package/test/spec/modules/adnuntiusBidAdapter_spec.js +25 -9
- package/test/spec/modules/adtrgtmeBidAdapter_spec.js +2 -4
- package/test/spec/modules/adverxoBidAdapter_spec.js +25 -1
- package/test/spec/modules/afpBidAdapter_spec.js +0 -1
- package/test/spec/modules/bliinkBidAdapter_spec.js +15 -7
- package/test/spec/modules/contxtfulBidAdapter_spec.js +606 -82
- package/test/spec/modules/conversantBidAdapter_spec.js +1 -139
- package/test/spec/modules/cwireBidAdapter_spec.js +2 -2
- package/test/spec/modules/czechAdIdSystem_spec.js +4 -4
- package/test/spec/modules/displayioBidAdapter_spec.js +1 -1
- package/test/spec/modules/dynamicAdBoostRtdProvider_spec.js +0 -42
- package/test/spec/modules/enrichmentLiftMeasurement_spec.js +8 -8
- package/test/spec/modules/hypelabBidAdapter_spec.js +17 -11
- package/test/spec/modules/iasRtdProvider_spec.js +2 -2
- package/test/spec/modules/id5IdSystem_spec.js +1 -1
- package/test/spec/modules/idxIdSystem_spec.js +1 -2
- package/test/spec/modules/intentIqAnalyticsAdapter_spec.js +25 -25
- package/test/spec/modules/intentIqIdSystem_spec.js +32 -32
- package/test/spec/modules/kargoBidAdapter_spec.js +11 -5
- package/test/spec/modules/liveIntentIdSystem_spec.js +14 -0
- package/test/spec/modules/lmpIdSystem_spec.js +1 -2
- package/test/spec/modules/lockrAIMIdSystem_spec.js +2 -2
- package/test/spec/modules/luceadBidAdapter_spec.js +1 -1
- package/test/spec/modules/luponmediaBidAdapter_spec.js +186 -324
- package/test/spec/modules/mediaeyesBidAdapter_spec.js +1 -1
- package/test/spec/modules/mediakeysBidAdapter_spec.js +1 -2
- package/test/spec/modules/mediasquareBidAdapter_spec.js +13 -2
- package/test/spec/modules/missenaBidAdapter_spec.js +1 -1
- package/test/spec/modules/nativeryBidAdapter_spec.js +195 -0
- package/test/spec/modules/nexx360BidAdapter_spec.js +6 -6
- package/test/spec/modules/oguryBidAdapter_spec.js +2 -2
- package/test/spec/modules/omsBidAdapter_spec.js +1 -1
- package/test/spec/modules/onetagBidAdapter_spec.js +1 -2
- package/test/spec/modules/onomagicBidAdapter_spec.js +2 -2
- package/test/spec/modules/overtoneRtdProvider_spec.mjs +1 -1
- package/test/spec/modules/permutiveIdentityManagerIdSystem_spec.js +17 -14
- package/test/spec/modules/pinkLionBidAdapter_spec.js +480 -0
- package/test/spec/modules/prebidServerBidAdapter_spec.js +2 -2
- package/test/spec/modules/previousAuctionInfo_spec.js +2 -2
- package/test/spec/modules/pubmaticAnalyticsAdapter_spec.js +1 -1
- package/test/spec/modules/pubmaticBidAdapter_spec.js +19 -1
- package/test/spec/modules/pubmaticRtdProvider_spec.js +16 -17
- package/test/spec/modules/pubwiseAnalyticsAdapter_spec.js +2 -2
- package/test/spec/modules/rtbhouseBidAdapter_spec.js +0 -182
- package/test/spec/modules/rubiconBidAdapter_spec.js +3 -4
- package/test/spec/modules/sizeMappingV2_spec.js +1 -1
- package/test/spec/modules/sizeMapping_spec.js +2 -3
- package/test/spec/modules/stroeerCoreBidAdapter_spec.js +36 -26
- package/test/spec/modules/stvBidAdapter_spec.js +108 -40
- package/test/spec/modules/topLevelPaapi_spec.js +1 -1
- package/test/spec/modules/tpmnBidAdapter_spec.js +1 -1
- package/test/spec/modules/ttdBidAdapter_spec.js +1 -1
- package/test/spec/modules/unifiedIdSystem_spec.js +20 -0
- package/test/spec/modules/userId_spec.js +1 -1
- package/test/spec/modules/vibrantmediaBidAdapter_spec.js +1 -1
- package/test/spec/modules/videoModule/submodules/videojsVideoProvider_spec.js +1 -1
- package/test/spec/modules/yieldmoBidAdapter_spec.js +2 -2
- package/test/spec/modules/zeotapIdPlusIdSystem_spec.js +1 -2
- package/test/spec/unit/core/adapterManager_spec.js +29 -17
- package/test/spec/unit/core/targeting_spec.js +1 -1
- package/test/spec/unit/pbjs_api_spec.js +4 -5
- package/test/spec/utils_spec.js +20 -12
- package/test/test_deps.js +1 -1
- package/nightwatch.browserstack.json +0 -46
- package/nightwatch.conf.js +0 -36
- package/nightwatch.json +0 -40
|
@@ -1,297 +1,218 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
// tests/luponmediaBidAdapter_spec.js
|
|
2
|
+
import { resetUserSync, spec, converter, storage } from 'modules/luponmediaBidAdapter.js';
|
|
3
|
+
import sinon from 'sinon';
|
|
4
|
+
import { expect } from 'chai';
|
|
3
5
|
|
|
4
6
|
describe('luponmediaBidAdapter', function () {
|
|
7
|
+
let sandbox;
|
|
8
|
+
|
|
9
|
+
beforeEach(function () {
|
|
10
|
+
sandbox = sinon.createSandbox();
|
|
11
|
+
});
|
|
12
|
+
|
|
13
|
+
afterEach(function () {
|
|
14
|
+
sandbox.restore();
|
|
15
|
+
});
|
|
16
|
+
|
|
5
17
|
describe('isBidRequestValid', function () {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
'adUnitCode': 'test-div',
|
|
13
|
-
'sizes': [[300, 250]],
|
|
14
|
-
'bidId': 'g1987234bjkads',
|
|
15
|
-
'bidderRequestId': '290348ksdhkas89324',
|
|
16
|
-
'auctionId': '20384rlek235',
|
|
18
|
+
const bid = {
|
|
19
|
+
bidder: 'luponmedia',
|
|
20
|
+
params: { keyId: 'uid@eu_test_300_600' },
|
|
21
|
+
adUnitCode: 'test-div',
|
|
22
|
+
sizes: [[300, 250]],
|
|
23
|
+
bidId: 'g1987234bjkads'
|
|
17
24
|
};
|
|
18
25
|
|
|
19
|
-
it('should return true when required
|
|
20
|
-
expect(spec.isBidRequestValid(bid)).to.
|
|
26
|
+
it('should return true when required param is found and it is valid', function () {
|
|
27
|
+
expect(spec.isBidRequestValid(bid)).to.be.true;
|
|
21
28
|
});
|
|
22
29
|
|
|
23
|
-
it('should return
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
+
it('should return true with required and without optional param', function () {
|
|
31
|
+
bid.params = { keyId: 'uid_test_300_600' };
|
|
32
|
+
expect(spec.isBidRequestValid(bid)).to.be.true;
|
|
33
|
+
});
|
|
34
|
+
|
|
35
|
+
it('should return false when keyId is not in the required format', function () {
|
|
36
|
+
bid.params = { keyId: 12345 };
|
|
37
|
+
expect(spec.isBidRequestValid(bid)).to.be.false;
|
|
30
38
|
});
|
|
31
39
|
});
|
|
32
40
|
|
|
33
41
|
describe('buildRequests', function () {
|
|
34
|
-
|
|
42
|
+
const bidRequests = [
|
|
35
43
|
{
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
'
|
|
42
|
-
|
|
43
|
-
},
|
|
44
|
-
'mediaTypes': {
|
|
45
|
-
'banner': {
|
|
46
|
-
'sizes': [
|
|
47
|
-
[
|
|
48
|
-
300,
|
|
49
|
-
250
|
|
50
|
-
]
|
|
51
|
-
]
|
|
52
|
-
}
|
|
53
|
-
},
|
|
54
|
-
'adUnitCode': 'div-gpt-ad-1533155193780-2',
|
|
55
|
-
'transactionId': '585d96a5-bd93-4a89-b8ea-0f546f3aaa82',
|
|
56
|
-
'sizes': [
|
|
57
|
-
[
|
|
58
|
-
300,
|
|
59
|
-
250
|
|
60
|
-
]
|
|
61
|
-
],
|
|
62
|
-
'bidId': '268a30af10dd6f',
|
|
63
|
-
'bidderRequestId': '140411b5010a2a',
|
|
64
|
-
'auctionId': '7376c117-b7aa-49f5-a661-488543deeefd',
|
|
65
|
-
'src': 'client',
|
|
66
|
-
'bidRequestsCount': 1,
|
|
67
|
-
'bidderRequestsCount': 1,
|
|
68
|
-
'bidderWinsCount': 0,
|
|
69
|
-
'schain': {
|
|
70
|
-
'ver': '1.0',
|
|
71
|
-
'complete': 1,
|
|
72
|
-
'nodes': [
|
|
73
|
-
{
|
|
74
|
-
'asi': 'novi.ba',
|
|
75
|
-
'sid': '199424',
|
|
76
|
-
'hp': 1
|
|
77
|
-
}
|
|
78
|
-
]
|
|
79
|
-
}
|
|
44
|
+
bidder: 'luponmedia',
|
|
45
|
+
params: { keyId: 'uid_test_300_600', placement_id: 'test-div' },
|
|
46
|
+
mediaTypes: { banner: { sizes: [[300, 600]] } },
|
|
47
|
+
adUnitCode: 'test-div',
|
|
48
|
+
transactionId: 'txn-id',
|
|
49
|
+
bidId: 'bid-id',
|
|
50
|
+
ortb2: { device: { ua: 'test-agent' } }
|
|
80
51
|
}
|
|
81
52
|
];
|
|
82
53
|
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
'bids': [
|
|
88
|
-
{
|
|
89
|
-
'bidder': 'luponmedia',
|
|
90
|
-
'params': {
|
|
91
|
-
'siteId': 303522,
|
|
92
|
-
'keyId': '4o2c4'
|
|
93
|
-
},
|
|
94
|
-
'crumbs': {
|
|
95
|
-
'pubcid': '8d8b16cb-1383-4a0f-b4bb-0be28464d974'
|
|
96
|
-
},
|
|
97
|
-
'mediaTypes': {
|
|
98
|
-
'banner': {
|
|
99
|
-
'sizes': [
|
|
100
|
-
[
|
|
101
|
-
300,
|
|
102
|
-
250
|
|
103
|
-
]
|
|
104
|
-
]
|
|
105
|
-
}
|
|
106
|
-
},
|
|
107
|
-
'adUnitCode': 'div-gpt-ad-1533155193780-2',
|
|
108
|
-
'transactionId': '585d96a5-bd93-4a89-b8ea-0f546f3aaa82',
|
|
109
|
-
'sizes': [
|
|
110
|
-
[
|
|
111
|
-
300,
|
|
112
|
-
250
|
|
113
|
-
]
|
|
114
|
-
],
|
|
115
|
-
'bidId': '268a30af10dd6f',
|
|
116
|
-
'bidderRequestId': '140411b5010a2a',
|
|
117
|
-
'auctionId': '7376c117-b7aa-49f5-a661-488543deeefd',
|
|
118
|
-
'src': 'client',
|
|
119
|
-
'bidRequestsCount': 1,
|
|
120
|
-
'bidderRequestsCount': 1,
|
|
121
|
-
'bidderWinsCount': 0,
|
|
122
|
-
'schain': {
|
|
123
|
-
'ver': '1.0',
|
|
124
|
-
'complete': 1,
|
|
125
|
-
'nodes': [
|
|
126
|
-
{
|
|
127
|
-
'asi': 'novi.ba',
|
|
128
|
-
'sid': '199424',
|
|
129
|
-
'hp': 1
|
|
130
|
-
}
|
|
131
|
-
]
|
|
132
|
-
}
|
|
133
|
-
}
|
|
134
|
-
],
|
|
135
|
-
'auctionStart': 1587413920820,
|
|
136
|
-
'timeout': 1500,
|
|
137
|
-
'refererInfo': {
|
|
138
|
-
'page': 'https://novi.ba/clanak/176067/fast-car-beginner-s-guide-to-tuning-turbo-engines',
|
|
139
|
-
'reachedTop': true,
|
|
140
|
-
'numIframes': 0,
|
|
141
|
-
'stack': [
|
|
142
|
-
'https://novi.ba/clanak/176067/fast-car-beginner-s-guide-to-tuning-turbo-engines'
|
|
143
|
-
]
|
|
144
|
-
},
|
|
145
|
-
'start': 1587413920835,
|
|
146
|
-
ortb2: {
|
|
147
|
-
source: {
|
|
148
|
-
tid: 'mock-tid'
|
|
149
|
-
}
|
|
54
|
+
const bidderRequest = {
|
|
55
|
+
bidderCode: 'luponmedia',
|
|
56
|
+
gdprConsent: {
|
|
57
|
+
gdprApplies: true
|
|
150
58
|
},
|
|
59
|
+
uspConsent: true
|
|
151
60
|
};
|
|
152
61
|
|
|
153
|
-
it('sends bid request to
|
|
154
|
-
const
|
|
155
|
-
|
|
156
|
-
expect(
|
|
157
|
-
expect(
|
|
158
|
-
expect(
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
'secure': 1,
|
|
168
|
-
'ext': {'luponmedia': {'siteId': 303522, 'keyId': '4o2c4'}},
|
|
169
|
-
'banner': {'format': [{'w': 300, 'h': 250}]}
|
|
170
|
-
}],
|
|
171
|
-
'ext': {'prebid': {'targeting': {'includewinners': true, 'includebidderkeys': false}}},
|
|
172
|
-
'user': {'id': dynRes.user.id, 'buyeruid': '8d8b16cb-1383-4a0f-b4bb-0be28464d974'},
|
|
173
|
-
'site': {'page': 'https://novi.ba/clanak/176067/fast-car-beginner-s-guide-to-tuning-turbo-engines'}
|
|
174
|
-
});
|
|
62
|
+
it('sends bid request to default endpoint', function () {
|
|
63
|
+
const req = spec.buildRequests(bidRequests, bidderRequest);
|
|
64
|
+
|
|
65
|
+
expect(req.url).to.include('https://rtb.adxpremium.services/openrtb2/auction');
|
|
66
|
+
expect(req.method).to.equal('POST');
|
|
67
|
+
expect(req.data.imp[0].ext.luponmedia.placement_id).to.equal('test-div');
|
|
68
|
+
expect(req.data.imp[0].ext.luponmedia.keyId).to.equal('uid_test_300_600');
|
|
69
|
+
});
|
|
70
|
+
|
|
71
|
+
it('sends bid request to endpoint specified in keyId', function () {
|
|
72
|
+
bidRequests[0].params.keyId = 'uid@eu_test_300_600';
|
|
73
|
+
|
|
74
|
+
const req = spec.buildRequests(bidRequests, bidderRequest);
|
|
75
|
+
expect(req.url).to.include('https://eu.adxpremium.services/openrtb2/auction');
|
|
175
76
|
});
|
|
176
77
|
});
|
|
177
78
|
|
|
178
79
|
describe('interpretResponse', function () {
|
|
179
80
|
it('should get correct banner bid response', function () {
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
81
|
+
const response = {
|
|
82
|
+
id: 'resp-id',
|
|
83
|
+
seatbid: [
|
|
183
84
|
{
|
|
184
|
-
|
|
85
|
+
bid: [
|
|
185
86
|
{
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
'prebid': {
|
|
200
|
-
'targeting': {
|
|
201
|
-
'hb_bidder': 'luponmedia',
|
|
202
|
-
'hb_pb': '0.40',
|
|
203
|
-
'hb_size': '300x250'
|
|
87
|
+
id: 'bid123',
|
|
88
|
+
impid: 'bid123',
|
|
89
|
+
price: 0.43,
|
|
90
|
+
adm: '<div>Ad Markup</div>',
|
|
91
|
+
crid: 'creative-id',
|
|
92
|
+
w: 300,
|
|
93
|
+
h: 250,
|
|
94
|
+
ext: {
|
|
95
|
+
prebid: {
|
|
96
|
+
targeting: {
|
|
97
|
+
hb_bidder: 'luponmedia',
|
|
98
|
+
hb_pb: '0.40',
|
|
99
|
+
hb_size: '300x250'
|
|
204
100
|
},
|
|
205
|
-
|
|
101
|
+
type: 'banner'
|
|
206
102
|
}
|
|
207
103
|
}
|
|
208
104
|
}
|
|
209
105
|
],
|
|
210
|
-
|
|
106
|
+
seat: 'luponmedia'
|
|
211
107
|
}
|
|
212
108
|
],
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
'
|
|
219
|
-
'
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
}
|
|
109
|
+
cur: 'USD'
|
|
110
|
+
};
|
|
111
|
+
|
|
112
|
+
const bidRequests = [
|
|
113
|
+
{
|
|
114
|
+
bidId: 'bid123',
|
|
115
|
+
adUnitCode: 'test-div',
|
|
116
|
+
params: { keyId: 'uid_test_300_600' },
|
|
117
|
+
mediaTypes: { banner: { sizes: [[300, 250]] } }
|
|
223
118
|
}
|
|
119
|
+
];
|
|
120
|
+
|
|
121
|
+
const bidderRequest = { refererInfo: { referer: 'https://example.com' } };
|
|
122
|
+
const ortbRequest = converter.toORTB({ bidRequests, bidderRequest });
|
|
123
|
+
|
|
124
|
+
const result = spec.interpretResponse({ status: 200, body: response }, { data: ortbRequest });
|
|
125
|
+
|
|
126
|
+
expect(result).to.be.an('array').with.lengthOf(1);
|
|
127
|
+
expect(result[0]).to.include({
|
|
128
|
+
requestId: 'bid123',
|
|
129
|
+
cpm: 0.43,
|
|
130
|
+
width: 300,
|
|
131
|
+
height: 250,
|
|
132
|
+
creativeId: 'creative-id',
|
|
133
|
+
currency: 'USD',
|
|
134
|
+
ttl: 300,
|
|
135
|
+
ad: '<div>Ad Markup</div>'
|
|
136
|
+
});
|
|
137
|
+
});
|
|
138
|
+
|
|
139
|
+
it('should enrich bidResponse with crid, dealId, and referrer if missing', function () {
|
|
140
|
+
const response = {
|
|
141
|
+
id: 'resp-id',
|
|
142
|
+
seatbid: [
|
|
143
|
+
{
|
|
144
|
+
bid: [
|
|
145
|
+
{
|
|
146
|
+
id: 'bid456',
|
|
147
|
+
impid: 'bid456',
|
|
148
|
+
price: 0.75,
|
|
149
|
+
adm: '<div>Creative</div>',
|
|
150
|
+
crid: 'creative456',
|
|
151
|
+
dealid: 'deal789',
|
|
152
|
+
w: 300,
|
|
153
|
+
h: 250
|
|
154
|
+
}
|
|
155
|
+
],
|
|
156
|
+
seat: 'luponmedia'
|
|
157
|
+
}
|
|
158
|
+
],
|
|
159
|
+
cur: 'USD'
|
|
224
160
|
};
|
|
225
161
|
|
|
226
|
-
|
|
162
|
+
const bidRequests = [
|
|
227
163
|
{
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
'
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
'ttl': 300,
|
|
237
|
-
'referrer': '',
|
|
238
|
-
'ad': '<a href="https://novi.ba" target="_blank" style="position:absolute; width:300px; height:250px; z-index:5;"> </a><iframe src="https://lupon.media/vijestiba/300x250new/index.html" height="250" width="300" scrolling="no" frameborder="0"></iframe>',
|
|
239
|
-
'adomain': [
|
|
240
|
-
'mi.betrivers.com'
|
|
241
|
-
],
|
|
242
|
-
'meta': {
|
|
243
|
-
'advertiserDomains': [
|
|
244
|
-
'mi.betrivers.com'
|
|
245
|
-
]
|
|
164
|
+
bidId: 'bid456',
|
|
165
|
+
adUnitCode: 'test-div',
|
|
166
|
+
params: { keyId: 'uid_test_300_600' },
|
|
167
|
+
mediaTypes: { banner: { sizes: [[300, 250]] } },
|
|
168
|
+
ortb2: {
|
|
169
|
+
site: {
|
|
170
|
+
ref: 'https://mysite.com'
|
|
171
|
+
}
|
|
246
172
|
}
|
|
247
173
|
}
|
|
248
174
|
];
|
|
249
175
|
|
|
250
|
-
|
|
251
|
-
|
|
176
|
+
const bidderRequest = {
|
|
177
|
+
refererInfo: { referer: 'https://mysite.com' }
|
|
252
178
|
};
|
|
253
179
|
|
|
254
|
-
|
|
255
|
-
|
|
180
|
+
const ortbRequest = converter.toORTB({ bidRequests, bidderRequest });
|
|
181
|
+
|
|
182
|
+
const result = spec.interpretResponse({ status: 200, body: response }, { data: ortbRequest });
|
|
183
|
+
|
|
184
|
+
expect(result[0].creativeId).to.equal('creative456');
|
|
185
|
+
expect(result[0].dealId).to.equal('deal789');
|
|
186
|
+
expect(result[0].referrer).to.equal('https://mysite.com');
|
|
256
187
|
});
|
|
257
188
|
|
|
258
|
-
it('
|
|
259
|
-
|
|
189
|
+
it('should return empty array for unhandled response', function () {
|
|
190
|
+
const bidRequests = [{
|
|
191
|
+
bidId: 'bad-response',
|
|
192
|
+
adUnitCode: 'test-div',
|
|
193
|
+
params: { keyId: 'uid_test_300_600' },
|
|
194
|
+
mediaTypes: { banner: { sizes: [[300, 250]] } }
|
|
195
|
+
}];
|
|
196
|
+
const ortbRequest = converter.toORTB({ bidRequests, bidderRequest: {} });
|
|
260
197
|
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
}
|
|
264
|
-
let noBidResult = spec.interpretResponse({ body: noBidResponse }, noBidBidderRequest);
|
|
265
|
-
expect(noBidResult.length).to.equal(0);
|
|
198
|
+
const result = spec.interpretResponse({ status: 400, body: {} }, { data: ortbRequest });
|
|
199
|
+
expect(result).to.deep.equal([]);
|
|
266
200
|
});
|
|
267
201
|
});
|
|
268
202
|
|
|
269
203
|
describe('getUserSyncs', function () {
|
|
270
|
-
const
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
},
|
|
276
|
-
'tmaxrequest': 1500,
|
|
277
|
-
'usersyncs': {
|
|
278
|
-
'status': 'ok',
|
|
279
|
-
'bidder_status': [
|
|
204
|
+
const bidResponse = {
|
|
205
|
+
body: {
|
|
206
|
+
ext: {
|
|
207
|
+
usersyncs: {
|
|
208
|
+
bidder_status: [
|
|
280
209
|
{
|
|
281
|
-
|
|
282
|
-
'
|
|
283
|
-
'usersync': {
|
|
284
|
-
'url': 'https://adxpremium.services/api/usersync',
|
|
285
|
-
'type': 'redirect'
|
|
286
|
-
}
|
|
210
|
+
no_cookie: true,
|
|
211
|
+
usersync: { url: 'https://sync.img', type: 'image' }
|
|
287
212
|
},
|
|
288
213
|
{
|
|
289
|
-
|
|
290
|
-
'
|
|
291
|
-
'usersync': {
|
|
292
|
-
'url': 'https://adxpremium.services/api/iframeusersync',
|
|
293
|
-
'type': 'iframe'
|
|
294
|
-
}
|
|
214
|
+
no_cookie: true,
|
|
215
|
+
usersync: { url: 'https://sync.iframe', type: 'iframe' }
|
|
295
216
|
}
|
|
296
217
|
]
|
|
297
218
|
}
|
|
@@ -299,101 +220,42 @@ describe('luponmediaBidAdapter', function () {
|
|
|
299
220
|
}
|
|
300
221
|
};
|
|
301
222
|
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
'luponmedia': 233
|
|
307
|
-
},
|
|
308
|
-
'tmaxrequest': 1500,
|
|
309
|
-
'usersyncs': {
|
|
310
|
-
'status': 'no_cookie',
|
|
311
|
-
'bidder_status': []
|
|
312
|
-
}
|
|
313
|
-
}
|
|
314
|
-
}
|
|
315
|
-
};
|
|
316
|
-
|
|
317
|
-
it('should use a sync url from first response (pixel and iframe)', function () {
|
|
318
|
-
const syncs = spec.getUserSyncs({ pixelEnabled: true, iframeEnabled: true }, [bidResponse1, bidResponse2]);
|
|
319
|
-
expect(syncs).to.deep.equal([
|
|
320
|
-
{
|
|
321
|
-
type: 'image',
|
|
322
|
-
url: 'https://adxpremium.services/api/usersync'
|
|
323
|
-
},
|
|
324
|
-
{
|
|
325
|
-
type: 'iframe',
|
|
326
|
-
url: 'https://adxpremium.services/api/iframeusersync'
|
|
327
|
-
}
|
|
328
|
-
]);
|
|
329
|
-
});
|
|
330
|
-
|
|
331
|
-
it('handle empty response (e.g. timeout)', function () {
|
|
332
|
-
const syncs = spec.getUserSyncs({ pixelEnabled: true, iframeEnabled: true }, []);
|
|
333
|
-
expect(syncs).to.deep.equal([]);
|
|
223
|
+
it('should return empty syncs when not pixel or iframe enabled', function () {
|
|
224
|
+
resetUserSync();
|
|
225
|
+
const syncs = spec.getUserSyncs({ pixelEnabled: false, iframeEnabled: false }, [bidResponse]);
|
|
226
|
+
expect(syncs.length).to.equal(0);
|
|
334
227
|
});
|
|
335
228
|
|
|
336
|
-
it('returns
|
|
337
|
-
|
|
338
|
-
|
|
229
|
+
it('returns pixel syncs when pixel enabled and iframe not enabled', function () {
|
|
230
|
+
resetUserSync();
|
|
231
|
+
const syncs = spec.getUserSyncs({ pixelEnabled: true, iframeEnabled: false }, [bidResponse]);
|
|
232
|
+
expect(syncs).to.deep.include({ type: 'image', url: 'https://sync.img' });
|
|
339
233
|
});
|
|
340
234
|
|
|
341
|
-
it('returns
|
|
235
|
+
it('returns iframe syncs when iframe enabled and pixel not enabled', function () {
|
|
342
236
|
resetUserSync();
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
expect(syncs).to.deep.equal([
|
|
346
|
-
{
|
|
347
|
-
type: 'image',
|
|
348
|
-
url: 'https://adxpremium.services/api/usersync'
|
|
349
|
-
}
|
|
350
|
-
]);
|
|
237
|
+
const syncs = spec.getUserSyncs({ pixelEnabled: false, iframeEnabled: true }, [bidResponse]);
|
|
238
|
+
expect(syncs).to.deep.include({ type: 'iframe', url: 'https://sync.iframe' });
|
|
351
239
|
});
|
|
352
240
|
|
|
353
|
-
it('returns
|
|
241
|
+
it('returns both syncs when both iframe and pixel enabled', function () {
|
|
354
242
|
resetUserSync();
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
{
|
|
359
|
-
type: 'iframe',
|
|
360
|
-
url: 'https://adxpremium.services/api/iframeusersync'
|
|
361
|
-
}
|
|
243
|
+
const syncs = spec.getUserSyncs({ pixelEnabled: true, iframeEnabled: true }, [bidResponse]);
|
|
244
|
+
expect(syncs).to.deep.include.members([
|
|
245
|
+
{ type: 'image', url: 'https://sync.img' },
|
|
246
|
+
{ type: 'iframe', url: 'https://sync.iframe' }
|
|
362
247
|
]);
|
|
363
248
|
});
|
|
364
|
-
});
|
|
365
249
|
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
const
|
|
369
|
-
|
|
370
|
-
'complete': 1,
|
|
371
|
-
'nodes': [
|
|
372
|
-
{
|
|
373
|
-
'asi': 'novi.ba',
|
|
374
|
-
'sid': '199424',
|
|
375
|
-
'hp': 1
|
|
376
|
-
}
|
|
377
|
-
]
|
|
378
|
-
};
|
|
379
|
-
|
|
380
|
-
const checkSchain = hasValidSupplyChainParams(schain);
|
|
381
|
-
expect(checkSchain).to.equal(true);
|
|
250
|
+
it('returns no syncs when usersyncs object missing', function () {
|
|
251
|
+
const emptyResponse = { body: { ext: {} } };
|
|
252
|
+
const syncs = spec.getUserSyncs({ pixelEnabled: true, iframeEnabled: true }, [emptyResponse]);
|
|
253
|
+
expect(syncs).to.deep.equal([]);
|
|
382
254
|
});
|
|
383
255
|
|
|
384
|
-
it('returns
|
|
385
|
-
const
|
|
386
|
-
|
|
387
|
-
'complete': 1,
|
|
388
|
-
'nodes': [
|
|
389
|
-
{
|
|
390
|
-
'invalid': 'novi.ba'
|
|
391
|
-
}
|
|
392
|
-
]
|
|
393
|
-
};
|
|
394
|
-
|
|
395
|
-
const checkSchain = hasValidSupplyChainParams(schain);
|
|
396
|
-
expect(checkSchain).to.equal(false);
|
|
256
|
+
it('returns empty syncs on empty response array', function () {
|
|
257
|
+
const syncs = spec.getUserSyncs({ pixelEnabled: true, iframeEnabled: true }, []);
|
|
258
|
+
expect(syncs).to.deep.equal([]);
|
|
397
259
|
});
|
|
398
260
|
});
|
|
399
261
|
});
|
|
@@ -152,7 +152,7 @@ describe('mediaeyes adapter', function () {
|
|
|
152
152
|
let request = spec.buildRequests(newRequest);
|
|
153
153
|
let data = JSON.parse(request[0].data);
|
|
154
154
|
data = data.imp[0];
|
|
155
|
-
expect(data.bidfloor).to.equal(0);
|
|
155
|
+
expect(data.bidfloor).to.equal(0);
|
|
156
156
|
});
|
|
157
157
|
|
|
158
158
|
it('floormodule if currency is not matched', function () {
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { expect } from 'chai';
|
|
2
|
-
import {find} from 'src/polyfill.js';
|
|
3
2
|
import { spec } from 'modules/mediakeysBidAdapter.js';
|
|
4
3
|
import { newBidder } from 'src/adapters/bidderFactory.js';
|
|
5
4
|
import * as utils from 'src/utils.js';
|
|
@@ -247,7 +246,7 @@ describe('mediakeysBidAdapter', function () {
|
|
|
247
246
|
expect(data.imp[0].native.request.plcmttype).to.equal(1);
|
|
248
247
|
expect(data.imp[0].native.request.assets.length).to.equal(6);
|
|
249
248
|
// find the asset body
|
|
250
|
-
const bodyAsset =
|
|
249
|
+
const bodyAsset = data.imp[0].native.request.assets.find(asset => asset.id === 6);
|
|
251
250
|
expect(bodyAsset.data.type).to.equal(2);
|
|
252
251
|
});
|
|
253
252
|
|
|
@@ -130,6 +130,13 @@ describe('MediaSquare bid adapter tests', function () {
|
|
|
130
130
|
}
|
|
131
131
|
}
|
|
132
132
|
},
|
|
133
|
+
userIdAsEids: [{
|
|
134
|
+
"source": "superid.com",
|
|
135
|
+
"uids": [{
|
|
136
|
+
"id": "12345678",
|
|
137
|
+
"atype": 1
|
|
138
|
+
}]
|
|
139
|
+
}],
|
|
133
140
|
gdprConsent: {
|
|
134
141
|
gdprApplies: true,
|
|
135
142
|
consentString: 'BOzZdA0OzZdA0AGABBENDJ-AAAAvh7_______9______9uz_Ov_v_f__33e8__9v_l_7_-___u_-33d4-_1vf99yfm1-7ftr3tp_87ues2_Xur__79__3z3_9pxP78k89r7337Mw_v-_v-b7JCPN_Y3v-8Kg',
|
|
@@ -163,10 +170,14 @@ describe('MediaSquare bid adapter tests', function () {
|
|
|
163
170
|
expect(requestContent.codes[0]).to.have.property('code').and.to.equal('publishername_atf_desktop_rg_pave');
|
|
164
171
|
expect(requestContent.codes[0]).to.have.property('adunit').and.to.equal('banner-div');
|
|
165
172
|
expect(requestContent.codes[0]).to.have.property('bidId').and.to.equal('aaaa1234');
|
|
166
|
-
expect(requestContent.codes[0]).to.have.property('auctionId')
|
|
167
|
-
expect(requestContent.codes[0]).to.have.property('transactionId')
|
|
173
|
+
expect(requestContent.codes[0]).not.to.have.property('auctionId');
|
|
174
|
+
expect(requestContent.codes[0]).not.to.have.property('transactionId');
|
|
168
175
|
expect(requestContent.codes[0]).to.have.property('mediatypes').exist;
|
|
169
176
|
expect(requestContent.codes[0]).to.have.property('floor').exist;
|
|
177
|
+
expect(requestContent.codes[0]).to.have.property('ortb2Imp').exist;
|
|
178
|
+
expect(requestContent).to.have.property('ortb2').exist;
|
|
179
|
+
expect(requestContent.eids).exist;
|
|
180
|
+
expect(requestContent.eids).to.have.lengthOf(1);
|
|
170
181
|
expect(requestContent.codes[0].floor).to.deep.equal({});
|
|
171
182
|
expect(requestContent).to.have.property('dsa');
|
|
172
183
|
const requestfloor = spec.buildRequests(FLOORS_PARAMS, DEFAULT_OPTIONS);
|