-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Video support in PubMatic adapter #2807
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
Conversation
27th March 18: Merging Prebid Master into fork branch
modules/pubmaticBidAdapter.js
Outdated
@@ -18,6 +19,22 @@ const CUSTOM_PARAMS = { | |||
'profId': '', // OpenWrap Legacy: Profile ID | |||
'verId': '' // OpenWrap Legacy: version ID | |||
}; | |||
const VIDEO_CUSTOM_PARAMS = { | |||
'mimes': 'array', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
move data-type to constant
modules/pubmaticBidAdapter.js
Outdated
function _checkParamDataType(key, value, datatype) { | ||
var errMsg = 'PubMatic: Ignoring param key: ' + key + ', expects ' + datatype + ', found ' + typeof value; | ||
switch (datatype) { | ||
case 'boolean': |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
use data-type constant
modules/pubmaticBidAdapter.js
Outdated
@@ -287,7 +381,17 @@ export const spec = { | |||
referrer: utils.getTopWindowUrl(), | |||
ad: bid.adm | |||
}; | |||
|
|||
var parsedRequest = JSON.parse(request.data); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use let
at all places
src/constants.json
Outdated
@@ -68,5 +68,11 @@ | |||
"SRC" : "s2s", | |||
"DEFAULT_ENDPOINT" : "https://prebid.adnxs.com/pbs/v1/openrtb2/auction", | |||
"SYNCED_BIDDERS_KEY": "pbjsSyncs" | |||
}, | |||
"DATA_TYPES": { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can add these to your adapter.
Type of change
Description of change
Adding support for video in PubMatic adapter.
Be sure to test the integration with your adserver using the Hello World sample page.
For any changes that affect user-facing APIs or example code documented on http://prebid.org, please provide:
Video params prebid.github.io#865
Other information