twitter
    Find out what I'm doing, Follow Me :)

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 ( 'Ctrl' + F )


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.

0 comments:

Post a Comment