Skip to content

Commit

Permalink
fix error for issue prebid#6294
Browse files Browse the repository at this point in the history
  • Loading branch information
stevealliance committed Feb 11, 2021
1 parent 27a50a4 commit d80afa1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion modules/districtmDMXBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ const VIDEO_MAPPING = {
export const spec = {
code: BIDDER_CODE,
gvlid: GVLID,
aliases: ['dmx'],
supportedFormat: [BANNER, VIDEO],
supportedMediaTypes: [VIDEO, BANNER],
isBidRequestValid(bid) {
Expand All @@ -43,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 && nBid.mediaType === 'video') {
if (nBid.mediaType === 'video') {
nBid.vastXml = cleanVast(nBid.adm, nBid.nurl);
nBid.ttl = 3600;
}
Expand Down

0 comments on commit d80afa1

Please sign in to comment.