-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathgoogleTagPublisher_after.html
59 lines (54 loc) · 2.09 KB
/
googleTagPublisher_after.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
<head>
..
<script type="text/plain" class="_iub_cs_activate">
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 type="text/plain" class="_iub_cs_activate">
googletag.cmd.push(function() {
googletag.pubads().set("adsense_background_color", "FFFFFF");
});
</script>
<script type="text/plain" class="_iub_cs_activate">
googletag.cmd.push(function() {
googletag.defineSlot("/6355419/Travel/Europe/France/Paris", [728, 90], "div-gpt-ad-123456789-0")
.addService(googletag.pubads())
.setTargeting("interests", ["sports", "music", "movies"]);
googletag.defineSlot("/1234/travel/asia/food", [[468, 60], [728, 90], [300, 250]], "div-gpt-ad-123456789-1")
.addService(googletag.pubads())
.setTargeting("gender", "male")
.setTargeting("age", "20-30");
googletag.pubads().setTargeting("topic","basketball");
googletag.pubads().enableSingleRequest();
googletag.enableServices();
});
</script>
..
</head>
<body>
..
<div id="div-gpt-ad-123456789-0" style="width: width; height: height;">
<script type="text/plain" class="_iub_cs_activate">
googletag.cmd.push(function () {
googletag.display("div-gpt-ad-123456789-0");
});
</script>
</div>
<div id="div-gpt-ad-123456789-1" STYLE="height: height;width: width;">
<script type="text/plain" class="_iub_cs_activate">
googletag.cmd.push(function () {
googletag.display("div-gpt-ad-123456789-1");
});
</script>
</div>
..
</body>