HowTO: Place Ad Unit in Your Blog-Part I

A lot of new bloggers have problems adding Ad Unit to their posts or pages. And sometimes They don’t know how to add them, maybe because they don’t understand the concept of The Loop or they don’t understand the conditional commands. So I`ll share what I learned about Ads placement.

First, There`s a great tool/plugin that will help us place Ads within posts and here I`m talking about Adsense Deluxe. It`s a great well-known plugin that every blogger should have in his plugins kit!
After downloading and activating this plugin you should add Ad units codes and generate HTML Comment to put in your blog instead. I recommend you to add all the Ad units or that you may use in your Posts. For this, choose what Ad Format you need and then generate the HTML Comment for them and you`ll be ready to the next step.

Using Adsense Deluxe is very easy But you need to check that they’ll appear in the single pages(posts) only!
For this, enter the Plugin page in your Admin Panel which will be found under Options Tag and then check only “Enable Ads on Individual Posts” option and uncheck the 3 options below it.

We did this because we don’t need our Ads to appear on the home page or any page other than the single post!
Till now everything is easy and you should know it. But what if you want the text surround the ad unit(the button for example) or you want a medium rectangle unit to float to the left of the content?!

This can be done easily by add the HTML Comment to a span element with specific Style.

For example if you want a Button unit to appear to the left of your text the code in your post will be something like this:
<span style="float: left;"><!--adsense#button--></span>
Of course the name of the ad unit(button here) need not be the same, also you can add any property you want..let`s say “padding” property. So the code will be:
<span style="padding: 2px; float:left;"><!--adsense#button--></span>
On this page I used the above code with a medium rectangle unit on the beginning and with a button unit just few line above.
By this way you can make Adsense Deluxe even more powerful!
Did you find this tip new or helpful?

Update:Part II is available here.

If you enjoyed this post, Subscribe to Enblogopedia today!

Related Entries

Your Ad Here

Comments

2 Responses to “HowTO: Place Ad Unit in Your Blog-Part I”

  1. Thilak on December 22nd, 2006 7:04 pm

    Rookies can make use of Moosecandy plugin for wordpress to get the job done

:: Trackbacks/Pingbacks ::

  1. Pingback by HowTO: Place Ad Unit in Your Blog-Part II - enblogopedia.com - on December 23rd, 2006 at 5:34 pm

Leave a Reply