From 38b273d76aa2d93ab167b96db80ca146d5267e2e Mon Sep 17 00:00:00 2001 From: rxRTB <34483140+prebidRxRTB@users.noreply.github.com> Date: Tue, 11 Sep 2018 18:10:10 +0300 Subject: [PATCH] Remove required source param --- modules/rxrtbBidAdapter.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/modules/rxrtbBidAdapter.js b/modules/rxrtbBidAdapter.js index 37aa20b68cd..8633a696a74 100644 --- a/modules/rxrtbBidAdapter.js +++ b/modules/rxrtbBidAdapter.js @@ -12,7 +12,7 @@ export const spec = { code: BIDDER_CODE, supportedMediaTypes: [BANNER], isBidRequestValid: function (bidRequest) { - return 'params' in bidRequest && bidRequest.params.source !== undefined && bidRequest.params.id !== undefined && utils.isInteger(bidRequest.params.id) && bidRequest.params.token !== undefined; + return 'params' in bidRequest && bidRequest.params.id !== undefined && utils.isInteger(bidRequest.params.id) && bidRequest.params.token !== undefined; }, buildRequests: function (validBidRequests) { var requests = []; @@ -124,9 +124,10 @@ function makeBanner(req) { } function makeSite(req) { + let domain = getDomain(config.getConfig('publisherDomain')); return { - 'id': req.params.source, - 'domain': getDomain(config.getConfig('publisherDomain')), + 'id': req.params.source || domain, + 'domain': domain, 'page': utils.getTopWindowUrl(), 'ref': utils.getTopWindowReferrer() };