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

Prebid.js 1.0 support for Kumma adapter #1766

Merged
merged 3 commits into from Nov 16, 2017
Merged

Prebid.js 1.0 support for Kumma adapter #1766

merged 3 commits into from Nov 16, 2017

Conversation

yehonatanshac
Copy link
Contributor

Type of change

  • Bugfix
  • Feature
  • [X ] New bidder adapter
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • CI related changes
  • Other

Description of change

prebid.js 1.0 support for Kumma adapter

  • test parameters for validating bids
    bidder: 'kumma',
    params: {
    pubId: '28082',
    siteId: '26047',
    placementId: '123',
    size: '250X250'
    }

  • contact email of the adapter’s maintainer yehonatan@kumma.com

  • [X ] official adapter submission

@dbemiller dbemiller self-requested a review November 1, 2017 19:23
@dbemiller dbemiller self-assigned this Nov 1, 2017
Copy link
Contributor

@dbemiller dbemiller left a comment

Choose a reason for hiding this comment

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

The code in general looks great, but... I'm not getting any bids back from your server when using the params in your .md. It looks like the server is sending empty responses.

If there are any special notes needed to get back a test bid (e.g. "emulate a mobile device" or "make sure localhost isn't in your URL"), please add them to the .md. Otherwise, if it's a server bug, let me know when it's fixed so I can test again.

function bidResponseAvailable(bidRequest, bidResponse) {
const idToImpMap = {};
const idToBidMap = {};
const ortbRequest = parse(bidRequest.data);
Copy link
Contributor

Choose a reason for hiding this comment

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

You can simplify this quite a bit by just throwing the error here. The bidderFactory runs interpretResponse in a try/catch, and does a logError if anything goes wrong.

Also... your parse function just returns null on error, which will make openrtbRequest.imp throw an error anyway.

}
return null;
}
function referrer() {
Copy link
Contributor

Choose a reason for hiding this comment

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

This can be replaced by getTopWindowReferrer() in utils.

@yehonatanshac
Copy link
Contributor Author

I changed the md file. Now it should work.

@matthewlane matthewlane merged commit 049af72 into prebid:master Nov 16, 2017
Millerrok pushed a commit to Vertamedia/Prebid.js that referenced this pull request Nov 21, 2017
* unstream/master: (36 commits)
  + Add Optimatic Bid Adapter (prebid#1837)
  Add Bridgewell adapter (prebid#1825)
  Kumma adapter updated for Prebid 1.0 (prebid#1766)
  Touchup add bid response (prebid#1822)
  Fix skipped test (prebid#1836)
  Added new size in Rubicon pbjs Adapter (prebid#1842)
  HuddledMasses header bidding adapter (prebid#1806)
  Increment pre version
  Prebid 0.33.0 Release
  Update AOL adapter for v1.0  (prebid#1693)
  Sovrn 1.0 compliance (prebid#1796)
  Platform.io Bidder Adapter update (prebid#1817)
  Drop non-video bidders from video ad units (prebid#1815)
  Update renderAd to replace ${AUCTION_PRICE} in adUrl (prebid#1795)
  Pulsepoint adapter: fixing bid rejection due to missing mandatory bid params. (prebid#1823)
  Remove require.ensure entirely (prebid#1816)
  Add custom keyword support for pbs bid adapter (prebid#1763)
  OpenX Video Adapter update to Prebid v1.0 (prebid#1724)
  Fix test that hard-coded pbjs global. (prebid#1786)
  Update Pollux Adapter to v1.0 (prebid#1694)
  ...
dluxemburg pushed a commit to Genius/Prebid.js that referenced this pull request Jul 17, 2018
* kumma adapter for prebid.js 1.0

* add prebid 1.0 example

* changing default ad + supporting bidfloor+function for top window referrer
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.

None yet

5 participants