From 75ef4a3796382004a23662934b707900a417a0d0 Mon Sep 17 00:00:00 2001 From: symplorpro <161946060+symplorpro@users.noreply.github.com> Date: Tue, 17 Dec 2024 21:08:06 +0530 Subject: [PATCH] Get site content from bidrequest instead of config --- modules/rediadsBidAdapter.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/modules/rediadsBidAdapter.js b/modules/rediadsBidAdapter.js index 7432f1461d6..ec4b12f6e39 100644 --- a/modules/rediadsBidAdapter.js +++ b/modules/rediadsBidAdapter.js @@ -2,7 +2,6 @@ import { ortbConverter } from '../libraries/ortbConverter/converter.js'; import { registerBidder } from '../src/adapters/bidderFactory.js'; import { deepSetValue, logWarn, logError } from '../src/utils.js'; import { BANNER, NATIVE, VIDEO } from '../src/mediaTypes.js'; -import { config } from '../src/config.js'; const BIDDER_CODE = 'rediads'; const ENDPOINT_URL = 'https://bidding.rediads.com/openrtb2/auction'; @@ -56,6 +55,7 @@ export const spec = { }, buildRequests(bidRequests, bidderRequest) { const params = bidRequests[0]?.params || {}; + const siteContent = bidRequests[0]?.site?.content || null; let data = {}; let FINAL_ENDPOINT_URL = params.endpoint || ENDPOINT_URL try { @@ -66,9 +66,8 @@ export const spec = { if (stagingEnvRequested) { FINAL_ENDPOINT_URL = STAGING_ENDPOINT_URL; } - deepSetValue(data, 'ext.rediads.params', params); - deepSetValue(data, 'site.content', config.getConfig('content')); + deepSetValue(data, 'site.content', siteContent); if (testBidsRequested) { deepSetValue(data, 'test', 1);