-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcontentdriven-example.html
134 lines (121 loc) · 3.04 KB
/
contentdriven-example.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
Edit in JSFiddle
HTML
Result
<html>
<head>
<meta name="description" content="Big Ten reporters pick Michigan to win league title in 2019. Big Ten reporters pick Michigan to win league title in 2019. The annual preseason poll was conducted by Cleveland.com and includes the results from 34 respondents">
<link rel="icon" type="image/png" href="/favicon.png">
<script async src="//www.adrelevantis.com/js/dev/prebid.js"></script>
<!--script async src="../../build/dev/prebid.js"></script-->
<script async src="//www.googletagservices.com/tag/js/gpt.js"></script>
<script src="//www.adrelevantis.com/js/contentidentifierwithgoogletag.js"></script>
<script>
var div_1_sizes = [
[300, 250],
[300, 600]
];
var div_2_sizes = [
[970, 250]
];
var div_3_sizes = [
[300, 600],
[728, 90],
[970, 250]
];
var PREBID_TIMEOUT = 1000;
var FAILSAFE_TIMEOUT = 3000;
var adUnits = [
{
code: '/21901351985/header-bid-tag-0',
mediaTypes: {
banner: {
sizes: div_1_sizes
}
},
bids: [{
bidder: 'adrelevantis',
params: {
placementId: 13144370,
cpm: 0.50
}
}]
},
{
code: '/21901351985/header-bid-tag-1',
mediaTypes: {
banner: {
sizes: div_2_sizes
}
},
bids: [{
bidder: 'adrelevantis',
params: {
placementId: 13144370,
cpm: 0.50
}
}]
},
{
code: '/21901351985/header-bid-tag-2',
mediaTypes: {
banner: {
sizes: div_3_sizes
}
},
bids: [{
bidder: 'adrelevantis',
params: {
placementId: 13144370,
cpm: 0.50
}
},
{
bidder: 'appnexus',
params: {
placementId: 13144370
}
}]
}
];
var pbjs = pbjs || {};
pbjs.que = pbjs.que || [];
var googletag = googletag || {};
googletag.cmd = googletag.cmd || [];
googletag.cmd.push(function() {
googletag.pubads().disableInitialLoad();
});
</script>
<script>
var adDivIds = ['div-1','div-2','div-3'];
document.addEventListener("DOMContentLoaded", function(event){ adrgoogletags("D435C107A8844E15BAA5D4A9B7D94FC5", adUnits, adDivIds); });
</script>
</head>
<body>
<h2>Content-Driven Prebid.js Example</h2>
<h5>Div-1</h5>
<div id='div-1'>
<script type='text/javascript'>
googletag.cmd.push(function() {
googletag.display('div-1');
});
</script>
</div>
<br>
<h5>Div-2</h5>
<div id='div-2'>
<script type='text/javascript'>
googletag.cmd.push(function() {
googletag.display('div-2');
});
</script>
</div>
<h5>Div-3</h5>
<div id='div-3'>
<script type='text/javascript'>
googletag.cmd.push(function() {
googletag.display('div-3');
});
</script>
</div>
</body>
</html>