Skip to content

Commit

Permalink
mediasquare Bid Adapter: minor change with floors (#11100)
Browse files Browse the repository at this point in the history
  • Loading branch information
matthieularere-msq authored Feb 14, 2024
1 parent 7fbe4e9 commit 8df7a80
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions modules/mediasquareBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,8 @@ export const spec = {
if (tmpFloor != {}) { floor[value.join('x')] = tmpFloor; }
});
}
let tmpFloor = adunitValue.getFloor({currency: 'USD', mediaType: '*', size: '*'});
if (tmpFloor != {}) { floor['*'] = tmpFloor; }
}
codes.push({
owner: adunitValue.params.owner,
Expand Down
1 change: 1 addition & 0 deletions test/spec/modules/mediasquareBidAdapter_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,7 @@ describe('MediaSquare bid adapter tests', function () {
const responsefloor = JSON.parse(requestfloor.data);
expect(responsefloor.codes[0]).to.have.property('floor').exist;
expect(responsefloor.codes[0].floor).to.have.property('300x250').and.to.have.property('floor').and.to.equal(1);
expect(responsefloor.codes[0].floor).to.have.property('*');
});

it('Verify parse response', function () {
Expand Down

0 comments on commit 8df7a80

Please sign in to comment.