Skip to content

Commit 2492d65

Browse files
add adsense unit
1 parent 9d8327f commit 2492d65

File tree

2 files changed

+44
-0
lines changed

2 files changed

+44
-0
lines changed

public/index.html

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,47 @@
7070
></noscript>
7171
<!-- End Google Tag Manager (noscript) -->
7272

73+
<!-- Google AdSense -->
74+
<script
75+
async
76+
src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-3632473845121107"
77+
crossorigin="anonymous"
78+
></script>
79+
<!-- End Google AdSense -->
80+
81+
<!-- Google AdSense Unit (Header) -->
82+
<div style="max-width: 1200px; margin: 30px auto">
83+
<ins
84+
class="adsbygoogle"
85+
style="display: block"
86+
data-ad-client="ca-pub-3632473845121107"
87+
data-ad-slot="2299922139"
88+
data-ad-format="auto"
89+
data-full-width-responsive="true"
90+
></ins>
91+
</div>
92+
<script>
93+
(adsbygoogle = window.adsbygoogle || []).push({});
94+
</script>
95+
<!-- End Google AdSense Unit (Header) -->
96+
7397
<noscript>You need to enable JavaScript to run this app.</noscript>
7498
<div id="root"></div>
99+
100+
<!-- Google AdSense Unit (Footer) -->
101+
<div style="max-width: 1200px; margin: 30px auto">
102+
<ins
103+
class="adsbygoogle"
104+
style="display: block"
105+
data-ad-client="ca-pub-3632473845121107"
106+
data-ad-slot="3221836158"
107+
data-ad-format="auto"
108+
data-full-width-responsive="true"
109+
></ins>
110+
</div>
111+
<script>
112+
(adsbygoogle = window.adsbygoogle || []).push({});
113+
</script>
114+
<!-- End Google AdSense Unit (Footer) -->
75115
</body>
76116
</html>

src/index.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,7 @@ body {
1111
-moz-osx-font-smoothing: grayscale;
1212
line-height: 1.6;
1313
}
14+
15+
.adsbygoogle[data-ad-status='unfilled'] {
16+
display: none !important;
17+
}

0 commit comments

Comments
 (0)