Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Adsense in a ajax based application?

How do I add adsense or other ads in a asp.net ajax/ajax based application ? (ex. ra-ajax samples page) or GWT

Is creating an iframe a viable solution?

As stated below, placing adsense script is easy. But the google bot wont be able to scan my ajax based page, as all of the content is javascript. There wont be contextual ads. So wont be able to monetize. It would be great for static ads. Any idea/inputs?

like image 867
user46795 Avatar asked Jan 04 '09 19:01

user46795


People also ask

Is AdSense an ad server?

Google AdSense is technically an Ad Network, although one that is quite different to any other Ad Network. Since it's launch in 2003, AdSense has been helping websites of all sizes to earn money by serving ads on their websites.

Can I run AdSense on Google sites?

To display AdSense ads on your Google Site, select 'Monetize' under 'Site Settings'. Click the 'Monetize this site' button to enter your AdSense account information.


2 Answers

It seems like what you want to do is load up AdSense and then dynamically refresh/change the advertisements based on content delivered via AJAX.

Unfortunately, this is against the AdSense Program Policies; I just posted a long answer about this here: Refresh a Div that has a Google ad inside it

like image 101
Dan Fabulich Avatar answered Nov 15 '22 04:11

Dan Fabulich


Google recommends against the iframe approach, as it breaks the contextuality of their ads (due to there being no content to work with on the page calling the ad).

like image 44
ceejayoz Avatar answered Nov 15 '22 05:11

ceejayoz