From c96722dfa6bc2e3cb1ec7123e80c7bcd766ead12 Mon Sep 17 00:00:00 2001 From: ramyferjaniadot <90328697+ramyferjaniadot@users.noreply.github.com> Date: Mon, 18 Apr 2022 20:41:51 +0200 Subject: [PATCH] [:art:] fix: set minduration and maxduration to optional (#3) (#8290) * [:art:] fix: set minduration and maxduration to optional --- modules/adotBidAdapter.js | 2 +- test/spec/modules/adotBidAdapter_spec.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/adotBidAdapter.js b/modules/adotBidAdapter.js index a28ab4257df..ac49f7ae32d 100644 --- a/modules/adotBidAdapter.js +++ b/modules/adotBidAdapter.js @@ -10,7 +10,7 @@ const BIDDER_CODE = 'adot'; const ADAPTER_VERSION = 'v2.0.0'; const BID_METHOD = 'POST'; const BIDDER_URL = 'https://dsp.adotmob.com/headerbidding{PUBLISHER_PATH}/bidrequest'; -const REQUIRED_VIDEO_PARAMS = ['mimes', 'minduration', 'maxduration', 'protocols']; +const REQUIRED_VIDEO_PARAMS = ['mimes', 'protocols']; const DOMAIN_REGEX = new RegExp('//([^/]*)'); const FIRST_PRICE = 1; const IMP_BUILDER = { banner: buildBanner, video: buildVideo, native: buildNative }; diff --git a/test/spec/modules/adotBidAdapter_spec.js b/test/spec/modules/adotBidAdapter_spec.js index c180a5f79f7..81b9c5e15e9 100644 --- a/test/spec/modules/adotBidAdapter_spec.js +++ b/test/spec/modules/adotBidAdapter_spec.js @@ -12,7 +12,7 @@ describe('Adot Adapter', function () { }) it('should return true if video and isValidVideo', function () { - const bid = { mediaTypes: { video: { 'mimes': 1, 'minduration': 1, 'maxduration': 1, 'protocols': 1 } } }; + const bid = { mediaTypes: { video: { 'mimes': 1, 'protocols': 1 } } }; const isBidRequestValid = spec.isBidRequestValid(bid); expect(isBidRequestValid).to.equal(true); })