Skip to content

Commit 944e750

Browse files
authored
feat: use new adsense code
1 parent fb486f3 commit 944e750

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

components/Advertisement.tsx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
import AdSense from 'react-adsense'
22

33
const Advertisement: React.FC<AdvertisementProps> = ({ size = 'short' }) => {
4+
return null
5+
/*
46
return (
57
<div className='py-5'>
68
<div
@@ -16,8 +18,8 @@ const Advertisement: React.FC<AdvertisementProps> = ({ size = 'short' }) => {
1618
width: '100%',
1719
height: size === 'short' ? '90px' : '330px',
1820
}}
19-
client='ca-pub-2090578791829639'
20-
slot='9248632227'
21+
client='ca-pub-4672948131576368'
22+
slot=''
2123
format=''
2224
/>
2325
) : (
@@ -26,6 +28,7 @@ const Advertisement: React.FC<AdvertisementProps> = ({ size = 'short' }) => {
2628
</div>
2729
</div>
2830
)
31+
*/
2932
}
3033

3134
declare global {

pages/_document.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ class MyDocument extends Document {
190190
{/* SCRIPT */}
191191
<script src='//cdnjs.cloudflare.com/ajax/libs/highlight.js/10.5.0/highlight.min.js'></script>
192192
<script
193-
data-ad-client='ca-pub-2090578791829639'
193+
data-ad-client='ca-pub-4672948131576368'
194194
async
195195
src='//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js'
196196
></script>

public/ads.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
google.com, pub-2090578791829639, DIRECT, f08c47fec0942fa0
1+
google.com, pub-4672948131576368, DIRECT, f08c47fec0942fa0

0 commit comments

Comments
 (0)