title: How do you use multiple adsense units on one page?
body: <p>How do you have multiple adsense units on one website? The only code Google gives are per unit.</p>
  
  <pre><code>&lt;script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"&gt;&lt;/script&gt;
  &lt;ins class="adsbygoogle"
       style="display:inline-block;width:300px;height:250px"
       data-ad-client="ca-pub-123456"
       data-ad-slot="123456"&gt;&lt;/ins&gt;
  &lt;script&gt;
  (adsbygoogle = window.adsbygoogle || []).push({});
  &lt;/script&gt;
  </code></pre>
  
  <p>What if I want to use multiple adsense units on one website? I only use <code>&lt;script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"&gt;&lt;/script&gt;</code> and <code>(adsbygoogle = window.adsbygoogle || []).push({});</code> once, and then place the <code>&lt;ins ...&gt;&lt;/ins&gt;</code> code where I want it to be.</p>
  
  <p>The problem is that only the first adsense unit is parsed and shown. What do you need to do to be able to display more than one adsense unit?</p>
  
  <p>This is how I use it (only first <code>ins</code> is shown):</p>
  
  <pre><code>&lt;!doctype html&gt;
  &lt;html&gt;
      &lt;body&gt;
          &lt;ins class="adsbygoogle"
           style="display:inline-block;width:300px;height:250px"
           data-ad-client="ca-pub-123456"
           data-ad-slot="first"&gt;&lt;/ins&gt;
  
           &lt;ins class="adsbygoogle"
           style="display:inline-block;width:300px;height:250px"
           data-ad-client="ca-pub-123456"
           data-ad-slot="second"&gt;&lt;/ins&gt;
  
           &lt;ins class="adsbygoogle"
           style="display:inline-block;width:300px;height:250px"
           data-ad-client="ca-pub-123456"
           data-ad-slot="third"&gt;&lt;/ins&gt;
  
          &lt;script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"&gt;&lt;/script&gt;
          &lt;script&gt;(adsbygoogle = window.adsbygoogle || []).push({});&lt;/script&gt;
      &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>