How to embed adsense ad unit in left or right corner of post content?

Have you wondered how to add Adsense ad unit in post left or right corner in post content? This was my first question when I switched to wordpress. As you can see many wordpress blogs have ad units embedded in top left or right corner of the post content see example.

This Adsense ad unit in  top left or right corner have highest CTR on my blogs like  software Testing blog. Adding this ad unit is very simple and requires a bit of code before and after your regular Adsense ad script.

If you want to add a ad unit in Top left corner of your post then just include following lines in your ad code.

<div style=”display:block;float:left;margin: 0px 10px 0px 0px;”>

Your Adsense ad script

</div>

Just change the <div>  float tag to “right”, if you want to place ad unit at right corner. The 250×250 square ad unit is most appropriate for this ad placement.

If you are using adsense delux or Adsense Manager plugin for ad management then add the same code before and after your ad tag. i.e

<div style=”display:block;float:left;margin: 0px 10px 0px 0px;”>

<–adsense unit name–>

</div>

Adsnese unit in middle of the post disturb the reading flow so its better to have ad units at the begging of the post. If you have any query adding this ad unit in your blog post let me know.

80 thoughts on “How to embed adsense ad unit in left or right corner of post content?”

  1. You have helped solved a major problem. Thanks for sharing this technique. I have always been having challenges using Adsense Deluxe on my blog.

    I am definitely going to try this out ASAP.

    Thanks for sharing once again.

    ;)

  2. You have used a character that is not considered a “name character” in an attribute value. Which characters are considered “name characters” varies between the different document types, but a good rule of thumb is that unless the value contains only lower or upper case letters in the range a-z you must put quotation marks around the value. In fact, unless you have extreme file size requirements it is a very very good idea to always put quote marks around your attribute values. It is never wrong to do so, and very often it is absolutely necessary.

  3. Thanks for this excellent article. A+++. I’ve been trying to embed Adsense boxes in my Worpress-based blog’s articles with little success so far. Let’s try this!

  4. thanks for the informative guide here. how about placing adsense on bottom left or right of the post? my purpose is for the reader first to read my article before navigating on my ads.

  5. Dude, for the love of God, it’s AD!!!! Not “add.”

    “Add” means to insert something extra. “Ad” means advertisement.

    “I am going to add a Google Adsense ad unit to my pages.” Homophones they are. Learn them you will.

  6. i love google Adsense, it enables me to earn money on the websites and forums that i have put up several years ago. if you got tons of websites, you can earn a lot from Adsense alone

  7. hey, i did the same as given here…. and ads are now showing on the top right of my blog.

    But why is this space coming in the left side…. what should i do to fill this space with text in my post….same as ur post.

    plz reply

  8. Im getting this :

    Your template could not be parsed as it is not well-formed. Please make sure all XML elements are closed properly.
    XML error message: Open quote is expected for attribute “{1}” associated with an element type “style”.

    Any Clue?

  9. hello, thanks for the info, and i would like to ask further questions, what would i include if im going to put it on the center or middle left/right side and bottom left/right side of my blog post?

  10. wow! finally i have found the code to the right corner =) you the best, thanx for the code… hope to visit your site again for more code…

  11. Been trying to figure out how to insert an ad within the content for some time now. Your post finally gave me the answer – and it you explained it well.

    Thank you.

  12. hey

    it works now.

    I kinda finding this code for some time bu forget where to find. now I google it and find this post

    thanks,
    iamgotzaa

  13. thank a lot. this is a piece of small code I’m looking for. After making shortcode to embed GA on post, i need this modification so that the ads will in the right or left of the content…thank

Leave a Comment