Skip to content

Commit

Permalink
Zeta Global SSP Bid Adapter: Added support for video.plcmt (#10009)
Browse files Browse the repository at this point in the history
  • Loading branch information
abermanov-zeta committed May 30, 2023
1 parent 5199712 commit f7a64c6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions modules/zeta_global_sspBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ const VIDEO_CUSTOM_PARAMS = {
'battr': DATA_TYPES.ARRAY,
'linearity': DATA_TYPES.NUMBER,
'placement': DATA_TYPES.NUMBER,
'plcmt': DATA_TYPES.NUMBER,
'minbitrate': DATA_TYPES.NUMBER,
'maxbitrate': DATA_TYPES.NUMBER,
'skip': DATA_TYPES.NUMBER
Expand Down
4 changes: 4 additions & 0 deletions test/spec/modules/zeta_global_sspBidAdapter_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,8 @@ describe('Zeta Ssp Bid Adapter', function () {
mimes: ['video/mp4'],
minduration: 5,
maxduration: 30,
placement: 2,
plcmt: 1,
protocols: [2, 3]
}
},
Expand Down Expand Up @@ -326,6 +328,8 @@ describe('Zeta Ssp Bid Adapter', function () {
expect(payload.imp[0].video.mimes).to.eql(videoRequest[0].mediaTypes.video.mimes);
expect(payload.imp[0].video.w).to.eql(720);
expect(payload.imp[0].video.h).to.eql(340);
expect(payload.imp[0].video.placement).to.eql(videoRequest[0].mediaTypes.video.placement);
expect(payload.imp[0].video.plcmt).to.eql(videoRequest[0].mediaTypes.video.plcmt);

expect(payload.imp[0].banner).to.be.undefined;
});
Expand Down

0 comments on commit f7a64c6

Please sign in to comment.