title: Desperately need a solution for Adsense that works with Ajax
body: <p>I know this questions has been asked a <a href="https://stackoverflow.com/questions/411533/adsense-in-a-ajax-based-application">few</a> <a href="https://stackoverflow.com/questions/435391/refresh-a-div-that-has-a-google-ad-inside-it">times</a> here.  But these seem fairly outdated, and it looks like the <a href="http://code.google.com/apis/afa/" rel="nofollow noreferrer">Adsense for Ajax</a> project has been <a href="http://www.google.com/support/forum/p/AdSense/thread?tid=2a9ba01aa6f5cd98&amp;hl=en" rel="nofollow noreferrer">canned</a> (or at the very least, moving very slowly).</p>
  
  <p>I have a web site that I've recently integrated <a href="https://stackoverflow.com/questions/6148097/is-pjax-the-way-to-go-for-fluid-navigation">pjax</a> into -- basically, it  uses Ajax to load the just the main content area, while maintaining the browser history and back/forward functionality using javascript's <code>history.pushState</code>.It has made a world of difference in how responsive the whole site is, as it no longer has to do HTTP requests for all of the outer shell of the site (javascript, css, images).</p>
  
  <p>But Adsense just won't work with Ajax -- at least not natively.  I've read about iFrame solutions, but it sounds like iFrames and Ajax and my pjax solution won't play together well.</p>
  
  <p>What I'm doing is not devious, as far as Adsense usage goes.  I'm still just showing one set of ads per page navigation as users click links.  It's just not doing a full page-level HTTP request.</p>
  
  <p>Are there any options out there?  Has anybody done something like this? Or, does anybody know of any updates to the Adsense for Ajax project?</p>
  
  <p>I need to get this figured out.  If I can't, I may chose the pjax over the Adsense, which means my whole business plan will have to be rehashed.  Ugh.</p>
  
  <p>Thanks in advance.</p>