diff --git a/dev-docs/modules/debugging.md b/dev-docs/modules/debugging.md index bc0d0bd42b..2e2d954d56 100644 --- a/dev-docs/modules/debugging.md +++ b/dev-docs/modules/debugging.md @@ -31,8 +31,9 @@ pbjs.setConfig({ intercept: [ { when: { - // intercept all bids that have adUnitCode === 'test-div' + // intercept bids from bidderA that have adUnitCode === 'test-div' adUnitCode: 'test-div', + bidder: 'bidderA' }, then: { // mock their response with sane defaults and `cpm: 10` @@ -155,3 +156,34 @@ To illustrate, the following definitions are equivalent: |Property |Type |Default value |Description | |---------+------------------+--------------+------------------------------------------------------------------------------------------------------------------------| |`delay` |Number |0 |Delay (in milliseconds) before intercepted bids are injected into the auction. Can be used to simulate network latency. | + +## Examples + +### Force a video bid + +```javascript +pbjs.setConfig({ + debugging: { + enabled: true, + intercept: [ + { + when: { + adUnitCode: "video-adunit", + bidder: "bidderA' + }, + then: { + cpm: 10, + mediaType: "video", + source: "client", + currency: "SEK", + cpm: 50.00, + creativeId: "11111", + width: 640, + height: 360, + vastXml: "Prebid TestVAST 2.0 Linear Ad00:00:15" + } + }, + ] + } +}); +```