Skip to content

Commit

Permalink
Dailymotion Bid Adaptor: add support for sending adUnitCode
Browse files Browse the repository at this point in the history
  • Loading branch information
Kevin Siow authored and kvnsw committed Mar 6, 2024
1 parent 7ee40c4 commit 32d6391
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions modules/dailymotionBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ export const spec = {
},
},
sizes: bid.sizes || [],
adUnitCode: bid.adUnitCode || '',
},
video_metadata: getVideoMetadata(bid),
},
Expand Down
4 changes: 3 additions & 1 deletion test/spec/modules/dailymotionBidAdapter_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ describe('dailymotionBidAdapterTests', () => {
const bidRequestData = [{
auctionId: 'b06c5141-fe8f-4cdf-9d7d-54415490a917',
bidId: 123456,
adUnitCode: 'preroll',
mediaTypes: {
video: {
playerSize: [[1280, 720]],
Expand Down Expand Up @@ -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);
Expand Down Expand Up @@ -140,6 +141,7 @@ describe('dailymotionBidAdapterTests', () => {
expect(reqData.request).to.eql({
auctionId: '',
bidId: '',
adUnitCode: '',
mediaTypes: {
video: {
playerSize: [],
Expand Down

0 comments on commit 32d6391

Please sign in to comment.