There are several ways to get more debug info from Prebid Server.
If you’re invoking Prebid Server directly, add one of these parameters to the OpenRTB:
"test":1
: This will inform bidders that this request should be treated as a test (non-billable), and provides additional debug information in the OpenRTB response."ext.prebid.debug":true
: Similar to test
, but just adds debug info, without declaring the request non-billable.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. This will cause the pbsBidAdapter to send ext.prebid.debug:true
to PBS, which will turn on additional debugging.
2) Add the following setConfig
to the page to get the same result:
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:
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:
Currently, this approach only works with the Java version of Prebid Server.
Sometimes it’s hard to get a test bid. Other times, you may want to test a very specific bid, such as one that has a particular CPM value or creative.
The Prebid Server ‘stored response’ feature allows you to handcraft bid responses in two basic steps:
Getting a Stored Auction Response ID into the OpenRTB can be done in two ways:
A storedauctionresponse
ID can be specified in imp[].ext.prebid
. If specified, then the behavior of Prebid Server changes:
So for example, this OpenRTB request:
Could result in this response, assuming that the IDs exist in the database table read by Prebid Server:
(PBS-Java only)
Sometimes you want to see what’s coming into the server before being processed by PBS. If the admin endpoints are enabled and you have the admin endpoint password, you can hit these two URLs with the desired parameter values:
Then you can check server logs for output like:
http-interaction : Requested URL: "/openrtb2/auction", request body: "{ ... }"