Working Adsense on an AJAX application

Discussion in 'AdSense' started by Misanthrope, Feb 1, 2011.

  1. #1
    Hey people,
    I've designed an entirely AJAX-based web app, however adsense seems unable to generate any relevant ads for the AJAX-delivered content.

    In an effort to get this to work, I created an I-Frame that would display a Cache file contains all the users current content in an html format and included the adsense .js script inside.

    Like so:

    <html>
    <head>
    <title>User Cache</title>
    </head>
    <body>
    <div style="height:200px;">
    <script type="text/javascript"><!--
    google_ad_client = "ca-pub-xxxxxxxxxxxxxx";
    google_ad_slot = "xxxxxxxxxxxxx";
    google_ad_width = 200;
    google_ad_height = 200;
    //-->
    </script>
    <script type="text/javascript"
    src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
    </script>
    </div>
    (Here lies the cached content, not visible to the user but a complete duplicate of what they are viewing. However it is in plain text with no pictures for faster loading).
    </head>
    </body>


    Anybody know why I'm still not getting any relevent ads. Is this method flawed from the get go?

    Thanks.
     
    Misanthrope, Feb 1, 2011 IP