One of the more common questions are due to ad code breaking when using WYSIWYG editors or online AJAX editors in HTML mode. The WYSIWYG editor creates safe code and the code looks like this when viewing the source:
<script type="text/javascript"><!– <br />
google_ad_client = "pub-********************"; <br />
google_ad_slot = "***********************"; <br />
google_ad_width = 120; <br />
google_ad_height = 240; <br />
//–> <br />
</script> <br />
<script type="text/javascript" src="http:// <br />
pagead2.googlesyndication.com/pagead/show_ads.js"> <br />
</script> <br />
</pre>
Adding the code using an AJAX editor spaces and <br /> are removed so the code looks like this:
<script type=”text/javascript”><!–google_ad_client = “pub-********************”; google_ad_slot = “***********************”; google_ad_width = 120; google_ad_height = 240; //–> </script> <script type=”text/javascript” src=”http:// pagead2.googlesyndication.com/pagead/show_ads.js”> </script>
This code dont work, some users have explained that removing the <!– and //–> makes the ads show up. I reccomend against it because it’s against policy to edit the ad code.
Correct code:
<script type=”text/javascript”><!–
google_ad_client = “pub-********************”;
google_ad_slot = “***********************”;
google_ad_width = 120;
google_ad_height = 240;
//–>
</script>
<script type=”text/javascript”
src=”http:// pagead2.googlesyndication.com/pagead/show_ads.js”>
</script>
There are a lot og great AdSense Support topics here…
October 28th, 2008 at 4:02 pm
Good post.
October 28th, 2008 at 5:34 pm
Thank you Marina, it’s one of the questions we see most often on “AdSense Help”. Maybe it will help someone.