获取用户点击 adsense 的页面
如何以编程方式获取用户点击过 Google 广告的(我们网站的)页面列表?
How can I get the list of pages (of our website) programatically in which a user has clicked on google ads?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您可以将您的 adsense 帐户与 Google Analytics 集成,这是可靠地做到这一点的唯一方法。
这是一个关于如何执行此操作的不错的教程
完成后这样,您的 Google 分析仪表板将开始显示哪些页面为您带来了收入,以及它们的点击次数。
要以编程方式执行此操作,在将 Google Analytics API 与 Adsense 集成后,您必须使用它。
You can integrate your adsense account with Google Analytics, this is the only way to do that reliably.
Here is a decent tutorial on how to do this
After you have done this, your Google analytics dashboard will start to show which pages have made you money, and how many clicks they've had.
To do this programatically you would have to use the google analytics API once you had integrated it with adsense.
您还可以考虑为网站上的每个页面创建一个独特的广告,并使用 AdSense API 来了解哪些页面正在产生 AdSense 活动。然而,这将是一个很大的工作量。您最好使用 Analytics 解决方案。如果他们的 API 不允许您访问此报告,您可以进行设置,以便定期将报告发送到电子邮件地址,并设置一个脚本将该内容通过管道传输到您的工具集/数据库中。
You could also consider creating a unique ad for each page on your site and use the AdSense API to understand which pages are producing AdSense activity. It would be a lot of work, however. You're better of using the Analytics solution. If their API does not allow you to access this report, you could set it up so that the report is sent to an email address on a periodic basis and have a script setup to pipe that content into your toolset/db.