title: Adsense content just displaying blank square
body: <p>On my site, the AdSense content is loaded dynamically via javascript. The article content is retrieved via AJAX then displayed on the page. When it is displayed, the AdSense code is appended to the article. </p>
  
  <p>You can see it in action at: <a href="http://thepresslist.com.au/" rel="nofollow">http://thepresslist.com.au/</a></p>
  
  <p>The code should appear just above where you can see the word 'Advert'. On my end, I can only see a blank area where the ad should appear, but no ad. Looking at the source of the final page, the code appears to be correct. AdBlock is disabled and Javascript is on. I see no obvious errors in my AdSense account. </p>
  
  <p>Is anyone able to shed some light onto why no ads are displayed? </p>
  
  <p>This is the code that generates the ad placement (the array is the Google AdSense script, exploded, to split up the <code>&lt;/script&gt;</code> tags.</p>
  
  <pre><code>articleAd.innerHTML = &lt;?php 
      $numItems = count($site_content_adverts); 
      $i = 0; 
      foreach ($site_content_adverts as &amp;$value) { 
          if(++$i === $numItems) { 
              echo '"' . $value . '" + ';
          } else { 
              echo '"' . $value . '" + "pt&gt;" + ';
          }
       }
  ?&gt; "Advert";
  </code></pre>
  
  <p>On the loaded page, the above script looks like this (after the exploded string is echoed):</p>
  
  <pre><code>articleAd.innerHTML = "&lt;style&gt;.press-list-ad-1 { width: 320px; height: 50px; }@media(min-width: 500px) { .press-list-ad-1 { width: 468px; height: 60px; } }@media(min-width: 800px) { .press-list-ad-1 { width: 728px; height: 90px; } }&lt;/style&gt;&lt;script async src=\"//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js\"&gt;&lt;/scri" + "pt&gt;" + "&lt;!-- Press List Ad 1 --&gt;&lt;ins class=\"adsbygoogle press-list-ad-1\"     style=\"display:inline-block\"     data-ad-client=\"ca-pub-1801533XXXXXXXX06\"     data-ad-slot=\"68XXXXXXXXX105\"&gt;&lt;/ins&gt;&lt;scri" + "pt&gt;" + "(adsbygoogle = window.adsbygoogle || []).push({});&lt;/scri" + "pt&gt;" + "" +  "Advert";
  </code></pre>
  
  <p>This is the code that is rendered each time a new article loads: </p>
  
  <pre><code>&lt;style&gt;.press-list-ad-1 { width: 320px; height: 50px; }@media(min-width: 500px) { .press-list-ad-1 { width: 468px; height: 60px; } }@media(min-width: 800px) { .press-list-ad-1 { width: 728px; height: 90px; } }&lt;/style&gt;
  &lt;script async="" src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"&gt;&lt;/script&gt;
  &lt;!-- Press List Ad 1 --&gt;
  &lt;ins class="adsbygoogle press-list-ad-1" style="display:inline-block" data-ad-client="ca-pub-1801XXXXX58006" data-ad-slot="6898XXXXXXX05"&gt;&lt;/ins&gt;
  &lt;script&gt;(adsbygoogle = window.adsbygoogle || []).push({});&lt;/script&gt;
  </code></pre>