The discussion revolves around an issue with Google ads not displaying on a Discourse site (whitewaterdeu). The ads initially showed normally, but then only a blank space was visible. The issue seemed to be related to the user’s network, as whitewaterdeu mentions that using a proxy allowed the ads to display.
Lilly visited the site and observed that the ads didn’t show in Chrome on Windows desktop but did show in Safari on iOS. They also noticed errors in the browser console, including content security policy and JavaScript errors (Lilly).
Lilly suggested a possible solution, referencing a Discourse topic about blank ads on the AdSense AdPlugin.
whitewaterdeu ultimately discovered that the issue was related to the user’s network, citing a source that explains how Google ads rely on JavaScript execution efficiency, which can be affected by poor network conditions.
After the first installation of plugin Discourse Advertising Plugin (Ads) , the google ad show normally in my site ( https://bbs.whitewater.wang/ ), and i can see the data of daily income, but one day i found there is only a ad blank in my site like this (other users too)
i visited your forum and in Chrome windows desktop i don’t even get the blank space for the ad. but the ad shows in Safari iOS on my ipad desktop view. however, the space is there in mobile view:
when i inspected in safe-mode, the javascript errors are not there but the content security policy errors remain. looks like you may also have an issue(s) with a component.
finally i found the true problem, which depends on user’s network, sometime the ads display, sometime not
The display of Google ads has a lot to do with the network that customers visit. Google’s ads need to run JS scripts, and the execution efficiency of this script directly determines the display of ads. If the client’s network is too poor, the ad may not be displayed.
Google 广告的显示和客户访问的网络有很大的关系。Google 的广告是需要运行 JS 脚本的,这个脚本的执行效率直接决定了广告的显示。如果客户端的网络太差的话,广告是有可能显示不出来的。