[object Object]

← back to Interiordesignershowroom

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

0358e6eabbf0e8dea04c7ca894bcc6c274699523 · 2026-09-09 16:02:11 -0700 · Steve

Files touched

Diff

commit 0358e6eabbf0e8dea04c7ca894bcc6c274699523
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)
---
 lib/render.js | 1 +
 server.js     | 1 +
 2 files changed, 2 insertions(+)

diff --git a/lib/render.js b/lib/render.js
index 270ba37..b11e63a 100644
--- a/lib/render.js
+++ b/lib/render.js
@@ -263,6 +263,7 @@ function layout({ title, description, canonical, jsonld, image, body, activeNav,
   return `<!doctype html>
 <html lang="en">
 <head>
+    <script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-5278231299883833" crossorigin="anonymous"></script>
 <meta charset="utf-8">
 <meta name="viewport" content="width=device-width, initial-scale=1">
 <!-- Google tag (gtag.js) — GA4 property "Interior Designers Showroom" (G-DH9G5HL7YJ) -->
diff --git a/server.js b/server.js
index dedb781..5930e94 100644
--- a/server.js
+++ b/server.js
@@ -11,6 +11,7 @@ const hotspots = require('./lib/hotspots');
 const COLS = require('./lib/cols');
 
 const app = express();
+app.get('/ads.txt', (req, res) => res.type('text/plain').send('google.com, pub-5278231299883833, DIRECT, f08c47fec0942fa0'));
 const PORT = process.env.PORT || 9820;
 
 // Security headers on every response (no dependency). A strict Content-Security-Policy

← 323ecdb TK-11260: HOTSPOT_PROVIDER dispatcher + openai fallback, bac  ·  back to Interiordesignershowroom  ·  Allow AdSense through public CSP b58941c →