diff --git a/modules/dailymotionBidAdapter.js b/modules/dailymotionBidAdapter.js index 5cde05c217c..2c0f5340e78 100644 --- a/modules/dailymotionBidAdapter.js +++ b/modules/dailymotionBidAdapter.js @@ -86,6 +86,7 @@ export const spec = { }, }, sizes: bid.sizes || [], + adUnitCode: bid.adUnitCode || '', }, video_metadata: getVideoMetadata(bid), }, diff --git a/test/spec/modules/dailymotionBidAdapter_spec.js b/test/spec/modules/dailymotionBidAdapter_spec.js index 9e5bfb049ef..c296a983f10 100644 --- a/test/spec/modules/dailymotionBidAdapter_spec.js +++ b/test/spec/modules/dailymotionBidAdapter_spec.js @@ -35,6 +35,7 @@ describe('dailymotionBidAdapterTests', () => { const bidRequestData = [{ auctionId: 'b06c5141-fe8f-4cdf-9d7d-54415490a917', bidId: 123456, + adUnitCode: 'preroll', mediaTypes: { video: { playerSize: [[1280, 720]], @@ -83,7 +84,7 @@ describe('dailymotionBidAdapterTests', () => { expect(reqData.config).to.eql(dmConfig); expect(reqData.coppa).to.be.true; - expect(reqData.bidder_request).to.eql(bidderRequestData) + expect(reqData.bidder_request).to.eql(bidderRequestData); expect(reqData.request.auctionId).to.eql(bidRequestData[0].auctionId); expect(reqData.request.bidId).to.eql(bidRequestData[0].bidId); expect(reqData.request.mediaTypes.video.api).to.eql(bidRequestData[0].mediaTypes.video.api); @@ -140,6 +141,7 @@ describe('dailymotionBidAdapterTests', () => { expect(reqData.request).to.eql({ auctionId: '', bidId: '', + adUnitCode: '', mediaTypes: { video: { playerSize: [],