Skip to content

Commit

Permalink
Merge pull request #2 from districtm/patch-ttl
Browse files Browse the repository at this point in the history
Change default ttl value
  • Loading branch information
steve-a-districtm authored Nov 27, 2020
2 parents 4c094f5 + 5697053 commit e5d76cf
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 e5d76cf

Please sign in to comment.