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

Adagio Bid Adapter : adapt video outstream implementation docs #10633

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
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