Skip to content

Commit

Permalink
Adagio: adapt video outstream implementation details (#10633)
Browse files Browse the repository at this point in the history
  • Loading branch information
soupape34 authored Oct 27, 2023
1 parent 63214ee commit ee63e1b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
5 changes: 3 additions & 2 deletions modules/adagioBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,9 @@ const ADAGIO_PUBKEY = 'AL16XT44Sfp+8SHVF1UdC7hydPSMVLMhsYknKDdwqq+0ToDSJrP0+Qh0k
const ADAGIO_PUBKEY_E = 65537;
const CURRENCY = 'USD';

// This provide a whitelist and a basic validation of OpenRTB 2.6 options used by the Adagio SSP.
// https://iabtechlab.com/wp-content/uploads/2022/04/OpenRTB-2-6_FINAL.pdf
// This provide a whitelist and a basic validation of OpenRTB 2.5 options used by the Adagio SSP.
// Accept all options but 'protocol', 'companionad', 'companiontype', 'ext'
// https://www.iab.com/wp-content/uploads/2016/03/OpenRTB-API-Specification-Version-2-5-FINAL.pdf
export const ORTB_VIDEO_PARAMS = {
'mimes': (value) => Array.isArray(value) && value.length > 0 && value.every(v => typeof v === 'string'),
'minduration': (value) => isInteger(value),
Expand Down
7 changes: 5 additions & 2 deletions modules/adagioBidAdapter.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,10 +107,11 @@ var adUnits = [
cpm: 3.00 // default to 1.00
},
video: {
api: [2, 7], // Required - Your video player must at least support the value 2 and/or 7.
api: [2], // Required - Your video player must at least support the value 2
playbackMethod: [6], // Highly recommended
skip: 0
// OpenRTB video options defined here override ones defined in mediaTypes.
// OpenRTB 2.5 video options defined here override ones defined in mediaTypes.
// Not supported: 'protocol', 'companionad', 'companiontype', 'ext'
},
native: {
// Optional OpenRTB Native 1.2 request object. Only `context`, `plcmttype` fields are supported.
Expand Down Expand Up @@ -193,6 +194,8 @@ If the FPD value is an array, the 1st value of this array will be used.
placement: 'in_article',
adUnitElementId: 'article_outstream',
video: {
api: [2],
playbackMethod: [6],
skip: 0
},
debug: {
Expand Down

0 comments on commit ee63e1b

Please sign in to comment.