Answer the question
In order to leave comments, you need to log in
How do I know that a Google AdSense ad has loaded?
Is there any way to find out on the client if the AdSense ad has loaded? The fact is that ads are not loaded on some pages, and I would like to show, for example, Yandex (rysya) ads instead of AdSense.
Answer the question
In order to leave comments, you need to log in
You can analyze the presence of a banner on the page, its size, and in case of absence, try to show another advertisement. But the fight against AdBlock is such a rather disastrous business.
Here, for example, the user has the following entries in the hosts file:
127.0.0.1 pagead2.googlesyndication.com
127.0.0.1 an.yandex.ru
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question