This repository has been archived by the owner on Oct 22, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 505
/
DoubleClick.html
352 lines (329 loc) · 12.7 KB
/
DoubleClick.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
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
<!---
preview: default
skipValidation: 'true'
--->
<!--
## Introduction
In an AMP story, you cannot put an `amp-ad` directly onto the page, instead, all
ads are fetched and displayed by the `amp-story-auto-ads` extension.
For the complete documentation please see our
[documentation](https://github.com/ampproject/amphtml/blob/master/extensions/amp-story/amp-story-ads.md)
on Github.
-->
<!doctype html>
<html ⚡ lang="en">
<head>
<meta charset="utf-8">
<link rel="canonical" href="https://ampbyexample.com/stories/monetization/doubleclick/">
<meta name="viewport" content="width=device-width,minimum-scale=1,initial-scale=1">
<script async src="https://cdn.ampproject.org/v0.js"></script>
<title>DoubleClick Ads for AMP Stories</title>
<script async custom-element="amp-story" src="https://cdn.ampproject.org/v0/amp-story-1.0.js"></script>
<script async custom-element="amp-video" src="https://cdn.ampproject.org/v0/amp-video-0.1.js"></script>
<!-- ## Setup -->
<!--
Import the `amp-story-auto-ads` component.
-->
<script async custom-element="amp-story-auto-ads" src="https://cdn.ampproject.org/v0/amp-story-auto-ads-0.1.js"></script>
<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>
<style amp-custom>
* {
box-sizing: border-box;
}
amp-story * {
font-family: 'Helvitica Nueve', sans-serif;
color: white;
}
amp-story-page {
background: white;
}
amp-story h1 {
font-size: 46px;
}
amp-story h2 {
font-size: 36px;
}
amp-story p {
font-size: 16px;
line-height: 24px;
}
.bold {
font-weight: bold;
}
.bottom {
align-content: end;
}
.medium {
font-weight: 600;
}
.first {
padding-top: 65px;
}
.last {
padding-bottom: 65px;
}
.blue {
color: #4285F4;
}
.twenty-px {
font-size: 20px;
}
.center {
text-align: center;
}
.lh30 {
line-height: 30px;
}
.icon {
background-image: url(<%host%>/img/AMP-Brand-White-Icon.svg);
background-repeat: no-repeat;
background-size: 50px 50px;
height: 50px;
object-fit: contain;
width: 50px;
}
.byline {
letter-spacing: 1.28px;
padding-bottom: 58px;
}
.introducing * {
line-height: 42px;
}
.subtitle-page {
padding-top: 80px;
}
.button {
align-items: center;
border: 4px solid #FFFFFF;
color: #FFFFFF;
display: flex;
height: 60px;
margin: 0 auto;
max-width: 240px;
text-decoration:none;
}
.button p {
font-size: 20px;
width: 100%;
}
amp-ad[template="image-template"] img,
amp-ad[template="video-template"] {
object-fit: cover;
}
::cue {
background-color: rgba(0, 0, 0, 0.75);
font-size: 24px;
line-height: 1.5;
}
</style>
</head>
<body>
<amp-story standalone
title="Key Highlights of AMP Conf 2018"
publisher="The AMP team"
publisher-logo-src="<%host%>/img/AMP-Brand-White-Icon.svg"
poster-portrait-src="<%host%>/img/overview.jpg">
<!-- ## Configuration -->
<!-- Include the `amp-story-auto-ads` tag on your page. -->
<!-- It's first child should be a `script` tag with a JSON configuration object
that contains details for how ads should be fetched and displayed.
`ad-attributes` is a map of key-value pairs, which correspond to the
attributes of the amp-ad element to be inserted.
-->
<!-- For ads served from DoubleClick one should set `"type": "doubleclick"`
and `"data-slot"` to the full path of the ad unit with the network code
and unit code.` -->
<amp-story-auto-ads>
<script type="application/json">
{
"ad-attributes": {
"type": "doubleclick",
"data-slot": "/30497360/a4a/amp_story_dfp_example"
}
}
</script>
</amp-story-auto-ads>
<!-- See the full example below:
<div class="abe-story-preview">
<amp-iframe media="(min-width: 650px)"
src="https://amp-by-example-api.appspot.com/stories/monetization/doubleclick/index.html"
width="440" height="732" sandbox="allow-scripts allow-popups allow-same-origin">
<div placeholder></div>
</amp-iframe>
</div> -->
<!-- -->
<amp-story-page id="page-1">
<amp-story-grid-layer template="fill">
<amp-video autoplay loop
width="400"
height="750"
poster="<%host%>/img/poster0.png"
layout="fill">
<source src="<%host%>/video/p1.mp4" type="video/mp4">
</amp-video>
</amp-story-grid-layer>
</amp-story-page>
<amp-story-page id="page-2">
<amp-story-grid-layer template="fill">
<amp-img width="400" height="750" layout="fill" src="<%host%>/img/overview.jpg"></amp-img>
</amp-story-grid-layer>
<amp-story-grid-layer template="vertical" class="bottom">
<h2 class="bold">Overview</h2>
<p>We held the second AMP Conf to celebrate the breadth of the AMP
community and announce the latest AMP innovations. We engaged 400+
devs in-person over two days and thousands globally on live stream.</p>
<p class="last">Here are the key launches by the AMP team and others this year</p>
</amp-story-grid-layer>
</amp-story-page>
<amp-story-page id="page-3">
<amp-story-grid-layer template="fill">
<amp-video autoplay loop
width="400"
height="750"
poster="<%host%>/img/poster.jpg"
layout="fill">
<source src="<%host%>/video/stamp-animation.mp4" type="video/mp4">
</amp-video>
</amp-story-grid-layer>
<amp-story-grid-layer template="vertical" class="bottom">
<div class="introducing">
<p class="bold blue twenty-px center">Introducing</p>
<h2 class="bold blue center last">AMP Stories</h2>
</div>
</amp-story-grid-layer>
</amp-story-page>
<amp-story-page id="page-4">
<amp-story-grid-layer template="fill">
<amp-img width="400" height="750" layout="fill" src="<%host%>/img/blue-stuff.jpg"></amp-img>
</amp-story-grid-layer>
<amp-story-grid-layer template="vertical" class="bottom">
<h1 class="bold">A visual storytelling format fot the open web</h1>
<p class="last">Providing content publishers with a mobile-focused
format for delivering news and information as visual, tap-through
stories on the open web.</p>
</amp-story-grid-layer>
</amp-story-page>
<amp-story-page id="page-5" auto-advance-after="stamp-vid">
<amp-story-grid-layer template="fill">
<amp-video autoplay
id="stamp-vid"
width="400"
height="750"
poster="<%host%>/img/poster2.jpg"
layout="fill">
<source src="<%host%>/video/stamp.mp4" type="video/mp4">
<track default src="<%host%>/video/stamp.vtt" srclang="en">
</amp-video>
</amp-story-grid-layer>
<amp-story-grid-layer template="thirds">
<div grid-area="lower-third" class="subtitle-page">
<p class="bold twenty-px center">
Telling stories with AMP.
</p>
</div>
</amp-story-grid-layer>
</amp-story-page>
<amp-story-page id="page-6">
<amp-story-grid-layer template="fill">
<amp-video autoplay loop
width="400"
height="750"
poster="<%host%>/img/poster3.jpg"
layout="fill">
<source src="<%host%>/video/gmail-animation.mp4" type="video/mp4">
</amp-video>
</amp-story-grid-layer>
<amp-story-grid-layer template="vertical">
<div class="introducing">
<p class="bold twenty-px center first">Introducing</p>
<h2 class="bold center">AMP For Email</h2>
</div>
</amp-story-grid-layer>
</amp-story-page>
<amp-story-page id="page-7">
<amp-story-grid-layer template="fill">
<amp-img width="400" height="750" layout="fill" src="<%host%>/img/blue-gmail.jpg"></amp-img>
</amp-story-grid-layer>
<amp-story-grid-layer template="vertical" class="bottom">
<h1 class="bold">Bringing the power of AMP to Gmail</h1>
<p class="last">New spec allows developers to create more engaging,
interactive, and actionable email experiences with AMP content.</p>
</amp-story-grid-layer>
</amp-story-page>
<amp-story-page id="page-8" auto-advance-after="gmail-vid">
<amp-story-grid-layer template="fill">
<amp-video autoplay
id="gmail-vid"
width="400"
height="750"
poster="<%host%>/img/poster4.jpg"
layout="fill">
<source src="<%host%>/video/gmail.mp4" type="video/mp4">
<track default src="<%host%>/video/gmail.vtt" srclang="en">
</amp-video>
</amp-story-grid-layer>
<amp-story-grid-layer template="thirds">
<div grid-area="lower-third" class="subtitle-page">
<p class="bold twenty-px center lh30">
AMP for Email: <br/> A New Frontier for AMP
</p>
</div>
</amp-story-grid-layer>
</amp-story-page>
<amp-story-page id="page-9">
<amp-story-grid-layer template="fill">
<amp-img width="400" height="750" layout="fill" src="<%host%>/img/green-phone.jpg"></amp-img>
</amp-story-grid-layer>
<amp-story-grid-layer template="vertical" class="bottom">
<div class="introducing">
<p class="bold twenty-px center">Discover</p>
<h2 class="bold center last">AMP for <br/> E-Commerce</h2>
</div>
</amp-story-grid-layer>
</amp-story-page>
<amp-story-page id="page-10">
<amp-story-grid-layer template="fill">
<amp-img width="400" height="750" layout="fill" src="<%host%>/img/green-stuff.jpg"></amp-img>
</amp-story-grid-layer>
<amp-story-grid-layer template="vertical" class="bottom">
<h1 class="bold">Improve conversions with fast, user-friendly experiences</h1>
<p class="last">With instant page load, your customers can find the products they want quickly and easily.</p>
</amp-story-grid-layer>
</amp-story-page>
<amp-story-page id="page-11" auto-advance-after="ecomm-vid">
<amp-story-grid-layer template="fill">
<amp-video autoplay
id="ecomm-vid"
width="400"
height="750"
poster="<%host%>/img/poster5.jpg"
layout="fill">
<source src="<%host%>/video/ecommerce.mp4" type="video/mp4">
<track default src="<%host%>/video/ecommerce.vtt" srclang="en">
</amp-video>
</amp-story-grid-layer>
<amp-story-grid-layer template="thirds">
<div grid-area="lower-third" class="subtitle-page">
<p class="bold twenty-px center lh30">
Building an AMP e-commerce Experience
</p>
</div>
</amp-story-grid-layer>
</amp-story-page>
<amp-story-page id="page-12">
<amp-story-grid-layer template="fill">
<amp-img width="400" height="750" layout="fill" src="<%host%>/img/roadshow.jpg"></amp-img>
</amp-story-grid-layer>
<amp-story-grid-layer template="thirds" class="bottom">
<h1 grid-area="middle-third" class="bold">Join the worldwide AMP Roadshow</h1>
</amp-story-grid-layer>
<amp-story-cta-layer>
<a href="https://www.ampproject.org" class="button medium center">
<p class="20px">Sign up Now</p>
</a>
</amp-story-cta-layer>
</amp-story-page>
<amp-story-bookend src="<%host%>/json/bookend.json" layout="nodisplay"></amp-story-bookend>
</amp-story>
</body>
</html>