Google Community
Latest Forums Rules Resources
Custom Search

Go Back   Google Community > Google Forums > Google AdWords & AdSense Forum

GoogleCommunity Sponsor
Cirtex Hosting
Use coupon "forum" for 50% Off!

Reply
 
LinkBack Thread Tools Display Modes
Old 05-29-2006, 06:23 PM   #1 (permalink)
Noogle
 
Join Date: May 2006
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
chrishaney2006
display ads with ajax

PI need help displaying ads with ajax. The adsense script seems to not be executing. My question is NOT how to use ajax, it's why ajax won't load a script. Why is the google ad not displayed in the <div>?PBRon my page:P<div id="google_ad"></div>PPtrigger:Ponclick="load_google('google_ad.js' );PPjavascript function:Pfunction load_google(dest) {BRtry { xmlhttp_google = window.XMLHttpRequest?new XMLHttpRequest():new ActiveXObject("Microsoft.XMLHTTP"); }BRcatch (e) { alert(e); }BRxmlhttp_google.onreadystatechange = triggered;BRxmlhttp_google.open("GET", dest, true);BRxmlhttp_google.send(null);BR}Pfunction triggered() {BRif ((xmlhttp_google.readyState == 4) &amp;&amp; (xmlhttp_google.status == 200)) {BR document.getElementById('google_ad').innerHTML =xmlhttp_google.responseText;BR} P}PPcontents of google_ad.js:[my adsense snippet]

PP

chrishaney2006 is offline   Reply With Quote
 
Sponsored Links
Old 05-29-2006, 07:32 PM   #2 (permalink)
Noogle
 
Join Date: May 2006
Location: India
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
skypeill
Send a message via Yahoo to skypeill
it is becoz adsense is a contextual ad programme and according to ur ajax script, the ads will be loaded anytime after the whole page have been loaded, so in that case most of your ads will be invisible or will be the public service ads.
skypeill is offline   Reply With Quote
Old 05-29-2006, 07:37 PM   #3 (permalink)
Noogle
 
Join Date: May 2006
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
chrishaney2006
Quote:
Originally Posted by skypeill
it is becoz adsense is a contextual ad programme and according to ur ajax script, the ads will be loaded anytime after the whole page have been loaded, so in that case most of your ads will be invisible or will be the public service ads.
Sorry, you are wrong. I have other adserver scripts which also show up as blank. This is not due to adsense itself. Also, I don't have contexual ads. I'm on Google's keyword beta program.
chrishaney2006 is offline   Reply With Quote
Old 05-30-2006, 09:33 AM   #4 (permalink)
Noogle
 
Join Date: May 2006
Location: India
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
skypeill
Send a message via Yahoo to skypeill
sorry i must be unaware of that
skypeill is offline   Reply With Quote
Old 05-30-2006, 10:28 AM   #5 (permalink)
Google Guru
 
andrew247's Avatar
 
Join Date: Oct 2005
Location: c:\GoogleCommunity
Posts: 3,386
Thanks: 3
Thanked 13 Times in 13 Posts
andrew247 is a glorious beacon of lightandrew247 is a glorious beacon of lightandrew247 is a glorious beacon of lightandrew247 is a glorious beacon of lightandrew247 is a glorious beacon of light
Maybe keyword beta is having some difficulties.
Quote:
I'm on Google's keyword beta program.
Never heard of it.
I've only heard of AdSense for Feeds beta, and Image Ads beta.

Could you possibly provide a link to an 'About' (or similar) page.
Me like learning new stuff....
andrew247 is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Watchfire adds Ajax testing, spots Google Desktop flaw - Computer Business Review News Alerts Google in the News 0 02-22-2007 06:18 PM
AJAXWorld 2007 East: Google's Chris Schalk To Ask, "Will AJAX ... - MediaSyndicate (press release) News Alerts Google in the News 0 02-03-2007 10:48 PM
Ajax and Graphics jskenya Graphics Design Forum 0 01-28-2007 12:49 AM
Ads dont display` jasonpeinko Google AdWords & AdSense Forum 2 12-03-2006 12:48 AM
How not to display ads in few pages? devang Google AdWords & AdSense Forum 5 10-11-2006 08:40 PM


All times are GMT -8. The time now is 04:52 PM.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO 3.1.0
© 2004–2007 Google Community