simple主题 广告位优化

This commit is contained in:
tangly1024
2023-06-20 15:56:53 +08:00
parent 5c8a7b607b
commit eda51e4479
8 changed files with 43 additions and 38 deletions

View File

@@ -45,7 +45,7 @@ const AdSlot = ({ type = 'show' }) => {
data-ad-layout="in-article"
data-ad-format="fluid"
data-ad-client={BLOG.ADSENSE_GOOGLE_ID}
data-ad-slot="3806269138"></ins>
data-ad-slot="3806269138" data-adtest="on"></ins>
}
// 信息流广告
@@ -55,7 +55,7 @@ const AdSlot = ({ type = 'show' }) => {
data-ad-layout-key="-5j+cz+30-f7+bf"
style={{ display: 'block' }}
data-ad-client={BLOG.ADSENSE_GOOGLE_ID}
data-ad-slot="1510444138"></ins>
data-ad-slot="1510444138" data-adtest="on"></ins>
}
// 原生广告
@@ -64,7 +64,7 @@ const AdSlot = ({ type = 'show' }) => {
style={{ display: 'block', textAlign: 'center' }}
data-ad-format="autorelaxed"
data-ad-client={BLOG.ADSENSE_GOOGLE_ID}
data-ad-slot="4980048999"></ins>
data-ad-slot="4980048999" data-adtest="on"></ins>
}
// 展示广告
@@ -73,7 +73,7 @@ const AdSlot = ({ type = 'show' }) => {
data-ad-client={BLOG.ADSENSE_GOOGLE_ID}
data-ad-slot="8807314373"
data-ad-format="auto"
data-full-width-responsive="true"></ins>
data-full-width-responsive="true" data-adtest="on"></ins>
}
export { AdSlot }

View File

@@ -7,7 +7,6 @@ import TweetEmbed from 'react-tweet-embed'
import 'katex/dist/katex.min.css'
import { mapImgUrl } from '@/lib/notion/mapImage'
import { AdSlot } from './GoogleAdsense'
const Code = dynamic(() =>
import('react-notion-x/build/third-party/code').then(async (m) => {
@@ -80,8 +79,6 @@ const NotionPage = ({ post, className }) => {
<PrismMac />
<AdSlot type={'in-article'}/>
</div>
}