Forum Moderators: martinibuster
However, the original code for Adsense doesn't work at all. No ads were shown, and i had to modify it a little bit like this:
<script type="text/javascript">
<!-- <--- remove this line
google_ad_client = "pub-1111111111111";
/* 120x600, 08-9-19 */ <--- remove this line too
google_ad_slot = "11111111111111";
google_ad_width = 120;
google_ad_height = 600;
//--> <---- and also this line
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
After these small modifications, the ads can be shown now, but there's a strange performance. The number of ads shown in Adsense report doesn't quite match my web stat. It seems that the ads were shown, but didn't count into my report.
And according to the terms and conditions, any modification of the code is not allowed. For this concern I've removed this ad now.
Did anyone experience similar problems with PHP before?
And did you modify your code? Is it accepted by Google?
Rather than modify the Adsense code --which is not allowed-- you should find out *why* your PHP script seems to require that modification. It may be that your script cannot deal with quoted text properly, or something relatively simple like that.
Jim
And if i add the comment tag provided by Google Adsense, the ads won't be shown.
The problem is just solved now.
The google support team says the comment tag won't affect ads match, so it's okay for me to remove it. As long as i don't do anything to affect ads matching, it's acceptable.