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

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 294f67f4-0454-4390-9ae6-0049f2a3984b

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feature/google-adsense

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

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