File tree Expand file tree Collapse file tree 2 files changed +25
-3
lines changed Expand file tree Collapse file tree 2 files changed +25
-3
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,12 @@ pid: 10
16
16
17
17
## Basic Prebid.js Example
18
18
19
- {% capture htmlCodePrebid %}<h5 >Div-1</h5 >
19
+ {% capture htmlCodePrebid %}
20
+ <!-- DO NOT add this script in prod -->
21
+ <script src =" intercept-banner-not-for-prod.js " ></script >
22
+ <!-- END -->
23
+
24
+ <h5 >Div-1</h5 >
20
25
<div id =' div-1 ' style =" min-height :250px ;" >
21
26
<script type =' text/javascript ' >
22
27
googletag .cmd .push (function () {
@@ -26,7 +31,8 @@ pid: 10
26
31
</div >
27
32
{% endcapture %}
28
33
29
- {% capture jsCode %}var sizes = [
34
+ {% capture jsCode %}
35
+ var sizes = [
30
36
[ 300, 250]
31
37
] ;
32
38
var PREBID_TIMEOUT = 700;
@@ -41,7 +47,7 @@ var adUnits = [{
41
47
bids: [ {
42
48
bidder: 'appnexus',
43
49
params: {
44
- placementId: 13144370
50
+ placementId: 'XXXXXXX' //not used in prod
45
51
}
46
52
}]
47
53
}] ;
Original file line number Diff line number Diff line change
1
+ window . pbjs = window . pbjs || { que : [ ] } ;
2
+ pbjs . que . push ( ( ) => {
3
+ pbjs . setConfig ( {
4
+ debugging : {
5
+ enabled : true ,
6
+ intercept : [ {
7
+ when : {
8
+ bidder : 'appnexus' ,
9
+ } ,
10
+ then : {
11
+ ad : '<html><body><img src="https://files.prebid.org/creatives/prebid300x250.png" width="300" height="250" /></body></html>'
12
+ }
13
+ } ]
14
+ }
15
+ } )
16
+ } )
You can’t perform that action at this time.
0 commit comments