From 59ef8113628ef05ada2990d25c4f677c87d9eeec Mon Sep 17 00:00:00 2001 From: Steve Alliance Date: Tue, 16 Feb 2021 12:01:34 -0500 Subject: [PATCH] Update ttl outstream (#6253) * adding DMX test @97%, two files added one updated * Update districtm_spec.js * Update districtmDMX.js * adding all districtm needed file * remove legacy file * remove typo || 0 in the test method * force default to return a valid width and height * update unit test code for failing test * changed class for an object * remove package-lock.json * change file name for dmx adapter * renamed files * restaure package-lock.json * update to last package-lock state * update gdpr user consent * fix sizes issue * Documentation updates Adding the readme.md info * update file name and update unit testing import file location * current machine state * lint correction * remove variable assigment duplicate * adding CCPA support for DMX * adding test for ccpa and gdpr * districtm dmx adding deal id field * idsync support ccpa & gdpr * merge forked * stop mediatype changing ttl * remove lint error * adding gvlid for dmx * removing change Removing change from on commit PR file package-lock.json * update file Removing comments on DMX adapter * Revert "removing change" This reverts commit e4bbbe55 * adding aliases base on ticket #6294 * update file Removing comments on DMX adapter * fix error for issue #6294 * file removal from PR Co-authored-by: Steve Alliance Co-authored-by: Luis Co-authored-by: Steve Alliance Co-authored-by: Steve Alliance Co-authored-by: steve-a-districtm Co-authored-by: Steve Alliance --- modules/districtmDMXBidAdapter.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/modules/districtmDMXBidAdapter.js b/modules/districtmDMXBidAdapter.js index f01c3c2ce9f..ec0a0a2f2e6 100644 --- a/modules/districtmDMXBidAdapter.js +++ b/modules/districtmDMXBidAdapter.js @@ -7,6 +7,7 @@ const BIDDER_CODE = 'districtmDMX'; const DMXURI = 'https://dmx.districtm.io/b/v1'; +const GVLID = 144; const VIDEO_MAPPING = { playback_method: { 'auto_play_sound_on': 1, @@ -19,6 +20,8 @@ const VIDEO_MAPPING = { }; export const spec = { code: BIDDER_CODE, + gvlid: GVLID, + aliases: ['dmx'], supportedFormat: [BANNER, VIDEO], supportedMediaTypes: [VIDEO, BANNER], isBidRequestValid(bid) { @@ -41,7 +44,7 @@ export const spec = { nBid.height = nBid.h || height; nBid.ttl = 300; nBid.mediaType = bid.mediaTypes && bid.mediaTypes.video ? 'video' : 'banner'; - if (nBid.mediaType) { + if (nBid.mediaType === 'video') { nBid.vastXml = cleanVast(nBid.adm, nBid.nurl); nBid.ttl = 3600; }