Skip to content

Commit

Permalink
fix size mapping for s2s (prebid#1175)
Browse files Browse the repository at this point in the history
  • Loading branch information
Matt Kendall authored and dluxemburg committed Jul 17, 2018
1 parent a1c36d6 commit 63b8877
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 63b8877

Please sign in to comment.