← back to Homesonspec
TK-11341: add AdSense Auto-Ads loader + ads.txt (revert to remove ads)
6c9cd93d771d31554b6b9dde822e9a4e1be7e3db · 2026-09-09 16:02:09 -0700 · Steve
Files touched
A apps/web/public/ads.txtM apps/web/src/components/AdSlot.tsx
Diff
commit 6c9cd93d771d31554b6b9dde822e9a4e1be7e3db
Author: Steve <steve@designerwallcoverings.com>
Date: Wed Sep 9 16:02:09 2026 -0700
TK-11341: add AdSense Auto-Ads loader + ads.txt (revert to remove ads)
---
apps/web/public/ads.txt | 1 +
apps/web/src/components/AdSlot.tsx | 2 +-
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/apps/web/public/ads.txt b/apps/web/public/ads.txt
new file mode 100644
index 00000000..8f11fe61
--- /dev/null
+++ b/apps/web/public/ads.txt
@@ -0,0 +1 @@
+google.com, pub-5278231299883833, DIRECT, f08c47fec0942fa0
diff --git a/apps/web/src/components/AdSlot.tsx b/apps/web/src/components/AdSlot.tsx
index f251f8e1..9f5a4ea1 100644
--- a/apps/web/src/components/AdSlot.tsx
+++ b/apps/web/src/components/AdSlot.tsx
@@ -16,7 +16,7 @@ import { useEffect } from "react";
* never interleaved into the listings grid, always tagged "Advertisement".
*/
-const CLIENT = process.env.NEXT_PUBLIC_ADSENSE_CLIENT; // unset = ads OFF
+const CLIENT = process.env.NEXT_PUBLIC_ADSENSE_CLIENT || "ca-pub-5278231299883833"; // TK-11341 default pub id
declare global {
interface Window {
← aaf2c487 snapshot before restart: preserve in-flight work
·
back to Homesonspec
·
Require configured slots for manual AdSense units 32416391 →