Skip to content

Commit

Permalink
adagioBidAdapter: fix Video Ortb placement param validation (prebid#9218
Browse files Browse the repository at this point in the history
)
  • Loading branch information
osazos authored and jorgeluisrocha committed May 18, 2023
1 parent 86e56d3 commit 6e08c86
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion modules/adagioBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export const ORTB_VIDEO_PARAMS = {
'w': (value) => isInteger(value),
'h': (value) => isInteger(value),
'startdelay': (value) => isInteger(value),
'placement': (value) => Array.isArray(value) && value.every(v => [1, 2, 3, 4, 5].indexOf(v) !== -1),
'placement': (value) => [1, 2, 3, 4, 5].indexOf(value) !== -1,
'linearity': (value) => [1, 2].indexOf(value) !== -1,
'skip': (value) => [0, 1].indexOf(value) !== -1,
'skipmin': (value) => isInteger(value),
Expand Down
4 changes: 2 additions & 2 deletions test/spec/modules/adagioBidAdapter_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,7 @@ describe('Adagio bid adapter', () => {
skipafter: 4,
minduration: 10,
maxduration: 30,
placement: [3],
placement: 3,
protocols: [8]
}
}).build();
Expand All @@ -415,7 +415,7 @@ describe('Adagio bid adapter', () => {
skipafter: 4,
minduration: 10,
maxduration: 30,
placement: [3],
placement: 3,
protocols: [8],
w: 300,
h: 250
Expand Down

0 comments on commit 6e08c86

Please sign in to comment.