This repository has been archived by the owner on Nov 16, 2017. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
/
showAdSenseAds.php
50 lines (50 loc) · 2.08 KB
/
showAdSenseAds.php
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
<html>
<head>
<meta http-equiv="refresh" content="120">
<meta charset="UTF-8">
<style type="text/css">
html, body {
margin: 0;
padding: 0;
}
</style>
</head>
<body>
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<?php
switch ( $_GET['size'] ) {
case "250":
echo '<!-- Square 250 -->
<ins class="adsbygoogle"
style="display:inline-block;width:250px;height:250px"
data-ad-client="ca-pub-9543775174763951"
data-ad-slot="8311981130"></ins>';
break;
case "728":
echo '<!-- Leaderboard Ad -->
<ins class="adsbygoogle"
style="display:inline-block;width:728px;height:90px"
data-ad-client="ca-pub-9543775174763951"
data-ad-slot="5358514734"></ins>';
break;
case "320":
echo '<!-- Mobile 320 Ad -->
<ins class="adsbygoogle"
style="display:inline-block;width:320px;height:100px"
data-ad-client="ca-pub-9543775174763951"
data-ad-slot="6835247939"></ins>';
break;
default:
echo '<ins class="adsbygoogle"
style="display:block"
data-ad-client="ca-pub-9543775174763951"
data-ad-slot="9788714334"
data-ad-format="auto"></ins>';
break;
}
?>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
</body>
</html>