Sunday

Adding Adsense Ads on Posts

As we all know we can just add a Adsense Ad as a gadget. But Can we Add our Adsense Ad on our post ? on our every post ? yes. After some editing in the Adsense code we can easily add our Adsense ad in to the body of the post.

How ?

First of all create your own
Adsense Ad and copy its codes to Note Pad or any where you like.





now we have to make some changes on our Adsense codes. Don't be scared , these edits do not brake any Adsense Terms or regulation. ( Adsense Terms )

Change

instead of < , type &lt;
instead of > , type &amp;gt;
instead of " , type &quot;

and also add two more lines ( shown in
Red Color )

Now you will get some codes similar to this



<div style='float:left;'>

&lt;script type=&quot;text/javascript&quot;&gt;&lt;!--
google_ad_client = &quot;pub-0000000000000000&quot;;
google_ad_width = 336;
google_ad_height = 280;
//--&gt;&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot;
src=&quot;http://pagead2.googlesyndication.com/pagead/show_ads.js&quot;&gt;
&lt;/script&gt;

</div>


1. Edit your Template
2. Copy the Text you want to find out



post.body


Now you will find some codes similar to


<div class='post-body'>
<p><data:post.body/></p>
<div style='clear: both;'/> <!-- clear for photos floats -->
</div>


Now just paste your edited Adsense codes ( with
Red color codes ) just before these lines.


Now follow the Safety Saving Steps.

And




If you want to post your Adsense ad in right side ( as i have done ) just change


<div style='float:left;'>


to



<div style='float:right;'>


If you want to post your below your post , just paste these edited codes below the post.body code line set.



Digg Technorati del.icio.us Stumbleupon Reddit
feedburner

Every New lesson , directly to your Mail Box .....

1 comments:

DragonD on May 6, 2009 at 9:26 AM said...

What is your idea about posting ads on body of the post ? do you think it is helpful ?

:)) ;)) ;;) :D ;) :p :(( :) :( :X =(( :-o :-/ :-* :| 8-} :)] ~x( :-t b-( :-L x( =))

The Word Validation image has been removed and no need to Sign In. So don't be lazy ..........

 
This blog sucks under Internet Explorer.

Buy me a Coffee


Powered By

Latest Site News


Animated 3D Dock removed in order to speed up loading time and to help IE users.

This site will be come up with a DOMAIN name soon.

Link and Win competition will start as soon as the Domain name added. Join with us. You could be the winner.

Site Info

since 2009 April

Vote

Vote to My site to be nominated for Best Geek Blog!

Submit a Lesson

Visitors

of Visitors read Pages.

Lessons by DragonD | Template by Simran | Logo by lahirulcd | Temaplate redesigned by DragonD| Icons by DryIcons.com | Licensed under CC license Creative Commons License