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

Yieldmo Bid Adapter: adding Prebid 9 compatibility #11507

Merged
Changes from 1 commit
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
Prev Previous commit
Next Next commit
add validation
  • Loading branch information
desidiver committed May 16, 2024
commit 63c4a5bf2556611eeffe1e7896da17797867f609
1 change: 1 addition & 0 deletions modules/yieldmoBidAdapter.js
Original file line number Diff line number Diff line change
@@ -654,6 +654,7 @@ function validateVideoParams(bid) {
'array of strings, ex: ["video/mp4"]');

const placement = validate('video.plcmt', val => isDefined(val), paramRequired);
validate('video.plcmt', (val) => val >= 1 && val <= 5, paramInvalid);
if (placement === 1) {
validate('video.startdelay', val => isDefined(val),
(field, v) => paramRequired(field, v, 'placement == 1'));