Skip to content

Commit 224ebd8

Browse files
committed
fix: wrong ad key
1 parent 7703a20 commit 224ebd8

File tree

3 files changed

+9
-5
lines changed

3 files changed

+9
-5
lines changed

src/components/ads/AdBanner.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@ import { isDevelopment, ScriptLoader, safeLog, isAdBlockerActive } from '@/utils
44

55
interface AdBannerProps {
66
slot: string;
7-
format?: 'auto' | 'rectangle' | 'vertical' | 'horizontal';
7+
format?: 'auto' | 'rectangle' | 'vertical' | 'horizontal' | 'fluid';
88
responsive?: boolean;
9+
layoutKey?: string;
910
className?: string;
1011
style?: React.CSSProperties;
1112
}
@@ -20,6 +21,7 @@ const AdBanner: React.FC<AdBannerProps> = ({
2021
slot,
2122
format = 'auto',
2223
responsive = true,
24+
layoutKey = '',
2325
className = '',
2426
style = {},
2527
}) => {
@@ -140,6 +142,7 @@ const AdBanner: React.FC<AdBannerProps> = ({
140142
data-ad-client={analyticsConfig.adsense.publisherId}
141143
data-ad-slot={slot}
142144
data-ad-format={format}
145+
data-ad-layout-key={layoutKey}
143146
data-full-width-responsive={responsive.toString()}
144147
/>
145148
</div>

src/pages/Index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ const Index = () => {
197197
{/* 사이드바 광고 */}
198198
<AnalyticsErrorBoundary>
199199
<AdBanner
200-
slot="1234567890"
200+
slot="8647305847"
201201
format="auto"
202202
className="w-full"
203203
style={{ minHeight: '250px' }}
@@ -207,7 +207,7 @@ const Index = () => {
207207
{/* 두 번째 광고 */}
208208
<AnalyticsErrorBoundary>
209209
<AdBanner
210-
slot="0987654321"
210+
slot="8647305847"
211211
format="auto"
212212
className="w-full"
213213
style={{ minHeight: '250px' }}

src/pages/ToolPage.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,8 +148,9 @@ const ToolPage = () => {
148148
<div className="mt-8">
149149
<AnalyticsErrorBoundary>
150150
<AdBanner
151-
slot="1122334455"
152-
format="auto"
151+
slot="6031323740"
152+
format="fluid"
153+
layoutKey="-fb+5w+4e-db+86"
153154
className="max-w-2xl mx-auto"
154155
style={{ minHeight: '250px' }}
155156
/>

0 commit comments

Comments
 (0)