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

View File

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

View File

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