Closed matteocontrini closed 6 years ago
So it wasn't actually an issue with the extension. I found out that for some reason the uBlock Origin extension I have installed was misconfigured. I had it configured in "opt in" mode, so that ads are always allowed by default, but that wasn't really working... Without the extension at all, everything's fine.
Sorry for bothering :)
When using Flagrow Ads with AdSense banners, it seems there are problems when viewing the forum with Mozilla Firefox (tested with v63).
Particularly, this error is shown in the console every time an AdSense banner is attempted to be rendered:
My configuration is the following. In Admin => Appearance => Custom header I put the AdSense script include:
I know it's not the best idea, but the easiest.
In Admin => Ads, I have the AdSense code for the banners:
The issue can be seen live on this forum: https://forum.fibra.click/
Or, as reported here, also on https://www.seekadventure.net/
If testing with Firefox in incognito mode, be sure to disable "Content/tracking blocking", because it blocks ads as well.
After a quick search, it appears that the issue is related to the fact that the
(adsbygoogle = window.adsbygoogle || []).push({});
line is called when the rest of the code has still to be rendered on screen.(Note: for anyone wondering, what that line is doing is creating a local variabile called
adsbygoogle
and assigning it the value of the globalwindow.adsbygoogle
, or an empty array if it doesn't exist. Then an empty object is pushed on that array. This works because if the AdSense script is already loaded, the push function is actually some custom code that loads the next ad slot. If AdSense is still not loaded, theadsbygoogle
array will be used to know how many slots to load, as soon as AdSense is ready)Thank you.