sug15 Posted April 28, 2009 Share Posted April 28, 2009 Hey, I have been trying to make adsense work on my results on the page http://somebots.com/voke/. I want the adsense in the results when you type something in. When I do this normally, it just doesn't appear. When I use this: document.write('<table align=center cellspacing=0 cellpadding=0 border=0><tr><td valign=TOP align=center>'); document.write('<scr' + 'ipt type="text\/javascript" >'); <!-- google_ad_client = "pub-8143092012646781"; google_ad_slot = "5107166443"; google_ad_width = 728; google_ad_height = 15; //--> document.write('<\/script>'); document.write('<scr' + 'ipt type="text\/javascript" src="http:\/\/pagead2.googlesyndication.com\/pagead\/show_ads.js">'); document.write('<\/script>'); document.write('</td></tr></table>'); In my main.js file it also doesn't work. As soon as that code is executed it tried to redirect to some wierd google page, but never succeeds. Here's my normal adsense code: <script type="text/javascript"><!-- google_ad_client = "pub-8143092012646781"; /* Answer Box */ google_ad_slot = "5107166443"; google_ad_width = 728; google_ad_height = 15; //--> </script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script> Thanks! Link to comment https://forums.phpfreaks.com/topic/156040-adsense/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.