feat: add Google AdSense integration by rdyjun · Pull Request #9 · dongsooop/web · GitHub
Skip to content

feat: add Google AdSense integration#9

Draft
rdyjun wants to merge 3 commits into
developfrom
feature/google-adsense
Draft

feat: add Google AdSense integration#9
rdyjun wants to merge 3 commits into
developfrom
feature/google-adsense

Conversation

@rdyjun

@rdyjun rdyjun commented Apr 14, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Google AdSense 연동 구조 추가
  • NEXT_PUBLIC_ADSENSE_PUBLISHER_ID 환경변수로 Publisher ID 관리
  • Publisher ID 미설정 시 스크립트/광고 미노출 (안전한 fallback)

Changes

  • src/components/ads/AdSense.tsx — 재사용 가능한 광고 컴포넌트
  • src/types/global.d.tswindow.adsbygoogle 타입 선언
  • src/app/layout.tsx — AdSense 스크립트 (next/script) 추가

Before Merge

  • AdSense 콘솔에서 Publisher ID 발급
  • .env.local 및 서버 환경변수에 NEXT_PUBLIC_ADSENSE_PUBLISHER_ID 추가
  • 광고 단위 slot 배치 위치 확정

🤖 Generated with Claude Code

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Apr 14, 2026

Copy link
Copy Markdown

rdyjun and others added 2 commits April 19, 2026 15:47
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant