Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Yahoo Bid Adapter: adding plcmt param support #11569

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions modules/yahooAdsBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -371,6 +371,7 @@ function appendImpObject(bid, openRtbObject) {
pos: deepAccess(bid, 'params.bidOverride.imp.video.pos') || bid.mediaTypes.video.pos || undefined,
playbackmethod: deepAccess(bid, 'params.bidOverride.imp.video.playbackmethod') || bid.mediaTypes.video.playbackmethod || undefined,
placement: deepAccess(bid, 'params.bidOverride.imp.video.placement') || bid.mediaTypes.video.placement || undefined,
plcmt: deepAccess(bid, 'params.bidOverride.imp.video.plcmt') || bid.mediaTypes.video.plcmt || undefined,
linearity: deepAccess(bid, 'params.bidOverride.imp.video.linearity') || bid.mediaTypes.video.linearity || 1,
protocols: deepAccess(bid, 'params.bidOverride.imp.video.protocols') || bid.mediaTypes.video.protocols || [2, 5],
startdelay: deepAccess(bid, 'params.bidOverride.imp.video.startdelay') || bid.mediaTypes.video.startdelay || 0,
Expand Down
2 changes: 2 additions & 0 deletions modules/yahooAdsBidAdapter.md
Original file line number Diff line number Diff line change
Expand Up @@ -581,6 +581,7 @@ Currently the bidOverride object only accepts the following:
* pos
* playbackmethod
* placement
* plcmt
* linearity
* protocols
* rewarded
Expand Down Expand Up @@ -619,6 +620,7 @@ const adUnits = [{
pos: 1,
playbackmethod: 0,
placement: 1,
plcmt: 1,
linearity: 1,
protocols: [2,5],
startdelay: 0,
Expand Down
19 changes: 13 additions & 6 deletions test/spec/modules/yahooAdsBidAdapter_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -1169,7 +1169,8 @@ describe('Yahoo Advertising Bid Adapter:', () => {
pos: undefined,
playbackmethod: undefined,
rewarded: undefined,
placement: undefined
placement: undefined,
plcmt: undefined
});
});

Expand Down Expand Up @@ -1201,7 +1202,8 @@ describe('Yahoo Advertising Bid Adapter:', () => {
pos: undefined,
playbackmethod: undefined,
rewarded: undefined,
placement: undefined
placement: undefined,
plcmt: undefined
});
});
});
Expand Down Expand Up @@ -1298,7 +1300,8 @@ describe('Yahoo Advertising Bid Adapter:', () => {
pos: undefined,
playbackmethod: undefined,
rewarded: undefined,
placement: undefined
placement: undefined,
plcmt: undefined
});
});
});
Expand Down Expand Up @@ -1351,7 +1354,8 @@ describe('Yahoo Advertising Bid Adapter:', () => {
pos: undefined,
playbackmethod: undefined,
rewarded: undefined,
placement: undefined
placement: undefined,
plcmt: undefined
});
});
});
Expand Down Expand Up @@ -1381,7 +1385,8 @@ describe('Yahoo Advertising Bid Adapter:', () => {
pos: 123456,
playbackmethod: 1,
rewarded: 1,
placement: 1
placement: 1,
plcmt: 1
}
}
}
Expand Down Expand Up @@ -1410,7 +1415,8 @@ describe('Yahoo Advertising Bid Adapter:', () => {
delivery: 1,
pos: 123456,
playbackmethod: 1,
placement: 1
placement: 1,
plcmt: 1
}
const validBidRequests = [bidRequest];
bidderRequest.bids = validBidRequests;
Expand All @@ -1430,6 +1436,7 @@ describe('Yahoo Advertising Bid Adapter:', () => {
pos: 123456,
playbackmethod: 1,
placement: 1,
plcmt: 1,
rewarded: undefined
});
});
Expand Down