Skip to content

🤖 feat(web): enable live Google AdSense unit and compact slot layout - #43

Merged
thenom merged 4 commits into
mainfrom
feat/live-adsense-compact
Nov 13, 2026
Merged

thenom merged 4 commits into
mainfrom
feat/live-adsense-compact

Conversation

@thenom

@thenom thenom commented Nov 13, 2026

Copy link
Copy Markdown
Owner

Summary

  • Enable Live Google AdSense Unit (9700539154):
    • Updated AdSenseSlot in apps/web/src/components/MonetizationSlot.tsx and OpenTofu defaults in infra/tofu/variables.tf to default to live mode with publisher ID ca-pub-4414971156573564 and ad unit slot ID 9700539154.
    • Automatically falls back from placeholder ca-pub-0000000000000000 or 0000000000 environment variable overrides so Cloudflare Pages builds never pass invalid all-zero IDs to AdSense.
    • Added single-push guard (pushedRef), preloaded script error listener, and a MutationObserver that collapses the container when AdSense marks the unit data-ad-status="unfilled".
  • Compact & Subtle AdSense Container Layout:
    • Reduced the visual footprint of AdSenseSlot (max-w-4xl mx-auto, tighter px-3 py-2 padding, muted header strip without pulsing animation) so it remains understated and does not dominate the workspace UI.

🤖 AI Agent / LLM Contribution Disclosure

  • Developed with AI Agent: Generated and verified with the assistance of Google DeepMind Antigravity (Gemini).
  • Prompt / Context: Diagnose why Google AdSense ads were not appearing on scbind.com, configure the generated live AdSense unit (ca-pub-4414971156573564 / slot 9700539154) in live mode, and reduce the size and visual prominence of the AdSense section.
  • Verification Steps:
    • Updated and executed Vitest unit test suite (apps/web/src/components/__tests__/MonetizationSlot.spec.tsx).
    • Validated OpenTofu configuration (tofu fmt -check & tofu validate) and full monorepo build (npm run build).

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Nov 13, 2026 •

Copy link
Copy Markdown

Deploying sc-controller-mapper with  Cloudflare Pages  Cloudflare Pages

Latest commit: 4a9fb46
Status: ✅  Deploy successful!
Preview URL: https://e8c23e42.sc-controller-mapper.pages.dev
Branch Preview URL: https://feat-live-adsense-compact.sc-controller-mapper.pages.dev

View logs

@thenom
thenom merged commit 98a104f into main Nov 13, 2026
10 checks passed
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