From 3c60f6fcf35b5599d341fbbfd95cc33fb2614735 Mon Sep 17 00:00:00 2001 From: abermanov-zeta <95416296+abermanov-zeta@users.noreply.github.com> Date: Tue, 30 May 2023 14:48:51 +0200 Subject: [PATCH] Zeta Global SSP Bid Adapter: Added support for video.plcmt (#10009) --- modules/zeta_global_sspBidAdapter.js | 1 + test/spec/modules/zeta_global_sspBidAdapter_spec.js | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/modules/zeta_global_sspBidAdapter.js b/modules/zeta_global_sspBidAdapter.js index 531384b9f27..8ad6fc2305e 100644 --- a/modules/zeta_global_sspBidAdapter.js +++ b/modules/zeta_global_sspBidAdapter.js @@ -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 diff --git a/test/spec/modules/zeta_global_sspBidAdapter_spec.js b/test/spec/modules/zeta_global_sspBidAdapter_spec.js index c3678427a9a..6a99560b9cb 100644 --- a/test/spec/modules/zeta_global_sspBidAdapter_spec.js +++ b/test/spec/modules/zeta_global_sspBidAdapter_spec.js @@ -137,6 +137,8 @@ describe('Zeta Ssp Bid Adapter', function () { mimes: ['video/mp4'], minduration: 5, maxduration: 30, + placement: 2, + plcmt: 1, protocols: [2, 3] } }, @@ -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; });