Ways to put Adsense in Blogspot Post
Immediately next to topic How to Put Adsense in blogspot posts. To put Adsense in the post little change in the script and your adsense Parse advance your adsense script code.
Suppose your Adsense script like this:
<script type="text/javascript"><!--
google_ad_client = "pub-xxxxxxxxxxxxxxxx";
/* 336x280, created 8/6/09 */
google_ad_slot = "xxxxxxxxxx";
google_ad_width = 336;
google_ad_height = 280;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
google_ad_client = "pub-xxxxxxxxxxxxxxxx";
/* 336x280, created 8/6/09 */
google_ad_slot = "xxxxxxxxxx";
google_ad_width = 336;
google_ad_height = 280;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
So the script above should be parsed as below, to be displayed on the post:
<script type="text/javascript"><!--
google_ad_client = "pub-xxxxxxxxxxxxxxxx";
/* 336x280, created 8/6/09 */
google_ad_slot = "xxxxxxxxxx";
google_ad_width = 336;
google_ad_height = 280;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
Looks complicated? Do not worry, you can parse your code adsen http://blogcrowds.com/resources/parse_html.php on this site, which can help you alter the HTML script. Just enter the code in the fields, press the parse, and your HTML code will be changed automatically.
Now, go into your Blogger account, select the 'Design' and then 'Edit HTML', and do not forget to check the option to 'Expand Widget Templates'.
Press Ctrl + F and find the following code:
<data:post.body/>
If you want to put Adsense in Blogger post just below the title, then you'd put your Adsense code above <data:post.body/>, whereas if you want your ads appear under the posts, attach the Adsense script below <data:post.body/>.
Add <div style='float:???;'> to determine the alignment of your Adsense ads. float: left for the ad appears on the left, float: center for ad position in the middle, and float: right for the position of ads on the right.
example:
<div style='float:center;'>
Adsense scripts that have been in-parse
</div>
<data:post.body/>
One more thing, if you use the feature Read More Manual on your blog, then there will be two <data:post.body/> tags in the HTML code to your blog.
* Put Adsense script on the FIRST <data:post.body/>, if you want your ads displayed either on the homepage, and after Read More in-kilk. The downside, if your homepage contains more than three posts, adsense does not appear in the post to-4, 5, etc., so that there will be an empty space that is not unsightly. This is because the Adsense TOS mennsyaratkan maximum of three ads that can appear per-page site.
* Put Adsense script on the SECOND <data:post.body/>, if you want your ad is displayed only after the Read More is clicked, so the ads do not appear on the homepage. Examples can be seen on the blog Exotic Vacation Places, in which new Adsense will appear at the top right corner of the post, after Read More in-click.
* Since there are various kinds of templates created by bloggers and people who are different, there is the possibility of the composition of different HTML code, too. It could be just two steps above even upside down, so you have a little experimenting in laying the Adsense script.
Begtulah little explanation from me how to put adsense in blogspot post.
Good luck!
Tags:
#Blog#HTML Javascript
0 komentar