feat: use new adsense code

This commit is contained in:
Eunwoo Choi 2025-01-20 21:36:31 +09:00 committed by GitHub
parent fb486f3fbe
commit 944e750c49
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 7 additions and 4 deletions

View File

@ -1,6 +1,8 @@
import AdSense from 'react-adsense'
const Advertisement: React.FC<AdvertisementProps> = ({ size = 'short' }) => {
return null
/*
return (
<div className='py-5'>
<div
@ -16,8 +18,8 @@ const Advertisement: React.FC<AdvertisementProps> = ({ size = 'short' }) => {
width: '100%',
height: size === 'short' ? '90px' : '330px',
}}
client='ca-pub-2090578791829639'
slot='9248632227'
client='ca-pub-4672948131576368'
slot=''
format=''
/>
) : (
@ -26,6 +28,7 @@ const Advertisement: React.FC<AdvertisementProps> = ({ size = 'short' }) => {
</div>
</div>
)
*/
}
declare global {

View File

@ -190,7 +190,7 @@ class MyDocument extends Document {
{/* SCRIPT */}
<script src='//cdnjs.cloudflare.com/ajax/libs/highlight.js/10.5.0/highlight.min.js'></script>
<script
data-ad-client='ca-pub-2090578791829639'
data-ad-client='ca-pub-4672948131576368'
async
src='//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js'
></script>

View File

@ -1 +1 @@
google.com, pub-2090578791829639, DIRECT, f08c47fec0942fa0
google.com, pub-4672948131576368, DIRECT, f08c47fec0942fa0