Skip to content

Commit

Permalink
minor changes as per request
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-hoffmann committed Jul 12, 2017
1 parent 9e3db95 commit 5681252
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/xhbBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ const XhbAdapter = function XhbAdapter() {
// store bid response
// bid status is good (indicating 1)
let adId = jptResponseObj.result.creative_id;
bid = bidfactory.createBid(1, bidObj);
bid = bidfactory.createBid(STATUS.GOOD, bidObj);
bid.creative_id = adId;
bid.bidderCode = bidCode;
bid.cpm = responseCPM;
Expand All @@ -117,7 +117,7 @@ const XhbAdapter = function XhbAdapter() {
} else {
// no response data
// indicate that there is no bid for this placement
bid = bidfactory.createBid(2, bidObj);
bid = bidfactory.createBid(STATUS.NO_BID, bidObj);
bid.bidderCode = bidCode;
bidmanager.addBidResponse(placementCode, bid);
}
Expand Down

0 comments on commit 5681252

Please sign in to comment.