From fdac1480622f94c27d0348855116b0ac9f9c78f1 Mon Sep 17 00:00:00 2001 From: EC2 Default User Date: Fri, 23 Apr 2021 12:11:19 -0400 Subject: [PATCH] Interactive Offers Bid Adapter: added data to the final response object --- modules/interactiveOffersBidAdapter.js | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/modules/interactiveOffersBidAdapter.js b/modules/interactiveOffersBidAdapter.js index ea45c00903a..44a975db837 100644 --- a/modules/interactiveOffersBidAdapter.js +++ b/modules/interactiveOffersBidAdapter.js @@ -74,6 +74,9 @@ function parseRequestPrebidjsToOpenRTB(prebidRequest) { let secure = (window.location.protocol == 'https:' ? 1 : 0); let openRTBRequest = JSON.parse(JSON.stringify(DEFAULT['OpenRTBBidRequest'])); openRTBRequest.id = prebidRequest.auctionId; + openRTBRequest.ext = { + auctionstart: Date.now() + }; openRTBRequest.site = JSON.parse(JSON.stringify(DEFAULT['OpenRTBBidRequestSite'])); openRTBRequest.site.id = domain; @@ -139,6 +142,16 @@ function parseResponseOpenRTBToPrebidjs(openRTBResponse) { prebid.ad = bid.adm; prebid.creativeId = bid.crid; prebid.cpm = bid.price; + prebid.width = bid.w; + prebid.height = bid.h; + prebid.mediaType = 'banner'; + prebid.meta = { + advertiserDomains: bid.adomain, + advertiserId: bid.adid, + mediaType: 'banner', + primaryCatId: bid.cat[0] || '', + secondaryCatIds: bid.cat + } prebidResponse.push(prebid); }); });