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

PubMatic 1.0 adapter #2011

Merged
merged 35 commits into from
Jan 23, 2018
Merged

PubMatic 1.0 adapter #2011

merged 35 commits into from
Jan 23, 2018

Conversation

PubMatic-OpenWrap
Copy link
Contributor

Type of change

  • Bugfix
  • Feature
  • New bidder adapter
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • CI related changes
  • Does this change affect user-facing APIs or examples documented on http://prebid.org?
  • Other

Description of change

  • test parameters for validating bids
{
  bidder: 'pubmatic',
  params: {
	publisherId: '301',                  // required
	adSlot: '/15671365/DMDemo@728x90',   // required
	pmzoneid: 'zone1, zone11',           // optional
	lat: '40.712775',                    // optional
	lon: '-74.005973',                   // optional
	yob: '1982',                         // optional
	kadpageurl: 'www.test.com',          // optional							      
	gender: 'M',                         // optional
	kadfloor: '0.50'                     // optional 									      
  }
}

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:

Other information

pm-harshad-mane and others added 30 commits October 17, 2017 11:05
also changed surce of end-point to prebid-client from prebid-server
removed method _processFloor and _processPmZoneId
added const for undefined
added a small function to find domain from given url
@mkendall07
Copy link
Member

mkendall07 commented Jan 8, 2018

Copy link
Collaborator

@jsnellbaker jsnellbaker left a comment

Choose a reason for hiding this comment

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

@PubMatic-OpenWrap Thanks for submitting this adapter. Overall the code looks good. There are some aspects/issues that I wanted to mention so we can be review/clarify them together.

I summarized them below:

  • There are some areas with either extra comments or old code that was commented. Can these be reviewed/cleaned up if possible?
  • It seems like to test the adapter, the userSync needs to be configured. I know this was highlight in the docs PR, but can we add this note in the md file in this PR as well so that the requirement is stated in a consistent manner?
  • When I was testing the code with the test param data on the hello_world.html page, I saw the request to your system was formatted and executed but I wasn't getting any type of response back. The POST request indicated it had a 204 success code. As a result, I was only ever seeing a house ad return. Could you take a look on your end in regards to this request/response?

Thanks.

// istanbul ignore else
if (CUSTOM_PARAMS.hasOwnProperty(key)) {
value = params[key];
// istanbul ignore else
Copy link
Collaborator

Choose a reason for hiding this comment

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

Are these types of comments still needed? I assume they were part of the development process and wanted to confirm.

return true;
}
return false;
// return !!(bid && bid.params && utils.isStr(bid.params.publisherId) && utils.isStr(bid.params.adSlot));
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can we remove this comment if the earlier code is the planned/definite approach to perform the validation check?

@PubMatic-OpenWrap
Copy link
Contributor Author

We have removed unwanted comments.
Also updated .md file with userSync settings and new test ids.

@jsnellbaker
Copy link
Collaborator

@PubMatic-OpenWrap Thanks for making the updates. I used the updated test credentials and I saw the test ad deliver fine. LGTM

return conf;
}

function _createOrtbTemplate(conf) {
Copy link
Member

Choose a reason for hiding this comment

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

nice! Would be great if we had a community ORTB adapter at some point...

@mkendall07 mkendall07 merged commit a264553 into prebid:master Jan 23, 2018
Millerrok pushed a commit to Vertamedia/Prebid.js that referenced this pull request Jan 24, 2018
* 'master' of https://github.com/prebid/Prebid.js:
  Prebid 1.2.0 Release
  Use polyfilled includes method (prebid#2061)
  RockYou Adapter: Added RockYou Adapter supporting Prebid 1.0 (prebid#1977)
  Optimera Adapter for 1.0. (prebid#1961)
  Use cross-browser integer check (prebid#2058)
  Fix skipped test (prebid#2059)
  Support multiple media formats within a single ad unit (prebid#1991)
  pre1api module that allows use of deprecated pre1.0 API in Prebid 1.0 (prebid#1976)
  Colossus SSP header bidding adapter 1.0.0 (prebid#2029)
  InSkin Bidder Adapter (prebid#2016)
  Update adapter to prebid v1.0 (prebid#1908)
  PubMatic 1.0 adapter (prebid#2011)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants