You don't need to correct the codes of Adsense if you add the codes onto the side-bar on your blog since the side-bar is using HTML/Javascript which is not allow xml.
But if you go to Dashboard > Design > Edit HTML (This HTML editor allows xml), you need to modify the codes of Adsense :
1) Change & into &
2) Change < into <
3) Change > into >
4) Change " into "
5) Change ' into '
For example, the blue codes below is original codes of Adsense, and the yellow codes below is what I have after changed all the symbols :
<script type="text/javascript"><!--
google_ad_client = "pub-0690220431785051";
/* 728x90, created 8/7/10 */
google_ad_slot = "8652075993";
google_ad_width = 728;
google_ad_height = 90;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
<script type="text/javascript"><!--
google_ad_client = "pub-0690220431785051";
/* 728x90, created 8/7/10 */
google_ad_slot = "8652075993";
google_ad_width = 728;
google_ad_height = 90;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
Please double check to make sure you have changed all the symbols on the codes already, if you are lazy to change the codes by yourself, you can always use the tool on this page to help you change the code : http://blogcrowds.com/resources/parse_html.php.
You might also like this : http://ye5.blogspot.com/2010/12/how-to-use-google-adsense.html
Posted by Zac1987 on
16 February, 2011
0 comments