You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Configuring multiple prebid server instances is surprisingly tricky. I stumbled upon multiple layers of validation and unexpected side effects. Here's a quick summary with more details below.
#12084 sums it up perfectly. gvlMapping is a valid solution, while I need to document this more.
(2) Disabling a single entry, disables all entries
If you have two entries
{s2sConfig: [{enabled: true,// !! turn this false, and not pbs request are sent !!bidders: ['bidderB'],accountId: '123456',endpoint: {p1Consent: 'https://prebid.adnxs.com/pbs/v1/auction'}},{enabled: true,bidders: ['bidderA'],accountId: '123456',endpoint: {p1Consent: 'https://mp.4dex.io/pbs/openrtb2/auction',}}]}
and set enabled: false for one of them, no requests for both of them are sent. This because
I think this is a bug. If you want to have different prebid servers or pbs hosting companies, then disabling one should disable everything. Use cases are
performance testing two vendors
enabling different configs depending on geo
run different subsets of bidders on different pbs instances
I know, that one could filter the array on the publisher side, but why is there an enabled flag then 😛 The demo page below can be used to test this.
(3) client-side adapter requirement
TASK FOR MUKI TO DOCUMENT
If you run a pbs auction on the server, there should be no client-side adapter necessary. There has been great progress:
I think it's working as shown on the test page. It seems the bid.params.configName and bid.module = 'pbsBidAdapter' are not necessary. Even though I had a certain state where it wasn't working, I thought I pinned it down to this
The test page generates "missing undefined" errors for me because the PBS adapter expects each config's adapter option to be set. With #12727 those default to "prebidServer".
It seems the bid.params.configName and bid.module = 'pbsBidAdapter' are not necessary
They only affect "module" bids for stored impression scenarios, to decide which instance to route them to - since there's no bidders to use for that purpose. There's an example here
Type of issue
🐞Bug
⚡Feature
Description
Configuring multiple prebid server instances is surprisingly tricky. I stumbled upon multiple layers of validation and unexpected side effects. Here's a quick summary with more details below.
gvlMapping
orvendorExceptions
are necessary when thetcfConsentModule
is actives2sConfig
entries and set one toenabled: false
, no requests will be sent to any s2sConfig instanceAt the end I hope to finish prebid/prebid.github.io#5033
(1) TCF Mapping
#12084 sums it up perfectly.
gvlMapping
is a valid solution, while I need to document this more.(2) Disabling a single entry, disables all entries
If you have two entries
and set
enabled: false
for one of them, no requests for both of them are sent. This becausePrebid.js/modules/prebidServerBidAdapter/index.js
Lines 177 to 181 in 5864b98
yield
false
due to no default vendor being setPrebid.js/modules/prebidServerBidAdapter/index.js
Lines 128 to 129 in 5864b98
I think this is a bug. If you want to have different prebid servers or pbs hosting companies, then disabling one should disable everything. Use cases are
I know, that one could filter the array on the publisher side, but why is there an
enabled
flag then 😛 The demo page below can be used to test this.(3) client-side adapter requirement
If you run a pbs auction on the server, there should be no client-side adapter necessary. There has been great progress:
I think it's working as shown on the test page. It seems the
bid.params.configName
andbid.module = 'pbsBidAdapter'
are not necessary.Even though I had a certain state where it wasn't working, I thoughtI pinned it down to thisPrebid.js/src/adapterManager.js
Lines 177 to 181 in 5864b98
Test page
https://jsbin.com/legafiwoqe/edit?html,console
Expected results
If I set
enable: false
for ones2sConfig
, the others are still enabled.Actual results
All are disabled.
Platform details
Prebid 9.x
Other information
The text was updated successfully, but these errors were encountered: