Skip to content

Commit c96722d

Browse files
[:art:] fix: set minduration and maxduration to optional (#3) (prebid#8290)
* [:art:] fix: set minduration and maxduration to optional
1 parent f359b08 commit c96722d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

modules/adotBidAdapter.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ const BIDDER_CODE = 'adot';
1010
const ADAPTER_VERSION = 'v2.0.0';
1111
const BID_METHOD = 'POST';
1212
const BIDDER_URL = 'https://dsp.adotmob.com/headerbidding{PUBLISHER_PATH}/bidrequest';
13-
const REQUIRED_VIDEO_PARAMS = ['mimes', 'minduration', 'maxduration', 'protocols'];
13+
const REQUIRED_VIDEO_PARAMS = ['mimes', 'protocols'];
1414
const DOMAIN_REGEX = new RegExp('//([^/]*)');
1515
const FIRST_PRICE = 1;
1616
const IMP_BUILDER = { banner: buildBanner, video: buildVideo, native: buildNative };

test/spec/modules/adotBidAdapter_spec.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ describe('Adot Adapter', function () {
1212
})
1313

1414
it('should return true if video and isValidVideo', function () {
15-
const bid = { mediaTypes: { video: { 'mimes': 1, 'minduration': 1, 'maxduration': 1, 'protocols': 1 } } };
15+
const bid = { mediaTypes: { video: { 'mimes': 1, 'protocols': 1 } } };
1616
const isBidRequestValid = spec.isBidRequestValid(bid);
1717
expect(isBidRequestValid).to.equal(true);
1818
})

0 commit comments

Comments
 (0)