Sunday, August 20, 2006

 

Adsense : How to make adsense appear on the blogger beta

I was creating a blog in the new blogger beta. And I really loved the Drag-and-drop page elements. So when I tried to add google adsense code to the HTML/JavaScript page element, the ads are not appearing in the blog. I googled it to find an work around, but no hope. But now I have found a way to make this work, this is "Rajeesh's way of showing adsense" :)

Ok I will explain, Below is the code that generated by the adsense tool.


<script type="text/javascript"><!--
google_ad_client = "XXXXX";
google_ad_width = xxx;
google_ad_height = xx;
google_ad_format = "xxxx";
google_ad_type = "text";
google_ad_channel ="xxxx";
google_color_border = "xxx";
google_color_bg = "xxx";
google_color_link = "xxx";
google_color_text = "xxx";
google_color_url = "xxx";
//--></script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>



what you have to do is that, remove the commenting code that is <-- and //-->
So the new code look like this,

<script type="text/javascript">
google_ad_client = "XXXXX";
google_ad_width = xxx;
google_ad_height = xx;
google_ad_format = "xxxx";
google_ad_type = "text";
google_ad_channel ="xxxx";
google_color_border = "xxx";
google_color_bg = "xxx";
google_color_link = "xxx";
google_color_text = "xxx";
google_color_url = "xxx";
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>


Now what you have to do is, paste the changed code inside the content section of the HTML/JavaScript Page element.

You can view the demo here(keralastyle.blogspot.com)

Comments:
That's quite strange. Especially since JavaScript is supposed to be in comment tags to avoid confusing the web page server or browser client that it's text to be displayed. Curiouser and curiouser...
 
Post a Comment



<< Home

This page is powered by Blogger. Isn't yours?