title: Google Adsense Error "TagError: adsbygoogle.push() error: No slot size for availableWidth=0 "
body: <p>I'm using responsive Google Ads on my website but unfortunately it is not working all the time and most of time it is returning</p>
  
  <blockquote>
    <p>TagError: adsbygoogle.push() error: No slot size for availableWidth=0</p>
  </blockquote>
  
  <p>I tried to fix the issue by defining the Ad Sizes but still the issue is not resolved yet.</p>
  
  <pre><code>.adslot_1 { width: 320px; height: 100px; }
  @media (min-width:500px) { .adslot_1 { width: 468px; height: 60px; } }
  @media (min-width:800px) { .adslot_1 { width: 728px; height: 90px; } }
  @media only screen and (min-width:800px)and (max-width:3000px) {
      #topbanner {
          width: 640px;
          height: 90px;
      }
  }
  </code></pre>
  
  <p>Well, this is the actual Google Adsense Google Code that I've used (for security reasons I've remove pub-id and ad-slot.)</p>
  
  <pre><code>&lt;script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"&gt;&lt;/script&gt;
  &lt;!-- articles(auto) --&gt;
  &lt;ins class="adsbygoogle adslot_1"
       style="display:inline-block;"
       data-ad-client="ca-pub-[MY_AD_ID]"
       data-ad-slot="AD_SLOT_NOS"
       data-ad-format="rectangle, horizontal"&gt;&lt;/ins&gt;
  &lt;script&gt;
  (adsbygoogle = window.adsbygoogle || []).push({});
  &lt;/script&gt;
  </code></pre>