Skip to content

Commit

Permalink
Inskin Bid Adapter: send screen size in the ad call (prebid#6316)
Browse files Browse the repository at this point in the history
  • Loading branch information
cciocov authored and seergiioo6 committed Mar 23, 2021
1 parent 1f19794 commit 420e435
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion modules/inskinBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,12 @@ export const spec = {

placement.adTypes.push(5, 9, 163, 2163, 3006);

placement.properties = placement.properties || {};

placement.properties.screenWidth = screen.width;
placement.properties.screenHeight = screen.height;

if (restrictions.length) {
placement.properties = placement.properties || {};
placement.properties.restrictions = restrictions;
}

Expand Down
2 changes: 1 addition & 1 deletion test/spec/modules/inskinBidAdapter_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ describe('InSkin BidAdapter', function () {
const payload = JSON.parse(request.data);

expect(payload.keywords).to.be.an('array').that.is.empty;
expect(payload.placements[0].properties).to.be.undefined;
expect(payload.placements[0].properties.restrictions).to.be.undefined;
});

it('should add keywords if TCF v2 purposes are not granted', function () {
Expand Down

0 comments on commit 420e435

Please sign in to comment.