Skip to content

Commit

Permalink
Criteo Bid Adapter: add support for video.plcmt (#9975)
Browse files Browse the repository at this point in the history
  • Loading branch information
Pgb-Criteo authored May 19, 2023
1 parent 69c8db8 commit 73a1a72
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
3 changes: 2 additions & 1 deletion modules/criteoBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -485,7 +485,8 @@ function buildCdbRequest(context, bidRequests, bidderRequest) {
placement: bidRequest.mediaTypes.video.placement,
minduration: bidRequest.mediaTypes.video.minduration,
playbackmethod: bidRequest.mediaTypes.video.playbackmethod,
startdelay: bidRequest.mediaTypes.video.startdelay
startdelay: bidRequest.mediaTypes.video.startdelay,
plcmt: bidRequest.mediaTypes.video.plcmt
};
const paramsVideo = bidRequest.params.video;
if (paramsVideo !== undefined) {
Expand Down
7 changes: 5 additions & 2 deletions test/spec/modules/criteoBidAdapter_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,8 @@ describe('The Criteo bidding adapter', function () {
placement: 1,
minduration: 0,
playbackmethod: 1,
startdelay: 0
startdelay: 0,
plcmt: 1
}
},
params: {
Expand Down Expand Up @@ -1099,7 +1100,8 @@ describe('The Criteo bidding adapter', function () {
mimes: ['video/mp4', 'video/x-flv'],
maxduration: 30,
api: [1, 2],
protocols: [2, 3]
protocols: [2, 3],
plcmt: 3
}
},
params: {
Expand Down Expand Up @@ -1129,6 +1131,7 @@ describe('The Criteo bidding adapter', function () {
expect(ortbRequest.slots[0].video.startdelay).to.equal(5);
expect(ortbRequest.slots[0].video.playbackmethod).to.deep.equal([1, 3]);
expect(ortbRequest.slots[0].video.placement).to.equal(2);
expect(ortbRequest.slots[0].video.plcmt).to.equal(3);
});

it('should properly build a video request with more than one player size', function () {
Expand Down

0 comments on commit 73a1a72

Please sign in to comment.