Skip to content

Commit

Permalink
Merge pull request #35 from 33Across/video_size_fix
Browse files Browse the repository at this point in the history
fix for sizes + valid sample GUID
  • Loading branch information
curlyblueeagle authored Nov 4, 2020
2 parents 7fedd5a + f3ab865 commit 3bcbced
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 8 deletions.
3 changes: 1 addition & 2 deletions modules/33acrossBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -337,8 +337,7 @@ function _buildVideoORTB(bidRequest) {

const video = {}

const sizes = videoAdUnit.playerSize || [];
const {w, h} = _getSize(sizes);
const {w, h} = _getSize(videoParams.playerSize[0]);
video.w = w;
video.h = h;

Expand Down
10 changes: 5 additions & 5 deletions modules/33acrossBidAdapter.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ var adUnits = [
bids: [{
bidder: '33across',
params: {
siteId: 'sampleGUID123',
productId: 'siab|inview'
siteId: 'sample33xGUID123456789',
productId: 'siab'
}
}]
}
Expand Down Expand Up @@ -73,7 +73,7 @@ var adUnits = [
bids: [{
bidder: '33across',
params: {
siteId: 'sampleGUID123',
siteId: 'sample33xGUID123456789',
productId: 'siab'
}
}]
Expand Down Expand Up @@ -123,7 +123,7 @@ var adUnits = [
bids: [{
bidder: '33across',
params: {
siteId: 'sampleGUID123',
siteId: 'sample33xGUID123456789',
productId: 'siab'
}
}]
Expand All @@ -146,7 +146,7 @@ var adUnits = [
bids: [{
bidder: '33across',
params: {
siteId: 'sampleGUID123',
siteId: 'sample33xGUID123456789',
productId: 'instream'
}
}]
Expand Down
2 changes: 1 addition & 1 deletion test/spec/modules/33acrossBidAdapter_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ describe('33acrossBidAdapter:', function () {

this.withVideo = (params) => {
bidRequests[0].mediaTypes.video = {
playerSize: [300, 250],
playerSize: [[300, 250]],
context: 'outstream',
...params
};
Expand Down

0 comments on commit 3bcbced

Please sign in to comment.