Skip to content

Adding adKernel adapter#739

Merged
mkendall07 merged 4 commits intoprebid:masterfrom
ckbo3hrk:master
Nov 16, 2016
Merged

Adding adKernel adapter#739
mkendall07 merged 4 commits intoprebid:masterfrom
ckbo3hrk:master

Conversation

@ckbo3hrk
Copy link
Contributor

@ckbo3hrk ckbo3hrk commented Oct 24, 2016

Type of change

  • New bidder adapter

Description of change

Added AdKernel adapter

  • test parameters for validating bids
{
  bidder: 'adkernel',
  params: {
    zoneId : '30164',
    host : 'cpm.metaadserving.com'
  }
}
  • contact email of the adapter’s maintainer: denis@adkernel.com
  • official adapter submission

Other information

@ckbo3hrk ckbo3hrk changed the title initial adkernel adapter commit Adding adKernel adapter Oct 24, 2016
@mkendall07 mkendall07 self-assigned this Oct 24, 2016
Copy link
Contributor

@mkendall07 mkendall07 left a comment

Choose a reason for hiding this comment

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

Thanks for the PR. Please address code review comments.

@@ -0,0 +1,194 @@
var bidmanager = require('../bidmanager.js');
Copy link
Contributor

Choose a reason for hiding this comment

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

please use ES 6 import syntax here.

* Adapter for requesting bids from AdKernel white-label platform
* @class
*/
var AdkernelAdapter = function AdkernelAdapter() {
Copy link
Contributor

Choose a reason for hiding this comment

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

prefer const

const dispatcher = new RtbRequestDispatcher();
//process individual bids
utils._each(bids, function (bid) {
let size = bid.sizes[0];
Copy link
Contributor

Choose a reason for hiding this comment

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

Does your adapter support multi size?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No, adapter doesn't support multiple sizes.

* Create bid object for the bid manager
*/
function createBidObject(bidObj, width, height) {
return utils.extend(bidfactory.createBid(1), {
Copy link
Contributor

Choose a reason for hiding this comment

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

Please store a reference to the bid request object and pass it to createBid(1, bidRequest) as this allows us to match the bid.adId to bid response.

sizes: [[728, 90]]
};

const bidResponse1 = {
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: please apply formatting to spec file.

//translate adunit info into rtb impression dispatched by host/zone
this.addImp = function (host, zone, width, height, bidId, adUnitId) {
if (!(host in _dispatch)) {
_dispatch[host] = {};
Copy link
Contributor

Choose a reason for hiding this comment

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

If host is undefined, you should abort this request. Without the host param, I was seeing network requests to http://undefined/....


function buildRequestParams(zone, rtbReq) {
return {
'zone': zone,
Copy link
Contributor

Choose a reason for hiding this comment

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

zone should be encoded too if possible.

@mkendall07
Copy link
Contributor

@ckbo3hrk
Any update here?

@ckbo3hrk
Copy link
Contributor Author

@mkendall07
On vacation. Everything will be done on 14th of November.

@ckbo3hrk
Copy link
Contributor Author

@mkendall07
Code review comments has been adressed.

_dispatch = {},
const _dispatch = {},
originalBids = {},
site = createSite();
Copy link
Contributor

Choose a reason for hiding this comment

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

Please change to:

const _dispatch = {};
const originalBids = {};
const site = createSite();

@@ -0,0 +1,207 @@
import bidmanager from "src/bidmanager";
Copy link
Contributor

Choose a reason for hiding this comment

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

please use single quotes for string literals '

Copy link
Contributor

@mkendall07 mkendall07 left a comment

Choose a reason for hiding this comment

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

LGTM. Can merge when you make those minor changes I have commented on.

@mkendall07
Copy link
Contributor

@ckbo3hrk if you get this done today, it will be included in the 0.15.0 release.

@ckbo3hrk
Copy link
Contributor Author

@mkendall07
done

@mkendall07
Copy link
Contributor

LGTM. Bids are being received, unit tests pass. Thanks for contributing to Prebid.js

@mkendall07 mkendall07 closed this Nov 16, 2016
@mkendall07 mkendall07 reopened this Nov 16, 2016
@mkendall07 mkendall07 merged commit d72dbf4 into prebid:master Nov 16, 2016
@aneuway2
Copy link
Contributor

@ckbo3hrk are all parameter's required or are there optional inputs?

@ckbo3hrk
Copy link
Contributor Author

@aneuway2
Both parameters are required.

@mkendall07
Copy link
Contributor

mp-12301 pushed a commit to aol/Prebid.js that referenced this pull request Apr 10, 2017
…ebid-0.15.2 to release/1.8.0

* commit '3c3d298eb248a7f69dd4ae86f3f6341f2c04b1b5': (36 commits)
  CHANGELOG
  Add new adapters for AOL analytics.
  Prebid 0.15.2 Release
  Fix issue with building prebid from npm install. Babel loader was being skipped because of the project residing in /node_modules/ directory. (prebid#820)
  Increment pre version
  Prebid 0.15.1 Release
  Update bidFloor->bidfloor to match other bidders + updated conversant docs (prebid#818)
  Correct 'bidloor' typo in Conversant adapter (prebid#815)
  Increment pre version
  0.15.0 release
  support IE userLanguage Navigator property (prebid#807)
  exclude node_modules from babel-loader as to prevent strict mode errors (prebid#806)
  PulsePoint Adapter - Support for additional parameters. (prebid#784)
  Fix 'skippable' targeting typo (prebid#804)
  Adding adKernel adapter (prebid#739)
  Babel plugin fixes to make the generated code syntax valid in ie8 (prebid#799)
  Vertoz Adapter (prebid#789)
  RubiconLite is now just Rubicon and "rubicon" aliases "rubiconLite" (prebid#783)
  add version to global namespace (prebid#794)
  Adform adapter tests fixed prebid#769 (prebid#793)
  ...
mp-12301 pushed a commit to aol/Prebid.js that referenced this pull request Apr 10, 2017
…8.0 to master

* commit '997aa5bce17aafd6b215d335551e89757f92bf3e': (37 commits)
  CHANGELOG.
  CHANGELOG
  Add new adapters for AOL analytics.
  Prebid 0.15.2 Release
  Fix issue with building prebid from npm install. Babel loader was being skipped because of the project residing in /node_modules/ directory. (prebid#820)
  Increment pre version
  Prebid 0.15.1 Release
  Update bidFloor->bidfloor to match other bidders + updated conversant docs (prebid#818)
  Correct 'bidloor' typo in Conversant adapter (prebid#815)
  Increment pre version
  0.15.0 release
  support IE userLanguage Navigator property (prebid#807)
  exclude node_modules from babel-loader as to prevent strict mode errors (prebid#806)
  PulsePoint Adapter - Support for additional parameters. (prebid#784)
  Fix 'skippable' targeting typo (prebid#804)
  Adding adKernel adapter (prebid#739)
  Babel plugin fixes to make the generated code syntax valid in ie8 (prebid#799)
  Vertoz Adapter (prebid#789)
  RubiconLite is now just Rubicon and "rubicon" aliases "rubiconLite" (prebid#783)
  add version to global namespace (prebid#794)
  ...
pm-abhinav-deshpande pushed a commit to pm-abhinav-deshpande/Prebid.js that referenced this pull request Apr 23, 2025
…_upgrade

priceFloors: fix bug where floors are not set when TIDs are disabled …
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.

3 participants

Comments