Skip to content

Commit 59ef811

Browse files
steveallianceSteve Alliancelsv1Steve AllianceSteve Alliance
authored
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 e4bbbe5 * 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 <[email protected]> Co-authored-by: Luis <[email protected]> Co-authored-by: Steve Alliance <[email protected]> Co-authored-by: Steve Alliance <[email protected]> Co-authored-by: steve-a-districtm <[email protected]> Co-authored-by: Steve Alliance <[email protected]>
1 parent c94ee67 commit 59ef811

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

modules/districtmDMXBidAdapter.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ const BIDDER_CODE = 'districtmDMX';
77

88
const DMXURI = 'https://dmx.districtm.io/b/v1';
99

10+
const GVLID = 144;
1011
const VIDEO_MAPPING = {
1112
playback_method: {
1213
'auto_play_sound_on': 1,
@@ -19,6 +20,8 @@ const VIDEO_MAPPING = {
1920
};
2021
export const spec = {
2122
code: BIDDER_CODE,
23+
gvlid: GVLID,
24+
aliases: ['dmx'],
2225
supportedFormat: [BANNER, VIDEO],
2326
supportedMediaTypes: [VIDEO, BANNER],
2427
isBidRequestValid(bid) {
@@ -41,7 +44,7 @@ export const spec = {
4144
nBid.height = nBid.h || height;
4245
nBid.ttl = 300;
4346
nBid.mediaType = bid.mediaTypes && bid.mediaTypes.video ? 'video' : 'banner';
44-
if (nBid.mediaType) {
47+
if (nBid.mediaType === 'video') {
4548
nBid.vastXml = cleanVast(nBid.adm, nBid.nurl);
4649
nBid.ttl = 3600;
4750
}

0 commit comments

Comments
 (0)