How to Add Google AdSense Code to Blogger

 Method 1: Add AdSense Code via Blogger Layout (Recommended)

This is the easiest and safest way.

  1. Log in to Blogger

  2. Go to Layout

  3. Click Add a Gadget

  4. Choose HTML/JavaScript

  5. Paste your Google AdSense ad code

  6. Click Save

  7. Drag the gadget to the position you want (sidebar, footer, etc.)

  8. Click Save arrangement

Done. The ad will appear once AdSense approves and starts serving ads.

Method 2: Add AdSense Code Inside a Post (In-Content Ads)

Use this if you want ads inside blog posts.

  1. Go to Posts → New Post

  2. Switch editor to HTML view

  3. Paste the AdSense code where you want the ad to appear

  4. Switch back to Compose view (optional)

  5. Publish or update the post

Tip: Place ads between paragraphs, not at the very top.

Method 3: Add AdSense Auto Ads (Site-Wide)

This enables Google to place ads automatically.

  1. Go to Google AdSense → Ads → Auto ads

  2. Copy the Auto Ads code

  3. In Blogger, go to Theme

  4. Click Edit HTML

  5. Find </head>

  6. Paste the AdSense code right above </head>

  7. Click Save

Auto ads will start appearing across your site.

Common Issues & Fixes

  • Ads not showing?

    • Make sure your AdSense account is approved

    • Wait up to 24–48 hours

  • Code disappears after saving?

    • Paste only the AdSense script, no extra tags

  • Layout breaks?

    • Remove the code and re-add via Layout → HTML/JavaScript

How to Find the <head> Tag in Blogger

Many users get stuck because they don’t know where the <head> tag is. Follow these steps carefully.

  1. In Blogger, go to Theme

  2. Click Edit HTML

  3. You will see a long code editor

Now use one of these ways:

  • Press Ctrl + F (Windows) or Cmd + F (Mac)

  • Type </head> and press Enter

  • Blogger will highlight the line automatically

You should see something like this near the top of the code:

</head>

Paste your Google AdSense code directly ABOVE this line.

Important notes:

  • Do not delete or edit the <head> or </head> tags

  • Paste the code between existing scripts, not inside another script

  • If you don’t see <head> immediately, always search using </head> — it’s easier to find than <head>

After pasting the code:

  1. Click Save

  2. Wait a few minutes, then check your site


Important: Be Extra Careful When Editing Theme Code

When editing the Theme → Edit HTML section, you are modifying your site’s core code. A small mistake can break the layout or cause errors.

Please keep these precautions in mind:

  • Do not delete anything unless you are 100% sure

  • Only paste the AdSense code exactly as provided

  • Never edit or remove existing <head> or </head> tags

  • Make sure the AdSense code is not pasted inside another script

  • Avoid adding extra spaces or characters accidentally

Before saving:

  • Double-check that the code is pasted above </head>

  • If possible, copy the original code first as a backup

If your site looks broken after saving:

  • Go back to Theme → Edit HTML

  • Remove the code you just added

  • Click Save again

Take your time. There’s no rush — careful editing prevents problems later.

Contact Form

Name

Email *

Message *