Skip to content

Commit 26b04f9

Browse files
mkomorskiMarcin Komorski
andauthored
mocking bids in examples (#6396)
Co-authored-by: Marcin Komorski <[email protected]>
1 parent 2dbe298 commit 26b04f9

File tree

2 files changed

+32
-0
lines changed

2 files changed

+32
-0
lines changed

dev-docs/examples/in-renderer-integration.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,22 @@ var adUnit = {
5353
};
5454

5555
pbjs.que.push(function() {
56+
pbjs.setConfig({
57+
debugging: {
58+
enabled: true,
59+
intercept: [
60+
{
61+
when: {
62+
bidder: 'michao',
63+
},
64+
then: {
65+
cpm: 10,
66+
mediaType: "video",
67+
}
68+
}
69+
]
70+
}
71+
});
5672
pbjs.addAdUnits(adUnit);
5773
pbjs.requestBids({
5874
timeout: 5000,

examples/video/outstream/pb-ve-outstream-no-server-specify-renderer.html

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,22 @@ <h4>Place this code in the page header.</h4>
143143
}];
144144

145145
pbjs.que.push(function() {
146+
pbjs.setConfig({
147+
debugging: {
148+
enabled: true,
149+
intercept: [
150+
{
151+
when: {
152+
bidder: 'appnexus',
153+
},
154+
then: {
155+
cpm: 10,
156+
mediaType: "video",
157+
}
158+
}
159+
]
160+
}
161+
});
146162
pbjs.addAdUnits(adUnits);
147163
pbjs.requestBids({
148164
timeout: 1000,

0 commit comments

Comments
 (0)