How to place Adsense code in your blog

Posted 21st April 2008 | View 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.

AdSense Secrets

Post Title: How to place Adsense code in your blog
Author: Nishadha
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. You can leave a response, or trackback from your own site.

View Comments 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. adsense gempak commented:

    gud info for newbie like me…thanks a lot for this gud info!!!

  4. Rossa commented:

    Good for people to know.

  5. earn money commented:

    thanks for guiding us about correctly adding adsense code

  6. 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 ;)

  7. 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

  8. 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

  9. Mutedart commented:

    Nice work. very easy to grasp.

  10. Nishadha commented:

    Thanks Mutedart :)

  11. Aywren commented:

    I’ve featured this in my Sunday Spotlight. Thanks so much for a great post!

  12. Nishadha commented:

    @Aywren,
    Thanks you for featuring it :)

  13. ryan locke commented:

    Very nice information. Thanks for this.

  14. Nishadha commented:

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

  15. Michael Podgoetsky commented:

    This is great thanks very much for this instructions. I also would like to ask you if you could explain how and where to place the channel numbers for adsence numbers.
    regards
    Michael.

  16. 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 :)

  17. Michael Podgoetsky commented:

    Hello Nishadha thanks very much for your reply. I for some reason thought that when you create an Adsense channel the numbers you get from Google you must place in the Page source of your index.html site.
    What that be correct assumption?
    thanks for your assistance
    Kind regards
    Michael.

  18. 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 :)

  19. vineeth commented:

    thank for the post
    i used it in my blog.http://newclassifieds4u.blogspot.com
    hopin more adsense posts here
    thank you

  20. vineeth commented:

    thank for the post
    i used it in my blog http://newclassifieds4u.blogspot.com
    hopin more adsense posts here
    thank you

  21. Approve List commented:

    Adsense is like the real company to make real income.

    THANKS,

    http://www.approvelist.com

  22. SEOP commented:

    Thanks for sharing. This will help me with my adsense.

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. [...] A quick Google Search brought me to: Rumbling Lankan’s How To Place Adsense Code In Your Blog. [...]

  3. [...] 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 [...]

  4. [...] 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 [...]

  5. [...] Lankan: How to place Adsense code in your blog Everyone seems to be using Adsense these days… but what happens if you don’t know how [...]

  6. [...] 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 [...]

Leave a Reply

blog comments powered by Disqus