← back to Naturaltextilewallpaper
TK-11341: add AdSense Auto-Ads loader + ads.txt (revert to remove ads)
d032b78f0d3499fe4dc45a3271c6f1826ce96d5c · 2026-09-09 16:02:14 -0700 · Steve
Files touched
Diff
commit d032b78f0d3499fe4dc45a3271c6f1826ce96d5c
Author: Steve <steve@designerwallcoverings.com>
Date: Wed Sep 9 16:02:14 2026 -0700
TK-11341: add AdSense Auto-Ads loader + ads.txt (revert to remove ads)
---
server.js | 3 +++
1 file changed, 3 insertions(+)
diff --git a/server.js b/server.js
index 5e2b228..0f66e2c 100644
--- a/server.js
+++ b/server.js
@@ -215,6 +215,7 @@ function sortProducts(list, mode) {
// --- Express app --------------------------------------------------------
const app = express();
+app.get('/ads.txt', (req, res) => res.type('text/plain').send('google.com, pub-5278231299883833, DIRECT, f08c47fec0942fa0'));
app.use(helmet({
contentSecurityPolicy: false // allow inline styles/scripts for the toggle
}));
@@ -322,6 +323,7 @@ function headHTML(title, description, canonical='', ogImage='') {
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">
<script>
@@ -520,6 +522,7 @@ function headerHTML(q='', material='all', sort='newest') {
];
return `
<header class="site-header">
+ <script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-5278231299883833" crossorigin="anonymous"></script>
<div class="header-inner">
<a href="/" class="brand">
<span class="brand-mark">Natural Textile<br>Wallpaper</span>
← 3b83be0 snapshot before restart: preserve in-flight work (auto-saved
·
back to Naturaltextilewallpaper
·
Keep one AdSense loader in inline page templates 64a05a6 →