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

added setconfig for PBS test flag #3391

Merged
merged 1 commit into from
Nov 4, 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
14 changes: 12 additions & 2 deletions troubleshooting/pbs-troubleshooting.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down