Skip to content

Commit

Permalink
Change default ttl value
Browse files Browse the repository at this point in the history
Change default ttl value for banner and video
  • Loading branch information
steve-a-districtm authored Nov 27, 2020
1 parent 4c094f5 commit 5697053
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 @@ -39,9 +39,11 @@ export const spec = {
nBid.requestId = nBid.impid;
nBid.width = nBid.w || width;
nBid.height = nBid.h || height;
nBid.ttl = 360;
nBid.mediaType = bid.mediaTypes && bid.mediaTypes.video ? 'video' : 'banner';
if (nBid.mediaType) {
nBid.vastXml = cleanVast(nBid.adm, nBid.nurl);
nBid.ttl = 3600;
}
if (nBid.dealid) {
nBid.dealId = nBid.dealid;
Expand All @@ -51,7 +53,6 @@ export const spec = {
nBid.netRevenue = true;
nBid.creativeId = nBid.crid;
nBid.currency = 'USD';
nBid.ttl = 60;
nBid.meta = nBid.meta || {};
if (nBid.adomain && nBid.adomain.length > 0) {
nBid.meta.advertiserDomains = nBid.adomain;
Expand Down

0 comments on commit 5697053

Please sign in to comment.