Angular.js & Adsense

前端 未结 4 1454
面向向阳花
面向向阳花 2020-12-23 15:31

I\'m trying to put ads on my angular.js app, and I\'ve done some reading and discovered it isn\'t possible to just copy and paste the normal adsense code.

I\'ve hear

4条回答
  •  佛祖请我去吃肉
    2020-12-23 16:04

    I am not sure whether doing the following thing is valid as per the adsense T&C.

    delete all the google related variables before you change the url

    Object.keys(window).filter(function(k) { return /google/.test(k) }).forEach(
            function(key) {
                delete(window[key]);
            }
        );
    

提交回复
热议问题