Skip to content

Commit

Permalink
fix prebid server playerwidth and height (#6073)
Browse files Browse the repository at this point in the history
Co-authored-by: Reinout Stevens <reinout@crazygames.com>
  • Loading branch information
ReinoutStevens and Reinout Stevens authored Dec 7, 2020
1 parent 5f6dab3 commit dbd0d84
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/prebidServerBidAdapter/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -750,8 +750,8 @@ const OPEN_RTB_PROTOCOL = {
if (utils.deepAccess(bid, 'ext.prebid.type') === VIDEO) {
bidObject.mediaType = VIDEO;
let sizes = bidRequest.sizes && bidRequest.sizes[0];
bidObject.playerHeight = sizes[0];
bidObject.playerWidth = sizes[1];
bidObject.playerWidth = sizes[0];
bidObject.playerHeight = sizes[1];

// try to get cache values from 'response.ext.prebid.cache.js'
// else try 'bid.ext.prebid.targeting' as fallback
Expand Down

0 comments on commit dbd0d84

Please sign in to comment.