From 2b452a021ae880f82c5c9dfa8305cda7bc1aa7b7 Mon Sep 17 00:00:00 2001 From: Egor Gordeev Date: Tue, 8 Dec 2020 20:39:04 +0400 Subject: [PATCH] EX-2549 Address Jon's comments --- modules/sovrnBidAdapter.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/modules/sovrnBidAdapter.js b/modules/sovrnBidAdapter.js index ce7874308fb..2b70afdb8a7 100644 --- a/modules/sovrnBidAdapter.js +++ b/modules/sovrnBidAdapter.js @@ -30,7 +30,6 @@ export const spec = { let eids; let tpid = [] let criteoId; - let imp; utils._each(bidReqs, function (bid) { if (!eids && bid.userId) { @@ -54,7 +53,7 @@ export const spec = { bidSizes = ((utils.isArray(bidSizes) && utils.isArray(bidSizes[0])) ? bidSizes : [bidSizes]) bidSizes = bidSizes.filter(size => utils.isArray(size)) const processedSizes = bidSizes.map(size => ({w: parseInt(size[0], 10), h: parseInt(size[1], 10)})) - imp = { + const imp = { adunitcode: bid.adUnitCode, id: bid.bidId, banner: { @@ -66,8 +65,6 @@ export const spec = { bidfloor: utils.getBidIdParameter('bidfloor', bid.params) } - sovrnImps.push(imp); - const segmentsString = utils.getBidIdParameter('segments', bid.params) if (segmentsString) { @@ -75,6 +72,8 @@ export const spec = { deals: segmentsString.split(',') } } + + sovrnImps.push(imp); }); const page = bidderRequest.refererInfo.referer