Adsense 似乎无法识别 PHP 生成的内容

发布于 2024-07-25 04:55:28 字数 189 浏览 7 评论 0原文

我的网站使用 PHP 从数据库中提取内容。 我正在与此内容一起投放 Google Adsense 广告。

当我第一次从数据库中提取数据时,Adsense 似乎无法识别内容的主题,并显示一个非常通用的、不相关的广告。

关于如何让 Adsense 识别内容主题有什么想法吗?

谢谢,

约翰

My site is using PHP to pull content from a database. I am running a Google Adsense ad alongside this content.

The first time I pull data from the database, Adsense doesn't appear to recognize the subject of the content and displays a very generic, unrelated ad.

Any ideas on how I can get Adsense to recognize the subject of the content?

Thanks,

John

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(5

世界如花海般美丽 2024-08-01 04:55:28

给它更多时间。

Adsense 无法以任何方式区分 PHP 生成的内容和静态内容。 生成的 HTML 中可能存在问题,但听起来不太可能 - 我的猜测是 Adsense 要么需要更多时间来抓取您的网站并获得一些好的通用关键字来使用,要么它无法识别/广告相对较少提供有关内容的主题。

Give it more time.

Adsense can not in any way tell the difference between PHP-generated and static content. There may be an issue in the generated HTML, but it sounds unlikely - my guess would be that Adsense either needs more time to spider your site and get some good general keywords to use, or that it can't identify/has relatively few ads to offer on the subject of the content.

三月梨花 2024-08-01 04:55:28

请记住,为了让 Google 提供相关广告,它必须能够检索页面的副本,对其进行分析,并确定哪些广告合适。

Google 只能访问 URL。 如果用户必须提交表单才能访问页面(这听起来像是您正在做的事情),并且表单信息被 POST 到服务器,那么它只有脚本名称,例如:

http://www.example.com/mypage.php

考虑将提交的参数更改为传入查询字符串,这样 Google 将能够请求同一页面并执行分析。 例如

http://www.example.com/mypage.php ?f1=abc&f2=def

Remember that in order for Google to provide relevant adverts, it has to be able to retrieve a copy of the page, analyse it, and determine which ads would be appropriate.

All Google has access to is the URL. If the user has to submit a form to get to a page (which it sounds like is what you are doing), and the form information is POSTed to the server, then it only has the script name, for example:

http://www.example.com/mypage.php

Consider changing the submitted parameters to be passed in the query string, as then Google will be able to request the same page and perform the analysis. e.g.

http://www.example.com/mypage.php?f1=abc&f2=def

瀟灑尐姊 2024-08-01 04:55:28

adsense 需要一段时间才能对您的页面进行分类,您可能会在一段时间内收到公益广告等内容,直到它分类为止。 我不会担心的,等几天吧。

It takes a while for adsense to classify your page, you'll probably get public service ads and the like for a while until it does. I wouldn't worry about it, give it a couple of days.

铜锣湾横着走 2024-08-01 04:55:28

如果您能看到广告,那么您就已经解决了所有编程问题。 除了等待谷歌发挥其魔力之外,别无他法。

如果您使用基于 PHP/MySQL 的 CMS,Google 将能够很好地找到您的内容。

You've already solved all of your programming issues if you can see the ads. There's nothing left to do except wait for Google to do its magic.

If you're using a PHP/MySQL based CMS Google will be able to find your stuff just fine.

还如梦归 2024-08-01 04:55:28

这个循环的工作原理是这样的:

  1. 用户请求一个以前从未使用过Adsense的页面(例如/mynewpage.html),Adsense
  2. 不熟悉该URL,因此它返回一个占位符广告,并将该页面排队等待抓取
  3. 。在用户请求该页面的几分钟内,Adsense 抓取工具会请求该页面本身(您可以在访问日志中看到这一点)并对其进行分析。
  4. 在某个时刻,Adsense 开始为相关页面返回适当的广告

。这不是一个瞬时过程。 Adsense 无法立即为以前从未听说过的页面返回“相关”广告。

The cycle works like this:

  1. A user requests a page adsense has never been used on before (e.g. /mynewpage.html)
  2. Adsense isn't familiar with the URL, so it returns a placeholder ad, and queues the page to be crawled
  3. Generally, within minutes of the user requesting the page, the adsense crawler requests the page itself (you can see this in your access logs) and analyzes it
  4. At some point, adsense starts returning appropriate advertising for the page in question

It's not an instantaneous process. There is no way for adsense to instantly return "relevant" ads for pages it's never heard of before.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文