Home » Blogger Tutorials

Add Google Adsense / Html scripts in your Blogger Templates

Submitted by on May 6, 2010 – 11:04 am2 Comments

Blogger Html Who doesn’t want to add some Adsense ads to their blog and make some bucks out of their content? And when Blogger has really made it easier to add Adsense Ads and monetize your blog’s content, I hope there’s nothing wrong to give it a try. Ok it’s up to you to decide whether you need to monetize your blog or not but I guess, most of you must be doing that. And do you know you need to keep on playing with the ads position to find out the spot for more earnings? But sometimes you face the problem to have your ads displayed in the right position you wanted to. May be you need to edit your blogger template in order to do that. So in this post, I wanted to include tips that will help you to display your Adsense ads in better position and thus increase you earnings.

If you are including your ads via gadget, you can simply follow the ways of adding a new gadget and select adsense ads to include ad in your blog.
But if you want to display somewhere in places where you cannot add gadget, then you may need to edit your template. This post will show you how to exactly do that. (Note: you may need to some basic Html skills, at least in order to identify the codes where you need to add the advertisement code)
1. Log in to your dashboard–> Navigate to layout –>Edit Html Tab

Blogger Edit Html
2. Before you edit your blogger Template, Make sure you backup every time, by clicking on the Download Full Template so that you may restore it if something goes wrong.

Backup Blogger Template
3. You may need to “expand Widget Templates”. To do that check the box and it will expand itself.

Blogger Expand Widget Templates
4. You should have got the Adsense code or other html that you want to add. And now you need to change the code. Otherwise you are gonna get error like
Your template could not be parsed as it is not well-formed. Please make sure all XML elements are closed properly.

5. Ok so what you need to do is, Parse the Google Adsense Html or any other Html. To do that change the following characters to the given ones.


< – <
> – >
& = &
”= "

Found it complex and time consuming. Try this tool Escape Html from blogcrowds. Copy and Paste your Google Adsense or other code to the textbox in the tool and click on parse.
6. Now when you have got the parsed code, Paste that code to the specific place you need to display it. Now it should work perfectly.

If you want to display adsense ads inside your blogger post please go through this post Adding Adsense Ads in Blogger Posts.

I hope you enjoyed this. Stuck somewhere? Let us know in comments below and we will be happy to help.

Related posts:

  1. How to add Scripts / Html in Blogger ?
  2. Adding Adsense Ads in Blogger Posts
  3. Changing Templates of Blogger Blogs
  4. Adsense Basics every publisher should know
  5. Blogger has Label Clouds Now!
Tagged with:

2 Comments »

  • aarcain says:

    AdSense and affiliate sales may be two of the fastest and easiest ways to monetize traffic to your web site whether you have products or services for sale or you simply provide free content to your visitors.
    Simply stated, Google AdSense and Affiliate Sales enables website operators to place some code on their site that connects to Google’s and Affiliate’s ad servers content database and pulls keyword-relevant advertising onto the web pages. The webmaster gets paid a percentage of the fee that Google receives from the advertiser every time a visitor clicks on an ad and percentage of sales from Affiliates. There is no charge for the webmaster to participate in AdSense and most Affiliate programs. All costs are covered by the advertiser who participates in the AdSense sister program called AdWords.

  • thank you for useful information about adsense.it will help me to earn extra income from adsense.

Leave a comment!

Add your comment below, or trackback from your own site. You can also subscribe to these comments via RSS.

Be nice. Keep it clean. Stay on topic. No spam.

You can use these tags:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

This is a Gravatar-enabled weblog. To get your own globally-recognized-avatar, please register at Gravatar.