Blog Ad Revenue Clarification | Generated by AI

Home 2026.07

Question: Clarifying — you want ads displayed on your own blog to earn revenue, not to advertise elsewhere, correct?

Answer: Yes — that’s exactly what my last answer does. To be clear about what each piece does:

So the full flow is:

  1. Apply at ads.google.com → get approved for lzwjava.github.io
  2. Get your pub-XXXXXXXXXXXXXXXX ID
  3. Drop ads.txt at repo root
  4. Add the script tag to _layouts/default.html head
  5. Add the <ins> ad unit to _layouts/post.html
  6. Push → GitHub Pages rebuilds → ads show on your blog posts

There’s no step here that sends your content or ads to another site. AdSense just injects ad <iframe>s into your own pages, and Google pays you per impression/click on your traffic.

If instead you meant something different — like embedding a banner for your own products (Fun Live, your AI consulting) rather than Google’s network ads — that’s a different, simpler build (just a static <div> with your own CTA, no AdSense approval needed, no revenue-share cut to Google). Which one do you actually want?


Generated by AI. Curating and sharing still takes effort. If you find it useful, feel free to donate. WeChat: @lzwjava · X: @lzwjava · Say hi 👋

Back Donate