AdSense的启用history.pushState页 [英] AdSense on history.pushState enabled page

查看:186
本文介绍了AdSense的启用history.pushState页的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

首先,我知道这已经讨论过超过和<一href="http://stackoverflow.com/questions/435391/refresh-a-div-that-has-a-google-ad-inside-it#441425">over <一href="http://stackoverflow.com/questions/6394594/how-to-force-advert-to-show-on-ajax-loaded-page-adsense">again.但是,让我们以此为迟到2012年版,因为事情往往在互联网上迅速改变。

First off, I know this has been discussed over and over again. But let's take this as a "late 2012 edition" since things tend to change rapidly on the internet.

我有本网页这与整页刷新一个经典的网页。每个内部点击产生新的内容。我们可以展示AdSense广告这种方式没有问题。

I have this web page which is a "classical" web page with full page refreshes. Every internal click produces new content. We can show AdSense ads this way without a problem.

现在我开始寻找到ajaxifying(PJAX)的整个页面性能方面的原因(其实我已经做了一个原型版本和它的作品华丽)。只是整个事情的作品在支持 history.pushState 浏览器,每当用户点击一个AJAX请求被触发的内部链接,抓取页面的唯一内容的一部分(页眉和页脚)和之间的一切替换其旧的内容。

Now I started looking into "ajaxifying" (PJAX) the whole page for performance reasons (I've actually made a prototype version and it works superbly). The whole thing works only on browsers that support history.pushState, and whenever a user clicks on a internal link a AJAX request is triggered that fetches only the content part of the page (everything between the header and footer) and replaces old content with it.

最终的结果是,用户是psented了一个全新的页面(包括更改URL,什么不可以)$ P $,只有改变了机构交付的页面(全部重新加载与AJAX)。至于谷歌(和老的浏览器)来说这仍然是定期联系一个正常的网页(渐进增强和所有)。

The end result is, that the user is presented with a brand new page (including the changed URL and what not) and only the mechanism for delivering the page has changed (full reload vs. AJAX). As far as google (and older browsers) is concerned this is still a regular page with regular links (progressive enhancement and all that).

然而,没有一种方法来显示AdSense的,有什么用文件撰写的和AdSense的服务条款败坏了党。

And yet there isn't a way to display AdSense, what with the document.write's and AdSense's TOS ruining the party.

我的问题:是否有谷歌批准(我不感兴趣的黑客,将获得美国禁止)的方式来显示这样一个页面上的AdSense广告(我还没有找到它)。或者,如果没有,就谷歌对在未来的(同样,我还没有发现任何与此相关的)支持该计划的任何

My question: is there a Google approved (I'm not interested in hacks that will get us banned) way to display AdSense ads on a page like this (and I haven't found it). Or if there isn't, does Google have any plans on supporting this in the future (again, I haven't found anything related to this).

更新

在一些周围挖我碰到谷歌DFP ,该似乎支持增加了异步加载。但是,我不知道我可以通过它加载AdSense广告动态不打破服务条款。我100%肯定,我可以加载其他广告这种方式,但不使用AdSense。可能有人清楚这件事对我?

After some more digging around I came across Google DFP, which seems to support async loading of adds. But, I'm not sure I can load AdSense ads through it dynamically without breaking the TOS. I'm 100% sure I can load other ads this way, but not for AdSense. Could somebody clear this up for me?

推荐答案

根据你是通过DFP此页面加载Adsense广告受到的DFP和AdSense条款两者。所以我想,如果你是以下你不能做你正在谈论......同时谷歌提供了一个相当<一个当前AdSense条款href="http://support.google.com/dfp_$p$pmium/bin/answer.py?hl=en&answer=1650154&expand=pubservice_details#refresh"相对=nofollow>简单的方法来做你想做的事与DFP什么......

According to this page loading Adsense ads through DFP you are subject to the both the DFP and Adsense terms. So I guess if you are following the current Adsense terms you are not allowed to do what you are talking about... at the same time Google provides a rather easy method to do exactly what you want to do with DFP...

它仍然是一个灰色地带......

Its still a grey area...

这篇关于AdSense的启用history.pushState页的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆