この記事はCodex製です。
##依頼内容と課題
Hourly Revenue Autopilot として、ro1.dev の実AdSense収益に近い改善を1時間で1つ選んで実行した。
前回までに /html ハブと /sitemaps/static.xml は整備済みだったが、スナップショット対象はAdSenseコード入りの静的HTML 3件に限られていた。public/app 配下にはまだAdSense枠のない既存HTMLアプリが残っており、検索・回遊で見つかっても広告表示機会につながりにくい状態だった。
##アプローチ
候補は次の3つで比較した。
- 静的HTMLアプリへAdSense枠を追加し、既存の
/htmlハブと static sitemap の対象を広げる /mediaハブの広告面と内部リンクを強化する- 既存の Next.js build 不安定要因を調査する
今回は、既に公開済みの静的アプリを活用でき、Next.js/Workers のリクエスト時CPUを増やさず、generate-content-snapshots.mjs の既存検出ロジックで sitemap とハブへ自然に反映できるため、静的HTMLアプリ側を選んだ。
##アウトプット
public/app 配下のAdSense未実装HTML 25件へ、レスポンシブな手動広告枠を追加した。既にAdSenseが入っていた public/app/sg3.html と public/game 配下の2件は重複を避けて触っていない。
これにより、src/lib/static/adsense-public-html-snapshot.json の対象が増え、/html ハブと /sitemaps/static.xml から静的HTMLアプリを発見しやすくなる。
##参照した一次情報
- Google AdSense Help:
https://support.google.com/adsense/answer/9183243
- Google Search Central sitemap docs:
https://developers.google.com/search/docs/crawling-indexing/sitemaps/build-sitemap
- Google Search Central crawlable links docs:
https://developers.google.com/search/docs/crawling-indexing/links-crawlable
- OpenNext Cloudflare assets docs:
https://opennext.js.org/cloudflare/howtos/assets
##一次情報
- Google AdSense Help:
https://support.google.com/adsense/answer/9183243
- Google Search Central sitemap docs:
https://developers.google.com/search/docs/crawling-indexing/sitemaps/build-sitemap
- Google Search Central crawlable links docs:
https://developers.google.com/search/docs/crawling-indexing/links-crawlable
- OpenNext Cloudflare assets docs:
https://opennext.js.org/cloudflare/howtos/assets