Skip to content

Commit

Permalink
Update ttl outstream (#6253)
Browse files Browse the repository at this point in the history
* 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 <steve@districtm.ca>
Co-authored-by: Luis <luissastreverzun@gmail.com>
Co-authored-by: Steve Alliance <stevealliance@Steves-Air.localdomain>
Co-authored-by: Steve Alliance <stevealliance@Steves-MacBook-Air.local>
Co-authored-by: steve-a-districtm <steve@districtm.net>
Co-authored-by: Steve Alliance <stevealliance@DMMBP-C02WXCFAJG5H.local>
  • Loading branch information
7 people authored Feb 16, 2021
1 parent c94ee67 commit 59ef811
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion modules/districtmDMXBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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) {
Expand All @@ -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;
}
Expand Down

0 comments on commit 59ef811

Please sign in to comment.