[object Object]

← back to IWasCute

TK-11341: add AdSense Auto-Ads loader + ads.txt (revert to remove ads)

fc38976720210bf84e6765788799c0b8d96f6918 · 2026-09-09 16:02:11 -0700 · Steve

Files touched

Diff

commit fc38976720210bf84e6765788799c0b8d96f6918
Author: Steve <steve@designerwallcoverings.com>
Date:   Wed Sep 9 16:02:11 2026 -0700

    TK-11341: add AdSense Auto-Ads loader + ads.txt (revert to remove ads)
---
 public/ads.txt     | 1 +
 src/app/layout.tsx | 7 +++++++
 2 files changed, 8 insertions(+)

diff --git a/public/ads.txt b/public/ads.txt
new file mode 100644
index 0000000..8f11fe6
--- /dev/null
+++ b/public/ads.txt
@@ -0,0 +1 @@
+google.com, pub-5278231299883833, DIRECT, f08c47fec0942fa0
diff --git a/src/app/layout.tsx b/src/app/layout.tsx
index 67c7cd8..4e80308 100644
--- a/src/app/layout.tsx
+++ b/src/app/layout.tsx
@@ -1,4 +1,5 @@
 import type { Metadata } from "next";
+import Script from "next/script";
 import { Geist, Geist_Mono } from "next/font/google";
 import "./globals.css";
 import VersionSwitcher from "@/components/shared/VersionSwitcher";
@@ -29,6 +30,12 @@ export default function RootLayout({
       className={`${geistSans.variable} ${geistMono.variable} h-full antialiased`}
     >
       <body className="min-h-full flex flex-col">
+        <Script
+          async
+          src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-5278231299883833"
+          crossOrigin="anonymous"
+          strategy="afterInteractive"
+        />
         {children}
         <VersionSwitcher />
       </body>

← 744445d add creds-in-URL fetch guard to gated pages (TK-10984)  ·  back to IWasCute  ·  Verify AdSense ownership without loading ads in private phot 9ee4d7d →