angularjs - 使用 Angularjs 后,Adsense 停止显示广告

标签 angularjs asp.net-mvc adsense

我有一个 Asp.net mvc 站点,启用了 Google Adsense,并在 Layout.cs 中添加了脚本,并且通过 ajax 和 jquery 从 api 生成了内容。一切正常,广告显示

最近我添加了一个新页面,我使用 angularjs 使用 CDN 进行数据绑定(bind)。该页面运行良好。但广告停止显示。仅在该页面上。控制台上显示的消息是

The resource http://pagead2.googlesyndication.com/pagead/js/r20190313/r20190131/show_ads_impl.js was preloaded using link preload but not used within a few seconds from the window's load event. Please make sure it has an appropriate as value and it is preloaded intentionally.



在 Layout.cs 中
 <script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
    <script>
        (adsbygoogle = window.adsbygoogle || []).push({
            google_ad_client: "ca-pub-1771190807684402",
            enable_page_level_ads: true
        });
    </script>

Adding URL of my Site for reference 

JumptoJob-Online exam

And my angularjs controller for page looks simple


   <script>
    "use strict";

    /*We need to manually start angular as we need to
    wait for the google charting libs to be ready*/

    var mainApp = angular.module("mainApp", ['googlechart']);
    mainApp.controller('QuestionController', myControllerFunction);
    myControllerFunction.$inject = ["$scope", "$http", "$timeout"];


    function myControllerFunction($scope, $http, $timeout) {
}
      </script>

最佳答案

我联系了 AdSense 支持并提供了 URL。他们让我等待几个小时,然后广告开始展示。按照他们的说法,在 angularjs 中使用 adsense 指令总是比仅使用普通的 adsense 脚本和自动广告更好

关于angularjs - 使用 Angularjs 后,Adsense 停止显示广告,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55204212/

相关文章:

javascript - AngularJS 可以在没有任何服务器端技术的情况下将文件保存/写入到服务器吗?

javascript - 从数据:text/xml调用XSLT文件

c# - System.Web.Routing.RouteCollection.GetRouteData 中的异常

css - 响应式 CSS 设计,显示 Adsense 广告 :none

php - PHP 网站和 AdSense 的广告轮播

javascript - IE9 : Weird Javascript error

javascript - AngularJs:在数组中分配值时获得意外输出?

javascript - 在 Angular 引导 datetimepicker 中禁用所有以前的日期

asp.net-mvc - 无法找到 IdentityServer4 的 DiscoveryClient

asp.net-mvc - 用于加密的 MVC AntiForgeryToken 机器 key