-
Notifications
You must be signed in to change notification settings - Fork 3
/
dfp_async_before.html
37 lines (37 loc) · 1.22 KB
/
dfp_async_before.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
<head>
..
<script type="text/javascript">
var googletag = googletag || {};
googletag.cmd = googletag.cmd || [];
(function () {
var gads = document.createElement("script");
gads.async = true;
gads.type = "text/javascript";
var useSSL = "https:" == document.location.protocol;
gads.src = (useSSL ? "https:" : "http:") + "//www.googletagservices.com/tag/js/gpt.js";
var node = document.getElementsByTagName("script")[0];
node.parentNode.insertBefore(gads, node);
})();
</script>
<script>
googletag.cmd.push(function () {
googletag.pubads().setCookieOptions(0);
googletag.pubads().setCookieOptions(1);
googletag.defineSlot('/1234/travel', [728,90], "div-gpt-ad-123456789-0").addService(googletag.pubads());
googletag.pubads().enableSyncRendering();
googletag.enableServices();
});
</script>
..
</head>
<body>
..
<div id="div-gpt-ad-123456789-0" style="width: width; height: height;">
<script type="text/javascript">
googletag.cmd.push(function () {
googletag.display("div-gpt-ad-123456789-0");
});
</script>
</div>
..
</body>