Skip to content

Commit

Permalink
Pass bidRequest to createBid (#1600)
Browse files Browse the repository at this point in the history
  • Loading branch information
jaiminpanchal27 authored Sep 19, 2017
1 parent 952e82d commit 9d2342f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/districtmDMXBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,15 @@ var DistrictmAdaptor = function districtmAdaptor() {
this.handlerRes = function(response, bidObject) {
let bid;
if (parseFloat(response.result.cpm) > 0) {
bid = bidfactory.createBid(1);
bid = bidfactory.createBid(1, bidObject);
bid.bidderCode = bidObject.bidder;
bid.cpm = response.result.cpm;
bid.width = response.result.width;
bid.height = response.result.height;
bid.ad = response.result.banner;
bidmanager.addBidResponse(bidObject.placementCode, bid);
} else {
bid = bidfactory.createBid(2);
bid = bidfactory.createBid(2, bidObject);
bid.bidderCode = bidObject.bidder;
bidmanager.addBidResponse(bidObject.placementCode, bid);
}
Expand Down

0 comments on commit 9d2342f

Please sign in to comment.