• Resolved marbs

    (@marbs)


    I have followed your great documents but there’s a little question. When the ad is unfilled it will be hidden but the “Advertisement” text stays. Is there a workaround to hide the text too when the ad unit is unfilled?

    <div style="font-size: 10px;">Advertisement</div>
    <ins class="adsbygoogle"
         style="display:block; text-align:center;"
         data-ad-layout="in-article"
         data-ad-format="fluid"
         data-ad-client="ca-pub-XXXXXXXXXXX"
         data-ad-slot="8173309699"></ins>
    <script>
         (adsbygoogle = window.adsbygoogle || []).push({});
    </script>
    [ADINSERTER FALLBACK="adsense"]
    <style>ins.adsbygoogle[data-ad-status="unfilled"] {display: none !important;}</style>
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How to hide “Advertisement” text when Adsense is unfilled?’ is closed to new replies.