Integration icon + Hyvor Blogs

Add Google AdSense to your blog

Google AdSense is a widely-used advertising platform by Google that allows website owners to monetize their content by displaying targeted ads to visitors. Learn how to integrate Google AdSense with your Hyvor Blogs blog.

Requirements:

  • a Google AdSense account. If you don't have one, you can create one from here
  • a blog on Hyvor Blogs

Step 1 - Add your blog to Google AdSense

  1. On the AdSense Dashboard, go to Site → New site.
  2. Enter your blog's URL and click Save.
  3. Adding site to Google AdSense

There are two types of connecting your blog. Using,

  • Adsense code snippet
  • Ads.txt snippet

1.1 Using AdSense Code Snippet

Paste code
  1. Copy the code snippet given.
  2. Go to Settings → Custome Code → Head Code in your blog's dashboard.
  3. Paste code
  4. On the AdSense page, check “I've placed the code” and click Verify.
  5. Click on Request Review.

1.2 Using Ads.txt Snippet

  1. Copy the code snippet given.
  2. Ads.txt
  3. Go to Themes → Templates → + New on your blog's dashboard and create a file named route-ads.txt.twig.
  4. Paste the code snippet in that twig file and click Save.
  5. Tip: You can check Ads.txt which should appear at yourwebsite.com/ads.txt
  6. On the AdSense page, check “I've placed the code” and click Verify.
  7. Ads.txt add
  8. Click on Request Review.

Wait for Adsense approval.

Step 2 - Adding Ads to your Blog

After you created ads,

  1. Copy the code snippet you get just after you created an ad.
  2. Copy ad code
  3. Go to your "Themes" on blog console.
  4. Choose the page type you want to add your ads to (for example we use the homepage):
    • index.twig - homepage
    • post.twig - single post page
  5. Paste the code snippet in the twig file based on where you want to place ads and click Save.
  6. Paste ad code