Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prebid Core: Restore use of server-side adapter without client-side adapter #7662

Merged
merged 3 commits into from
Nov 15, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 5 additions & 6 deletions src/prebid.js
Original file line number Diff line number Diff line change
Expand Up @@ -554,13 +554,12 @@ $$PREBID_GLOBAL$$.requestBids = hook('async', function ({ bidsBackHandler, timeo

logInfo('Invoking $$PREBID_GLOBAL$$.requestBids', arguments);

let _s2sConfigs = [];
const s2sBidders = [];
config.getConfig('s2sConfig', config => {
if (config && config.s2sConfig) {
_s2sConfigs = Array.isArray(config.s2sConfig) ? config.s2sConfig : [config.s2sConfig];
}
});
let _s2sConfigs = config.getConfig('s2sConfig') || [];

if (!Array.isArray(_s2sConfigs)) {
_s2sConfigs = [_s2sConfigs];
}

_s2sConfigs.forEach(s2sConfig => {
s2sBidders.push(...s2sConfig.bidders);
Expand Down