Eliminate the gaps left by AdSense if it does not serve ads

Do you use Google AdSense to monetize your site, and sometimes ads do not appear on one or more pages?

This is because Google AdSense is unable to find advertisers who are willing to bid on your page at that time. Or you may have blocked certain categories of advertisers from bidding on your page. Also, if your page is updated daily, very old posts may not show ads but gaps in the ad position.

Following is a page with a Google AdSense ad placed somewhere in the middle of the page.

iguruads

And below is the same page, but the ad has been replaced with a space.

igurunoads

In the background

When any Google AdSense ad unit on your site sends an ad request to Google Servers, the AdSense server responds with an ad or sets the ad unit status to unfilled, which means there are no ads for viewing at that time.

  Smart TV is watching you. How to stop it

If you do not want to see gaps in your site due to the unavailability of ads, you can hide unfilled ad units with CSS.

Open the main CSS of your website or the custom you use and add the following CSS code:

  ins.adsbygoogle [data-ad-status = 'unfilled'] {display: none! important; }

From now on, if there are vacancies for ads on your site, they will not appear. You might also consider replacing the incomplete AdSense ad unit with an alternative image that links internally to one of your pages.

Registration in iGuRu.gr via email

Your email for sending each new post

Follow us on Google News iGuRu.gr at Google news

Leave a reply

Your email address Will not be published.

  + 75 = 83

Previous Story

Linuxfx 11.1.1104 the Linux distribution clone of Windows 11

Next Story

Adobe Color: Find free matching color combinations