Skip to content

Commit

Permalink
[:art:] fix: set minduration and maxduration to optional (prebid#3) (p…
Browse files Browse the repository at this point in the history
…rebid#8290)

* [:art:] fix: set minduration and maxduration to optional
  • Loading branch information
ramyferjaniadot authored and JoelPM committed Apr 25, 2022
1 parent a9a2d2d commit d7e6ecf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion modules/adotBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 };
Expand Down
2 changes: 1 addition & 1 deletion test/spec/modules/adotBidAdapter_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
})
Expand Down

0 comments on commit d7e6ecf

Please sign in to comment.