title: How do you render Google ad units in localhost?
body: <p>Per research there was a previous question from 2014 (<a href="https://stackoverflow.com/questions/26864860/is-google-adsense-available-for-localhost">Is Google adsense available for localhost?</a>) that suggested adding:</p>
  
  <pre><code>data-adtest="on"
  </code></pre>
  
  <p>and after testing and reading the <a href="https://stackoverflow.com/questions/26864860/is-google-adsense-available-for-localhost#comment93594433_34389120">comments</a> the solution no longer works. In an ad unit:</p>
  
  <pre><code>&lt;script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"&gt;&lt;/script&gt;
      &lt;!-- responsive_ad --&gt;
      &lt;ins class="adsbygoogle"
          style="display:block"
          data-ad-client="ca-pub-####"
          data-ad-slot="######"
          data-ad-format="auto"
          data-adtest="on"
          data-full-width-responsive="true"&gt;
      &lt;/ins&gt;
  &lt;script&gt;
  (adsbygoogle = window.adsbygoogle || []).push({});
  &lt;/script&gt;
  </code></pre>
  
  <p>After testing in Chrome, Firefox and Safari a white box is rendered. After searching I'm not able to locate any solution in product forums or on any site. How can I test an ad unit in localhost?</p>