From c66d1643d17beb9ea1a19167800f662529621ea3 Mon Sep 17 00:00:00 2001 From: Ryan Schweitzer <50628828+r-schweitzer@users.noreply.github.com> Date: Thu, 28 Jan 2021 17:12:01 +0100 Subject: [PATCH] Feature: Multiple Prebid Servers (#2512) * added note about setting multiple servers config * wordsmithing Co-authored-by: bretg --- dev-docs/bidders/prebidServer.md | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/dev-docs/bidders/prebidServer.md b/dev-docs/bidders/prebidServer.md index f0da27214a..f8528473b5 100644 --- a/dev-docs/bidders/prebidServer.md +++ b/dev-docs/bidders/prebidServer.md @@ -40,6 +40,28 @@ pbjs.setConfig({ } }); ``` + +To use multiple prebid servers, just define `s2sConfig` as an array. +The same bidder cannot be set in both configs. For example: + +``` +pbjs.setConfig({ + s2sConfig: [ + { + accountId: '12345', + bidders: ['appnexus','rubicon'], + defaultVendor: 'appnexus', + timeout: 300, + }, + { + accountId: '678910', + bidders: ['pubmatic'], + defaultVendor: 'rubicon', + timeout: 300, + }, + ], +}); +``` Configuration options {: .table .table-bordered .table-striped }