Skip to content

Commit

Permalink
PBS Bid Adapter: No longer pass test=1 on debug mode (#6924)
Browse files Browse the repository at this point in the history
* Update index.js

* Update index.js
  • Loading branch information
patmmccann authored Jun 8, 2021
1 parent 94ad22d commit c8058a6
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion modules/prebidServerBidAdapter/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -730,7 +730,8 @@ const OPEN_RTB_PROTOCOL = {
source: {tid: s2sBidRequest.tid},
tmax: s2sConfig.timeout,
imp: imps,
test: getConfig('debug') ? 1 : 0,
// to do: add setconfig option to pass test = 1
test: 0,
ext: {
prebid: {
// set ext.prebid.auctiontimestamp with the auction timestamp. Data type is long integer.
Expand All @@ -748,6 +749,11 @@ const OPEN_RTB_PROTOCOL = {
// Sets pbjs version, can be overwritten below if channel exists in s2sConfig.extPrebid
request.ext.prebid = Object.assign(request.ext.prebid, {channel: {name: 'pbjs', version: $$PREBID_GLOBAL$$.version}})

// set debug flag if in debug mode
if (getConfig('debug')) {
request.ext.prebid = Object.assign(request.ext.prebid, {debug: 1})
}

// s2sConfig video.ext.prebid is passed through openrtb to PBS
if (s2sConfig.extPrebid && typeof s2sConfig.extPrebid === 'object') {
request.ext.prebid = Object.assign(request.ext.prebid, s2sConfig.extPrebid);
Expand Down

0 comments on commit c8058a6

Please sign in to comment.