diff --git a/modules/integr8BidAdapter.js b/modules/integr8BidAdapter.js index d61fe624c59..3ba68ffb6d6 100644 --- a/modules/integr8BidAdapter.js +++ b/modules/integr8BidAdapter.js @@ -46,7 +46,7 @@ export const spec = { bidderRequestId = bidderRequest.bidderRequestId; if (bidderRequest.refererInfo) { - url = bidderRequest.refererInfo.referer; + url = bidderRequest.refererInfo.page; } } diff --git a/modules/interactiveOffersBidAdapter.js b/modules/interactiveOffersBidAdapter.js index d8a106623fd..df84289d641 100644 --- a/modules/interactiveOffersBidAdapter.js +++ b/modules/interactiveOffersBidAdapter.js @@ -2,6 +2,7 @@ import { logWarn, isNumber } from '../src/utils.js'; import {registerBidder} from '../src/adapters/bidderFactory.js'; import {BANNER} from '../src/mediaTypes.js'; import {config} from '../src/config.js'; +import {bidderSettings} from '../src/bidderSettings.js'; const BIDDER_CODE = 'interactiveOffers'; const ENDPOINT = 'https://prebid.ioadx.com/bidRequest/?partnerId='; @@ -77,13 +78,15 @@ function parseRequestPrebidjsToOpenRTB(prebidRequest) { payload: {}, partnerId: null }; + // TODO: these should probably look at refererInfo let pageURL = window.location.href; let domain = window.location.hostname; let secure = (window.location.protocol == 'https:' ? 1 : 0); let openRTBRequest = JSON.parse(JSON.stringify(DEFAULT['OpenRTBBidRequest'])); openRTBRequest.id = prebidRequest.auctionId; openRTBRequest.ext = { - refererInfo: prebidRequest.refererInfo, + // TODO: please do not send internal data structures over the network + refererInfo: prebidRequest.refererInfo.legacy, auctionId: prebidRequest.auctionId }; @@ -92,11 +95,11 @@ function parseRequestPrebidjsToOpenRTB(prebidRequest) { openRTBRequest.site.name = domain; openRTBRequest.site.domain = domain; openRTBRequest.site.page = pageURL; - openRTBRequest.site.ref = prebidRequest.refererInfo.referer; + openRTBRequest.site.ref = prebidRequest.refererInfo.ref; openRTBRequest.site.publisher = JSON.parse(JSON.stringify(DEFAULT['OpenRTBBidRequestSitePublisher'])); openRTBRequest.site.publisher.id = 0; - openRTBRequest.site.publisher.name = config.getConfig('publisherDomain'); + openRTBRequest.site.publisher.name = prebidRequest.refererInfo.domain; openRTBRequest.site.publisher.domain = domain; openRTBRequest.site.publisher.domain = domain; diff --git a/modules/ipromBidAdapter.js b/modules/ipromBidAdapter.js index 46582ce95a1..eaf20ad3ad3 100644 --- a/modules/ipromBidAdapter.js +++ b/modules/ipromBidAdapter.js @@ -34,7 +34,8 @@ export const spec = { buildRequests: function (validBidRequests, bidderRequest) { const payload = { bids: validBidRequests, - referer: bidderRequest.refererInfo, + // TODO: please do not send internal data structures over the network + referer: bidderRequest.refererInfo.legacy, version: VERSION }; const payloadString = JSON.stringify(payload); diff --git a/test/spec/modules/ipromBidAdapter_spec.js b/test/spec/modules/ipromBidAdapter_spec.js index a3310a33cc2..bb2f364bece 100644 --- a/test/spec/modules/ipromBidAdapter_spec.js +++ b/test/spec/modules/ipromBidAdapter_spec.js @@ -29,13 +29,15 @@ describe('iPROM Adapter', function () { bidderRequest = { timeout: 3000, refererInfo: { - referer: 'https://adserver.si/index.html', - reachedTop: true, - numIframes: 1, - stack: [ - 'https://adserver.si/index.html', - 'https://adserver.si/iframe1.html', - ] + legacy: { + referer: 'https://adserver.si/index.html', + reachedTop: true, + numIframes: 1, + stack: [ + 'https://adserver.si/index.html', + 'https://adserver.si/iframe1.html', + ] + } } } });