Skip to content

Commit

Permalink
Updated location of buyid
Browse files Browse the repository at this point in the history
  • Loading branch information
pm-shashank-jain committed Apr 24, 2020
1 parent d673dab commit 6398268
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions modules/pubmaticServerBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -517,9 +517,9 @@ export const spec = {
mi: miObj.hasOwnProperty(summary.bidder) ? miObj[summary.bidder] : UNDEFINED,
regexPattern: summary.regex || undefined
}
if (bid.ext && bid.ext.buyid) {
if (seatbidder.ext && seatbidder.ext.buyid) {
newBid.adserverTargeting = {
'hb_buyid_pubmatic': bid.ext.buyid
'hb_buyid_pubmatic': seatbidder.ext.buyid
};
}
break;
Expand Down
6 changes: 3 additions & 3 deletions test/spec/modules/pubmaticServerBidAdapter_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,11 +96,11 @@ describe('PubMaticServer adapter', () => {
'bid': 1.3,
'width': 300,
'height': 250
}],
'buyid': 'testbuyerid'
}]
}
}],
'seat': 'pubmatic'
'seat': 'pubmatic',
'ext': {'buyid': 'testbuyerid'}
}],
'ext': {
'responsetimemillis': {
Expand Down

0 comments on commit 6398268

Please sign in to comment.