Skip to content

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

Merged
merged 6 commits into from
Jul 10, 2018

Conversation

PubMatic-OpenWrap
Copy link
Contributor

Type of change

  • [x ] Feature

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.

  • contact email of the adapter’s maintainer
  • official adapter submission

For any changes that affect user-facing APIs or example code documented on http://prebid.org, please provide:

Other information

@@ -18,6 +19,22 @@ const CUSTOM_PARAMS = {
'profId': '', // OpenWrap Legacy: Profile ID
'verId': '' // OpenWrap Legacy: version ID
};
const VIDEO_CUSTOM_PARAMS = {
'mimes': 'array',
Copy link
Contributor

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

function _checkParamDataType(key, value, datatype) {
var errMsg = 'PubMatic: Ignoring param key: ' + key + ', expects ' + datatype + ', found ' + typeof value;
switch (datatype) {
case 'boolean':
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use data-type constant

@@ -287,7 +381,17 @@ export const spec = {
referrer: utils.getTopWindowUrl(),
ad: bid.adm
};

var parsedRequest = JSON.parse(request.data);
Copy link
Collaborator

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

@@ -68,5 +68,11 @@
"SRC" : "s2s",
"DEFAULT_ENDPOINT" : "https://prebid.adnxs.com/pbs/v1/openrtb2/auction",
"SYNCED_BIDDERS_KEY": "pbjsSyncs"
},
"DATA_TYPES": {
Copy link
Collaborator

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.

@jaiminpanchal27 jaiminpanchal27 merged commit 4ffc421 into prebid:master Jul 10, 2018
@PubMatic-OpenWrap PubMatic-OpenWrap deleted the video_0207 branch November 29, 2018 07:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants