Javascript Android-document.write()阻止谷歌广告-双击
我发现了许多关于document.write()的问题,但没有一个能回答我的具体问题 简短解释 从DoubleClick接收广告的请求成功完成,但广告未加载(空格代替看到广告),以下是logcat在Android Studio中提供的警告:Javascript Android-document.write()阻止谷歌广告-双击,javascript,android,double-click,document.write,Javascript,Android,Double Click,Document.write,我发现了许多关于document.write()的问题,但没有一个能回答我的具体问题 简短解释 从DoubleClick接收广告的请求成功完成,但广告未加载(空格代替看到广告),以下是logcat在Android Studio中提供的警告: A parser-blocking, cross site (i.e. different eTLD+1) script, SCRIPT_PATH, is invoked via document.write. The network request for
A parser-blocking, cross site (i.e. different eTLD+1) script, SCRIPT_PATH, is invoked via document.write. The network request for this script MAY be blocked by the browser in this or a future page load due to poor network connectivity. If blocked in this page load, it will be confirmed in a subsequent console message. See https://www.chromestatus.com/feature/5718547946799104 for more details.
The SSL certificate used to load resources from WEBSITE_PATH will be distrusted in the future. Once distrusted, users will be prevented from loading these resources. See https://g.co/chrome/symantecpkicerts for more information. SCRIPT_PATH
较长版本
我有一个Android应用程序,其中包括带有双击库的谷歌广告。这些广告无法在一些较新的设备上加载(安卓7.0除外)。我怀疑较新版本的Android有较新版本的Chromium(55+),其中document.write()的处理方式已经改变。
因此,当加载一些广告(在我的例子中是所有广告)时,我总是收到关于document.write()的警告,而广告不会加载
- 我没有双击错误(请求成功)
- 我没有任何消息说没有广告可以提供(广告在请求中被正确接收)
- com.google.android.gms.ads.doubleclick.PublisherAdView
- com.google.android.gms.ads.doubleclick.PublisherAdRequest
- com.google.android.gms.ads.doubleclick.PublisherAdRequest.Builder