skip to main | skip to sidebar

How to Put Adsense after the Title of Blog Posts In Blogger


Putting an adsense inside post can generate more income for your blog. It doesn't violate the terms of Google Adsense. Adding an adsense code into HTML template is easy if you do it carefully.
Here's an example of an adsense code (you need to get your own code with your own account):

<script type="text/javascript"><!--
google_ad_client = "ca-pub-4470269547984210";
google_ad_host = "pub-1556223355139109";
google_ad_slot = "1421027945";
google_ad_width = 250;
google_ad_height = 250;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>

Step 1: Change the elements.

You need to replace the symbols:
" replace with &quot;
< replace with &lt;
> replace with &gt;
You Can use our HTML Encoder For Doing It !

This is how it should like after replacing them:

&lt;script type=&quot;text/javascript&quot;&gt;&lt;!--
google_ad_client = &quot;ca-pub-4470269547984210&quot;;
google_ad_host = &quot;pub-1556223355139109&quot;;
google_ad_slot = &quot;1421027945&quot;;
google_ad_width = 250;
google_ad_height = 250;
//--&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;

Step 2: Go to Design -> Edit HTML -> and tick 'Expand Widget Templates'.

Step 3: Press CTRL+F and find <div class='post-header-line-1'/>

Step 4: Paste the adsense codes just below it.

Step 5: Save template.
If You Enjoyed This Post Please Take 5 Seconds To Share It.

Hi`i'm Nitin maheta ,from india,i love to blogging, Desing Blogger template, Web Developing and Designing.i like to learn and share technical hacking/security tips with you,i love my friends.

Follow Me On TwitterOr Facebook

6 comments


Anonymous
June 15, 2011 3:09 PM

Oh dude it not works cud u give me some alternates.. i cannot find the code that youre suggested i created my blog using artisteer 2.3.........

June 16, 2011 12:22 AM

It's Verry Simple Dude ...!!

Ok No Probs...Just Go Here ..http://gj37765.blogspot.com/2011/06/how-to-add-google-adsense-inside.html

August 22, 2011 11:04 AM

thanks for walking me through this i tried it on my test blog and ran into some problems I get the ads below the titles of the posts. However the posts are gone. Also everthing that should be in my side bar so like About Me, Followers, View my Profile, Blog Archive etc. is below the posts. Not on the sidebar where it should be. Thank you a lot for your help

November 14, 2011 11:50 PM

Friend i like this blog...
plz tel me
google_ad_client = "ca-pub-4470269547984210"; i put this code frm my adsens account
&
google_ad_host = "pub-1556223355139109";
google_ad_slot = "1421027945";
What is that 2 codes and where i get that code numbers plz reply me kcbabu111@gmail.com

November 15, 2011 6:11 AM

Go to your google adsense account and click on my ads tab..
and get you own ads code... @ +cHaNdRa+

November 17, 2011 9:06 PM

Thanx Nitin

Speak Your Thoughts!

Important - If you are asking a question click the 'Subscribe By Mail' link below the comment form to be notified of replies.

If you add a link to your comment it will not be published.