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 <
> 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.
0 comments:
Post a Comment