基于引荐来源网址的广告解决方案?
这是一个有点奇怪的问题,所以如果您需要更多信息,请告诉我。
对于我正在进行的一个副项目,我需要能够根据指定域在特定页面上生成广告。我查了一下,没有找到任何真正适合这个的东西,所以我希望这里有人有这样的服务,或者可以把我推向正确的方向。我目前对寻找自己的广告商/推出自己的解决方案不太感兴趣(并不是说将来不会发生),而是寻找更多开箱即用的解决方案。
说明:此页面上的广告内容将根据推荐 URL 生成。因此,换句话说,广告内容不是与它所传递的页面相关联,而是与域/URL 相关联。
泰亚
This a bit of a weird question so please let me know if you need more information.
For a side project I am working on I need to ability to generate advertising on a specific page based on a specified domain. I have looked a bit and haven't found anything that really fits this so I'm hoping someone here has a service like this or can push me in the correct direction. I'm not super interested in finding my own advertiser/rolling my own solution currently (not to say it wont happen in the future), looking for more of an out of the box solution.
Clarification: The advertising content on this page will be generated based upon the referral URL. So in other words instead of the advertising content being contextual to the page it is delivered on.. it is contextual to a domain/URL.
TYIA
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我假设您正在使用 Adsense 的工作方式 - javascript 对存储在服务器上的 PHP 文件进行 ajax 调用,该文件返回内容,然后将其添加到页面中。
这种情况我可以想到两种办法:
1.使用$_SERVER['HTTP_REFERER'],这并不总是有效;
2.或者通过ajax调用发送当前页面地址(window.location.href,如果我没记错的话)
I assume You are working with it the way Adsense works - a javascript makes an ajax call to a PHP file stored on your server which returns the content, which is afterwards added to the page.
In such case I can think of two ways:
1. Use $_SERVER['HTTP_REFERER'], which won't always work;
2. Or send the current page address (window.location.href if I recall correctly) with the ajax call