Tuesday, December 1, 2009

How To Put Adsense Ads Inside Your Blog Posts

In this post i will show you an AdSense trick which will allow you to place AdSense ads inside your blog posts not only that but in any part of your posts.Once Added you can place the ads anywhere in the post like after the first line of text, before the last line, in the middle..... and you can have the ads in different areas in every post.

Using AdSense inside blog posts can have a very positive effect on your earnings but try to make the ad units blend in with the rest of the content when your picking the colors.I have more posts on how to add your Adsense Directly Below the Title of your posts as well as placing AdSense in your header section, i will have a link to those posts at the bottom of this one.

There is a bit of extra work in this tutorial but if you follow step by step you should have no problems also make sure to Back up your template.

How To Put Adsense Ads Inside Your Blog Posts

Here's the steps - lets go :




  • First you must get the code for the AdSense ad



  • 1. Go to your AdSense account and Choose what type of ad you want inside your blog posts.

    2. Follow the steps and Grab the code for the AdSense unit.

    3. The AdSense code must be place in your blog templates html to do this we must use an adsense praser.

    4. I just added a Html Praser to my blog so you don't have to leave this blog to prase the code.
    Click here to prase your adsense code.

    Paste the code in the box provided click 'prase it' and copy the new parsed code.

    Your AdSense code is now ready.




  • Now we will add the code to your template






  • 1.Click 'layout'--> 'Edit HTML' for your blog
    (Tick The 'Expand widget templates' box)

    Blogger layout

    edit html blogger

    Expand widget templates blogger

    2. Find the following piece of code in your blogs html:
    (Click 'CTRL F' on your keyboard for a search box to find the code)

    <data:post.body/>


    3. Now REPLACE <data:post.body/> with the code below :


    <div expr:id='"aim1" + data:post.id'></div>

    <div style="clear:both; margin:10px 0">

    PUT YOUR PARSED ADSENSE CODE HERE

    </div>

    <div expr:id='"aim2" + data:post.id'>
    <data:post.body/>
    </div>

    <script type="text/javascript">
    var obj0=document.getElementById("aim1<data:post.id/>");
    var obj1=document.getElementById("aim2<data:post.id/>");
    var s=obj1.innerHTML;
    var r=s.search(/\x3C!-- adsense --\x3E/igm);
    if(r>0) {obj0.innerHTML=s.substr(0,r);obj1.innerHTML=s.substr(r+16);}
    </script>


    4. Now include your Adsense code above were you see:
    PUT YOUR PARSED ADSENSE CODE HERE

    5. Save your template - Were not finished....

    Now as promised you can make the Adsense Ad appear in any part of your blog post :

    When you writing your post - Simply place the following piece of code in your post in the exact place you want the Ad to appear:


    <!-- adsense -->


    So if you place the <!-- adsense --> tag at the top of your post the ad will appear there ...half way down ...near the bottom ...at the bottom...werever you want it !

    We Are Nearly Finished - First A Quick Reminder:
    If you need more help or have an opinion or suggestion Please leave a comment Below.It also really helps me to get feedback.
    This is a Do-Follow Blog so leaving a comment will also help Your blogs Google rank.
    OK Back to business....

    Tip:Add the <!-- adsense --> code to your 'post template'
    Click 'settings' -->'Formatting' -->Scroll to bottom of page for this option.
    (Google help-Whats post template?)

    For more AdSense tips and tutorials for adding Adsense to your blog Header section And under the posts title Click Here.

    I know this was a bit harder than most tutorials but just take you time I'm sure you will get it right if you need more help just leave a comment below i will be glad to help.

    Did You Like This Post ? Click Like Below To Let Us And Your Friends Know - Thanks !





    Jump To Comments

    Subscribe To The Rss Feed Or Recieve The Latest Posts By Email

    Get The Latest Full Posts By Email - It's Free
    Write About Or Link To This Post On Your Blog - Easy Links :
    Link Directly To This Post :

    Link To The Homepage :
    Hey ! People That Read This Post Also Loved These Posts
    Still Looking For Something ?
    Search This Blog
    Custom Search
    Important Must Read Before Posting A Comment

    In order to keep our comments Do-Follow we have some guidelines you need to follow.
    Do not put links in the body of your comment as it will automatically be blocked !
    Asking a question ? Make sure to tick the subscribe to comments by email box to be alerted of the reply.
    blog comments powered by Disqus
     

    Some Money Makers For Your Blog

    1. Info Barrel Paid To Write, if you can write a blog you can write for I.B.

    1. Xomba Paid To Write, Another great paid to write articles website

    3. Chitika Ads For Your Blog, work well alongside AdSense

    Thanks For Calling

    free counters

    Five From The Archive

    Who Writes This Stuff ?

    Hi Im Paul Crowe,

    The Author Of Spice Up Your Blog To Get More Info About Me View My Full About Me Page.

    Drop Down Archive

    Admin Links