Adsense 不工作

Adsense Is Not Working

我的 adsense 代码有点问题,它不想显示在我的 Wordpress 网站上。 这是我第一次在 iframe 中获得 adsense 代码。 所以我对此完全陌生。 这是代码:

iframe allowtransparency="true" src="thewebsite.com/ad.aspx?bid=7783&pid=2779907" width="980" height="240" marginwidth="0" marginheight="0" hspace="0" vspace="0" frameborder="0" scrolling="no">/iframe>

我想将它放在我网站的 head 标签中,但它不知何故没有显示。

你们有什么技巧或解决方案来完成这项工作吗? 谢谢你。

iframe 专门用于在您的网站上显示一些视觉内容。本质上,它将远程资源 "another website" 嵌入到您的站点中。你需要把它准确地放在你想要它出现的地方。将它放在头部意味着它永远不会在视觉上出现在任何地方。您需要将它放在 <body>.

中的某个位置

@deceze 给了你很好的技术解释,但是还有一个问题:我们不允许在 (i)frames 中放置 AdSense 广告。

Is it violating program policy if I place ads on iframe webpages in my software?

Yes, it does violate our policies. Firstly, you’re not allowed to place ads in a frame within another page. Exceptions to our policies are permitted only with authorization from Google for the valid use of iframes. Secondly, you’re not allowed to put ads in your software, e.g., if you control both a website with ads and an app that loads that website, we will take action against it.

A​​dSense 政策常见问题解答 > 第 2 部分:广告实施
https://support.google.com/adsense/answer/3394713?hl=en#2

http://adsense.blogspot.rs/2011/06/clarifying-our-ad-implementation.html