Skip to content

Commit

Permalink
fix size mapping for s2s (#1175)
Browse files Browse the repository at this point in the history
  • Loading branch information
Matt Kendall authored and Nate Cozi committed May 4, 2017
1 parent 40a8848 commit 7fba6dd
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/adaptermanager.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 7fba6dd

Please sign in to comment.