From 7fba6dd2ffb7ad47f4b32d7f179dca2c22d6e621 Mon Sep 17 00:00:00 2001 From: Matt Kendall Date: Wed, 3 May 2017 21:45:52 -0400 Subject: [PATCH] fix size mapping for s2s (#1175) --- src/adaptermanager.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/adaptermanager.js b/src/adaptermanager.js index 062f6ad4ea2..27c5ddca30b 100644 --- a/src/adaptermanager.js +++ b/src/adaptermanager.js @@ -69,6 +69,10 @@ exports.callBids = ({adUnits, cbTimeout}) => { //filter out client side bids adUnitsCopy.forEach((adUnit) => { + if (adUnit.sizeMapping) { + adUnit.sizes = mapSizes(adUnit); + delete adUnit.sizeMapping; + } adUnit.sizes = transformHeightWidth(adUnit); adUnit.bids = adUnit.bids.filter((bid) => { return adaptersServerSide.includes(bid.bidder);