Skip to content

Commit

Permalink
use refactored data structures (prebid#382)
Browse files Browse the repository at this point in the history
  • Loading branch information
Nate Guisinger committed Jun 15, 2016
1 parent 0439cc8 commit 899a643
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/adapters/yieldbot.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,9 +96,7 @@ var YieldbotAdapter = function YieldbotAdapter() {
yieldbot.pub(psn);
yieldbot.defineSlot(slot, { sizes: bid.sizes || [] });

var cbId = utils.getUniqueIdentifierStr();
bidmanager.pbCallbackMap[cbId] = bid;
ybotlib.definedSlots.push(cbId);
ybotlib.definedSlots.push(bid.bidId);
});

yieldbot.enableAsync();
Expand Down Expand Up @@ -126,7 +124,9 @@ var YieldbotAdapter = function YieldbotAdapter() {
var placementCode;
var adapterConfig;

adapterConfig = bidmanager.getPlacementIdByCBIdentifer(v) || {};
adapterConfig = pbjs._bidsRequested
.find(bidderRequest => bidderRequest.bidderCode === 'yieldbot').bids
.find(bid => bid.bidId === v) || {};
slot = adapterConfig.params.slot || '';
criteria = yieldbot.getSlotCriteria(slot);

Expand Down

0 comments on commit 899a643

Please sign in to comment.