From 4d90cdfb713ea0835f34688f1007d299d5a5cf44 Mon Sep 17 00:00:00 2001 From: bretg Date: Thu, 4 Nov 2021 16:29:11 -0400 Subject: [PATCH] added setconfig for PBS test flag --- troubleshooting/pbs-troubleshooting.md | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/troubleshooting/pbs-troubleshooting.md b/troubleshooting/pbs-troubleshooting.md index dba1eabb88..04d1edd5a8 100644 --- a/troubleshooting/pbs-troubleshooting.md +++ b/troubleshooting/pbs-troubleshooting.md @@ -33,14 +33,24 @@ POST https://prebid-server.rubiconproject.com/openrtb2/auction If you're invoking Prebid Server from Prebid.js, turn on the OpenRTB `test` flag from Prebid.js using one of these options: -1) Add **?pbjs_debug=true** to the URL of the page. +1) Add **?pbjs_debug=true** to the URL of the page. This will cause the pbsBidAdapter to send `ext.prebid.debug:1` to PBS, which will turn on additional debugging. -2) Add the following `setConfig` to the page: +2) Add the following `setConfig` to the page to get the same result: {% highlight bash %} pbjs.setConfig({"debug":true}); {% endhighlight %} +3) If instead of ext.prebid.debug you would like to set the OpenRTB 2.5 'test' flag, you can set that using the 'ortb2' approach: + +{% highlight bash %} + pbjs.setConfig({ + "ortb2": { + "test":1 + } + }); +{% endhighlight %} + ### Invoked from AMP If you're invoking Prebid Server from AMP, you'll be unable to get debug info from the AMP page. However, you can capture the Prebid Server AMP call and append `&debug=1` to it: