forked from ampproject/amphtml
-
Notifications
You must be signed in to change notification settings - Fork 1
/
inabox.gpt.html
33 lines (32 loc) · 904 Bytes
/
inabox.gpt.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
<!doctype html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<script async="async" src="/examples/inabox-gpt.js"></script>
<script>
var googletag = googletag || {};
googletag.cmd = googletag.cmd || [];
</script>
<title>AMP inabox for GPT demo</title>
</head>
<body>
<h2>Scroll down to see a GPT slot that tries to request that same AMP ad</h2>
<script>
googletag.cmd.push(function() {
googletag
.defineSlot("/30497360/cfuertes/amp/inabox_300_200", [300, 200], "div-gpt-ad-12345")
.addService(googletag.pubads());
googletag.enableServices();
});
</script>
<div style="height: 120vh"></div>
<div id="div-gpt-ad-12345" style="width:300px;height:200px">
<script>
googletag.cmd.push(function() {
googletag.display("div-gpt-ad-12345");
});
</script>
</div>
<div style="height: 120vh"></div>
</body>
</html>