How to place Adsense code in your blog

Posted 21st April 2008 | 21 Comments

Signing up for an Adsense account doesn't guarantee you will make any money off it , you need to tweak your colors and placement of the ads to get the maximum result. After experimenting with Adsense and PHP I finally managed to add them just the place I want , actually its very simple to do once you get to know the method.The placement of your Adsense block can be manipulated using the "<div>" tag. Although I'm talking about Adsense placement the "<div>" tag can be used to place images and etc too.

Leader Board ,Well this is the Adsense block that gives the most clicks. You should use a 728x90 leader board Adsense unit for this. Placing it just under the header is how I done it and it yields good results as well. If your using a wordpress template the best place would be just after the get_header() function. If your using a blogger template add it as the first thing in the "<body>" section.

Adsense Leaderboard Placement

Then you will get a nice looking Adsense block as in this blog.Another good place the Adsense block is just above the title or in some cases just after the title before the content. If your using a WordPress template the best place is just above the the_title() function in single.php . This could change according to the theme so try it out and see for your self. The same "align=center" can be used for this. Of course you have to choose a 468x60 banner for this.

If your using blogger this can be done with a few simple mouse clicks. Go to the Layout tab and in it go to the page element tab. Click the Add Page Element link at the very bottom. When the window pops with different elements choose the HTML/JavaScript element. This will open up a another window where you can pasts your Adsense code. Pasts the code and save. Now drag the added element to the blog posts section and place it in the top.

Adding HTML Element

Positioning the Adsense block

Click on the images to view a large image.

But what if you want to add the ad block inside the post like below , where the user is most likely to see it.

Adsense block inside a post

Just add the following code in the post content in your single.php file.

Adsense block inside post

Use this tips to add your ad blocks in the relevant places and watch your Adsense earnings grow.

Please share with your friends and help me spread the word

Post Title: How to place Adsense code in your blog
Author:
Posted: 21st April 2008
Filed As: Blogging Tips, Make Money Online
Tags: , , , ,
You can follow any responses to this entry through the RSS 2.0 feed. Both comments and pings are currently closed.

21 Opinions have been expressed on “How to place Adsense code in your blog”. What is your opinion?
  1. Niro commented:

    Nice Thought.. very true.

  2. Mia commented:

    Thanks its a good info :) .

  3. Rossa commented:

    Good for people to know.

  4. Nishadha commented:

    @earn money,
    you are welcome , adding the code is just a small step though , you need to get traffic to get the clicks ;)

  5. Austin Elvin commented:

    It is great information. I have a blog and I want to place adsens on them within content, your suggest is best for me but I don’t know how to create adsens channel. I will place my adsens on the blog : http://mymoneybyonline.blogspot.com/. Need some guide from you to step of creating adsens channel.

    Thanks

  6. Nishadha commented:

    @Austin,
    when setting up a new ad block , when you press continue after setting up the ad format and the colors you are taken to the page where you can set up a channel , if you have not created one yet you can click the link “Add new channel” and proceed. Check out add Adsense channels for more information

  7. Mutedart commented:

    Nice work. very easy to grasp.

  8. Nishadha commented:

    Thanks Mutedart :)

  9. Nishadha commented:

    @Aywren,
    Thanks you for featuring it :)

  10. Nishadha commented:

    @Ryan,
    You are welcome and hope it helps to increase your Adsense earnings :)

  11. Nishadha commented:

    @Michael,
    When you are creating your Adsense block , during the process there is a place where you can specify a channel for that Adsense block. You might consider reading this , http://rumblinglankan.com/are-you-losing-money-with-adsense/ , if you are still unsure feel free to ask :)

  12. Nishadha commented:

    @Michael,
    There are many ways to use channels , you can use channels to track a specific ad block ( custom channel ) or a performance of a specific domain ( url channels ). As far as I know you don’t need to update the index file after you create a channel.Channel section in Adsense help might provide you with some answers https://www.google.com/adsense/support/bin/topic.py?topic=152 :)

    • Muysanya commented:

      Thank you for shares free about how to make money. Really, I love it. I try to practise what you taught me about leadboard ad.
      But I was confused or shocked by another one adsense guru that say never use those horizontal banners or leadboad ads. Because adsense guru said people are blind to those kinds of ads. How ? which ? Thank you. I hope your reply.

      • Nishadha Silva commented:

        Any Guru can tell you only what generally works, but no one can say with 100% certainty what will work for your site. Try different ad formats, different placements and different text color and see what words best for you. After experimenting I found that most clicks come from in post ad placements, but it could be different for your blog.

  13. Michaelinyang commented:

    Hello All,am new to online biz. i ve created my first blog with adsense and i want to creat another blog. since am not allowed to have more than one adsense account,how do i generate the adsense code or clone the adsense widget and place in my new blog to start making money? Is this possible. please state the steps. my site is http://locatenigerianjobs.blogspot.com

  14. anupal commented:

    very useful…i was searching for this, Thnak you very much.

  15. thanks for posting.. how about in blogger? I want to put adsense code post, how can i to that thing?

Trackbacks/Pingbacks

  1. [...] mails asking me how to place Adsense code in different places. You can check this article about how to to place Adsense code in different places, where I have shown with examples how [...]

  2. [...] is another key thing in making money with AdSense. In my blog the most clicked ad block is the AdSense code inside posts. I got to know about this after I started tracking AdSense clicks via channels. It is very [...]

  3. [...] the easiest way they appear in the side bar and have low performance. This article shows you how to add AdSense to your blog and website. Now its time to take action and increase your Adsense [...]