diff --git a/modules/somoaudienceBidAdapter.js b/modules/somoaudienceBidAdapter.js index 3c5d9854426..7655eb9e2e0 100644 --- a/modules/somoaudienceBidAdapter.js +++ b/modules/somoaudienceBidAdapter.js @@ -13,10 +13,34 @@ export const spec = { buildRequests: function(bidRequests) { return bidRequests.map(bidRequest => { + let da = openRtbRequest(bidRequest); + if (window.top1 && window.top1.realvu_aa) { + let a = window.top1.realvu_aa.check({ + unit_id: bidRequest.adUnitCode, + size: bidRequest.sizes, + partner_id: 'E321' + }); + a.rq_bids.push({ + bidder: bidRequest.bidder, + adId: bidRequest.bidId, + partner_id: 'E321' + }); + if (a.riff == 'yes') { + da.imp[0].pmp = { + private_auction: 0, + deals: [ + { + id: 'realvu', + bidfloor: 1.5 + } + ] + }; + } + } return { method: 'POST', url: '//publisher-east.mobileadtrading.com/rtb/bid?s=' + bidRequest.params.placementId.toString(), - data: openRtbRequest(bidRequest), + data: da, bidRequest: bidRequest }; });