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>
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 "
< replace with <
This is how it should like after replacing them:
<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 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. |
Technorati
Tweet It!
Facebook

6 comments
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.........
It's Verry Simple Dude ...!!
Ok No Probs...Just Go Here ..http://gj37765.blogspot.com/2011/06/how-to-add-google-adsense-inside.html
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
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
Go to your google adsense account and click on my ads tab..
and get you own ads code... @ +cHaNdRa+
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.