From 7eebcc95ff43dda284be8467969bfff4fc86ca02 Mon Sep 17 00:00:00 2001 From: Patrick McCann Date: Mon, 5 May 2025 10:05:15 -0400 Subject: [PATCH 1/2] Update prebidServer.md --- dev-docs/modules/prebidServer.md | 39 ++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) diff --git a/dev-docs/modules/prebidServer.md b/dev-docs/modules/prebidServer.md index 15aeb0b171..e88f0b8a97 100644 --- a/dev-docs/modules/prebidServer.md +++ b/dev-docs/modules/prebidServer.md @@ -204,6 +204,45 @@ Here's how it works: 1. The s2sConfig.bidders array contains 'tripleliftVideo' telling Prebid.js to direct bids for that code to the server 1. Finally, the extPrebid.aliases line tells Prebid Server to route the 'tripleliftVideo' biddercode to the 'triplelift' server-side adapter. +### Routing for Multiple PBS instances + +Bids: + +```javascript +[{ + bidder: 'foobar', + params: {...}, +}, +{ + bidder: 'foobar', + params: {...}, + pbsHost: 'foobar-2' +}] +``` +s2sConfig: +```javascript +[{ + accountId: 1234, + bidders: ['foobar'], + enabled: true, + endpoint: { + noP1Consent : 'https://pbs.auction/openrtb2/auction', + p1Consent : 'https://pbs.auction/openrtb2/auction' + } +}, +{ + accountId: 5678, + bidders: ['foobar-2'], + syncBidders: ['foobar'], + enabled: true, + endpoint: { + noP1Consent : 'https://pbs.alt.auction/openrtb2/auction', + p1Consent : 'https://pbs.alt.auction/openrtb2/auction' + } +}] +``` +The above would distribute `bid[0]` to s2s endpoint `https://pbs.auction/openrtb2/auction`, whereas `bid[1]` will be distributed to `https://pbs.alt.auction/openrtb2/auction`. The syncBidders is used to sync both with the original biddercode to as well as applying bidder specific FPD for pbs calls via bidderconfig. + ### Video via s2sConfig Supporting video through the Server-to-Server route can be done by providing a couple of extra arguments on the `extPrebid` object. e.g. From 7ca123d457ebb74b47e9f1fed8060c977b87a68f Mon Sep 17 00:00:00 2001 From: Patrick McCann Date: Mon, 5 May 2025 10:06:56 -0400 Subject: [PATCH 2/2] Update prebidServer.md --- dev-docs/modules/prebidServer.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dev-docs/modules/prebidServer.md b/dev-docs/modules/prebidServer.md index e88f0b8a97..e22a972cf4 100644 --- a/dev-docs/modules/prebidServer.md +++ b/dev-docs/modules/prebidServer.md @@ -219,7 +219,9 @@ Bids: pbsHost: 'foobar-2' }] ``` + s2sConfig: + ```javascript [{ accountId: 1234, @@ -241,6 +243,7 @@ s2sConfig: } }] ``` + The above would distribute `bid[0]` to s2s endpoint `https://pbs.auction/openrtb2/auction`, whereas `bid[1]` will be distributed to `https://pbs.alt.auction/openrtb2/auction`. The syncBidders is used to sync both with the original biddercode to as well as applying bidder specific FPD for pbs calls via bidderconfig. ### Video via s2sConfig