forked from ampproject/amphtml
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ads.amp.html
249 lines (220 loc) · 6.87 KB
/
ads.amp.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
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
<!doctype html>
<html ⚡>
<head>
<meta charset="utf-8">
<title>Ad examples</title>
<link rel="canonical" href="http://nonblocking.io/" >
<meta name="viewport" content="width=device-width,minimum-scale=1,initial-scale=1">
<style amp-custom>
amp-ad {
max-width: 500px;
}
/* Included here to make sure it does not render. */
.fixed {
position: fixed;
top: 0;
right: 0;
}
.red {
background-color: red;
}
amp-ad[type="revcontent"] {
width: 100%;
max-width: 1280px;
margin: 18px 0;
padding: 0;
}
</style>
<style amp-boilerplate>body{-webkit-animation:-amp-start 8s steps(1,end) 0s 1 normal both;-moz-animation:-amp-start 8s steps(1,end) 0s 1 normal both;-ms-animation:-amp-start 8s steps(1,end) 0s 1 normal both;animation:-amp-start 8s steps(1,end) 0s 1 normal both}@-webkit-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-moz-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-ms-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-o-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}</style><noscript><style amp-boilerplate>body{-webkit-animation:none;-moz-animation:none;-ms-animation:none;animation:none}</style></noscript>
<script async src="https://cdn.ampproject.org/v0.js"></script>
</head>
<body>
<h2>A9</h2>
<amp-ad width=300 height=250
type="a9"
data-aax_size="300x250"
data-aax_pubname="test123"
data-aax_src="302">
</amp-ad>
<div class="fixed">
<h4>Fixed positioned ad (will not render)</h4>
<amp-ad width=300 height=250
type="a9"
data-aax_size="300x250"
data-aax_pubname="test123"
data-aax_src="302">
</amp-ad>
</div>
<h2>AdReactor</h2>
<amp-ad width=728 height=90
type="adreactor"
data-pid=790
data-zid=9
data-custom3="No Type">
</amp-ad>
<h2>AdSense</h2>
<amp-ad width=300 height=200
type="adsense"
data-ad-client="ca-pub-8125901705757971"
data-ad-slot="7783467241">
</amp-ad>
<h2>AdTech</h2>
<amp-ad width=300 height=250
type="adtech"
src="https://adserver.adtechus.com/addyn/3.0/5280.1/2274008/0/-1/ADTECH;size=300x250;key=plumber;alias=careerbear-ros-middle1;loc=300;;target=_blank;grp=27980912;misc=3767074">
</amp-ad>
<h2>Teads</h2>
<amp-ad width=300 height=220
type="teads"
data-pid="42266"
layout="responsive">
<div fallback>Teads fallback - Discover <a href="http://teads.tv/en/platform/">inRead by Teads</a> !</div>
</amp-ad>
<h2>Doubleclick</h2>
<amp-ad width=320 height=50
type="doubleclick"
data-slot="/4119129/mobile_ad_banner"
>
</amp-ad>
<h2>Doubleclick with JSON based parameters</h2>
<amp-ad width=320 height=50
type="doubleclick"
data-slot="/4119129/mobile_ad_banner"
json='{"targeting":{"sport":["rugby","cricket"]},"categoryExclusions":["health"],"tagForChildDirectedTreatment":0}'
>
</amp-ad>
<h2>Doubleclick no ad with fallback</h2>
<amp-ad width=300 height=200
type="doubleclick"
data-slot="/4119129/doesnt-exist"
>
<div fallback>
<b>Thank you for trying AMP!</b>
<p>You got lucky! We have no ad to show to you!</p>
</div>
</amp-ad>
<h2>Doubleclick no ad with placeholder and fallback</h2>
<amp-ad width=300 height=200
type="doubleclick"
data-slot="/4119129/doesnt-exist"
>
<div placeholder>
<b>Placeholder here!!!</b>
</div>
<div fallback>
<b>Thank you for trying AMP!</b>
<p>You got lucky! We have no ad to show to you!</p>
</div>
</amp-ad>
<h2>Doubleclick with overriden size</h2>
<amp-ad width=420 height=100
data-override-width=320 data-override-height=50
type="doubleclick"
data-slot="/4119129/mobile_ad_banner"
class="red"
>
</amp-ad>
<h2>Challenging ad.</h2>
<amp-ad
width="414"
height="457"
layout="fixed"
type="doubleclick"
data-slot="/35096353/amptesting/badvideoad">
</amp-ad>
<h2>Criteo</h2>
<amp-ad width="300" height="250"
type="criteo"
data-zone="314159">
</amp-ad>
<h2>Flite</h2>
<amp-ad width=320 height=568
type = "flite"
data-guid = "aa7bf589-6d51-4194-91f4-d22eef8e3688"
data-mixins="">
</amp-ad>
<h2>Media Impact</h2>
<amp-ad width="320" height="250"
type="mediaimpact"
data-site="67767"
data-page="amp"
data-format="4459"
data-target=""
data-slot="4459">
</amp-ad>
<h2>plista</h2>
<amp-ad width=300 height=300
type="plista"
data-countrycode="de"
data-publickey="e6a75b42216ffc96b7ea7ad0c94d64946aedaac4"
data-widgetname="iAMP_2"
data-geo="de"
data-urlprefix=""
data-categories="politik">
</amp-ad>
<h2>Taboola responsive widget</h2>
<amp-embed width=100 height=283
type=taboola
layout=responsive
heights="(min-width:1907px) 39%, (min-width:1200px) 46%, (min-width:780px) 64%, (min-width:480px) 98%, (min-width:460px) 167%, 196%"
data-publisher="amp-demo"
data-mode="thumbnails-a"
data-placement="Ads Example"
data-article="auto">
</amp-embed>
<h2>DotAndAds masthead</h2>
<amp-ad width=980 height=250
type="dotandads"
data-cid="11"
data-mpo="ampTest"
data-mpt="amp-amp-all-all"
data-sp='sn-u'>
</amp-ad>
<h2>DotAndAds 300x250 box</h2>
<amp-ad width=300 height=250
type="dotandads"
data-sp='300x250-u'
data-cid="11"
data-mpo="ampTest"
data-mpt="amp-amp-all-all">
</amp-ad>
<h2>Open AdStream single ad</h2>
<amp-ad width=300 height=250
type="openadstream"
data-adhost="oasc-training7.247realmedia.com"
data-sitepage="dx_tag_pvt_site"
data-pos="x04"
data-query="keyword=keyvalue&key2=value2" >
</amp-ad>
<h2>SmartAdServer ad</h2>
<amp-ad width=320 height=50
type="smartadserver"
data-call="std"
data-site="94612"
data-page="629154"
data-format="38952"
data-target="foo=bar">
</amp-ad>
<h2>Yieldmo</h2>
<amp-ad width=300 height=168
type="yieldmo"
data-ymid="1349317029731662884">
</amp-ad>
<h2>Revcontent Widget with placeholder and fallback</h2>
<amp-ad width="320" height="420"
layout="responsive"
type="revcontent"
data-wrapper="rcjsload_2ff711"
data-endpoint="trends.revcontent.com"
data-id="203">
<div placeholder>200 Billion Content recommendations!</div>
<div fallback>200 Billion Content recommendations!</div>
</amp-ad>
<h2>TripleLift</h2>
<amp-ad width=297 height=410
type="triplelift"
layout="responsive"
src="https://ib.3lift.com/dtj/amptest_main_feed/335430">
</amp-ad>
</body>
</html>