Skip to content

Commit

Permalink
[fix] 광고 사이즈가 심상치 않다.. #458
Browse files Browse the repository at this point in the history
  • Loading branch information
triplecheeseburger committed Aug 10, 2023
1 parent 89d545e commit 453f448
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 12 deletions.
10 changes: 0 additions & 10 deletions components/global/GoogleAd.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,11 @@ export default function GoogleAd({
client = '',
slot = '',
format = '',
responsive = '',
layoutKey = '',
}: {
className?: string;
client?: string;
slot?: string;
format?: string;
responsive?: string;
layoutKey?: string;
}) {
useEffect(() => {
// if (process.env.NODE_ENV !== 'production') return;
Expand Down Expand Up @@ -46,17 +42,11 @@ export default function GoogleAd({
<ins
className={className}
style={{
overflowX: 'auto',
overflowY: 'hidden',
display: 'block',
textAlign: 'center',
margin: '0',
}}
data-ad-client={client}
data-ad-slot={slot}
data-ad-format={format}
data-full-width-responsive={responsive}
data-ad-layout-key={layoutKey}
/>
</div>
);
Expand Down
2 changes: 0 additions & 2 deletions components/layouts/AdsLayout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ export default function AdsLayout({ children }: LayoutProps) {
client='ca-pub-5861134754944224'
slot='4781852804'
format='vertical'
responsive='true'
/>
</div>
);
Expand All @@ -54,7 +53,6 @@ export default function AdsLayout({ children }: LayoutProps) {
client='ca-pub-5861134754944224'
slot='9772393400'
format='horizontal'
responsive='true'
/>
</div>
);
Expand Down

0 comments on commit 453f448

Please sign in to comment.