Note that there are some explanatory texts on larger screens.

plurals
  1. PODoubleClick Ads not working with Manifest File
    text
    copied!<p>I'm building an HTML5 app that uses Google Doubleclick ads. 99% of the app is dynamically built with JS, but the ads are hardcoded into the html like so:</p> <pre><code> &lt;script type='text/javascript' src='http://partner.googleadservices.com/gampad/google_service.js'&gt;&lt;/script&gt; &lt;script type='text/javascript'&gt; GS_googleAddAdSenseService("ca-pub-3664602748600160"); GS_googleEnableAllServices(); GA_googleAddSlot("ca-pub-3664602748600160", "125x125"); GA_googleAddSlot("ca-pub-3664602748600160", "250x250"); GA_googleAddSlot("ca-pub-3664602748600160", "160x600"); GA_googleAddSlot("ca-pub-3664602748600160", "468x60"); GA_googleFetchAds(); &lt;/script&gt; &lt;div id="ads" style="float:right;"&gt; &lt;div id="square" style="visibility:hidden"&gt; &lt;div&gt; &lt;script type='text/javascript'&gt; GA_googleFillSlot("250x250"); &lt;/script&gt; &lt;/div&gt; &lt;/div&gt; &lt;div id="small_square" style="visibility:hidden"&gt; &lt;div&gt; &lt;script type='text/javascript'&gt; GA_googleFillSlot("125x125"); &lt;/script&gt; &lt;/div&gt; &lt;/div&gt; &lt;div id="tall_banner" style="visibility:hidden"&gt; &lt;div&gt; &lt;script type='text/javascript'&gt; GA_googleFillSlot("160x600"); &lt;/script&gt; &lt;/div&gt; &lt;/div&gt; &lt;div id="half_banner" style="visibility:hidden"&gt; &lt;div&gt; &lt;script type='text/javascript'&gt; GA_googleFillSlot("468x60"); &lt;/script&gt; &lt;/div&gt; &lt;/div&gt; </code></pre> <p></p> <p>These ads are then hidden/shifted as needed to fill the various ad spots on the generated pages. When i implemented a manifest file to cache persistent assets i get a message that it has failed to load the <a href="http://partner.googleadservices.com/gampad/google_service.js" rel="nofollow">http://partner.googleadservices.com/gampad/google_service.js</a> file. Knowing this, I tried saving a local copy of that js file and including it in the manifest, but this led to errors regarding the GA_googleblahlah calls being undefined which seems to indicate a load order issue of some sort. Is there some way to exempt this file from cache? </p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload