cakePHP 和 Google AdSense
cakePHP and Google AdSense
我在 cakePHP 视图中遇到 AdSense 代码问题。我使用标准的 cakePHP 2.X(没有对配置进行任何更改)。
你可以在variart.org看到这种情况——在这个页面bottom/footer上有一个空白space。广告就是不显示:(
感谢您的帮助。
来自 AdSense 的代码是:
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- new VA_responsive -->
<ins class="adsbygoogle"
style="display:block"
data-ad-client="ca-pub-4708089258816495"
data-ad-slot="6497910316"
data-ad-format="auto"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
您的 adsense show_ads_impl.js
返回 403 并显示以下消息:
Failed to load resource: the server responded with a status of 403 (OK)
最常见的原因是:
- 您的 AdSense 帐户尚未获得批准
- 您的网站已被禁止投放广告
我建议您查看您在 AdSense 中的所有偏好设置和帐户状态,以了解是否有问题。
我在 cakePHP 视图中遇到 AdSense 代码问题。我使用标准的 cakePHP 2.X(没有对配置进行任何更改)。
你可以在variart.org看到这种情况——在这个页面bottom/footer上有一个空白space。广告就是不显示:(
感谢您的帮助。
来自 AdSense 的代码是:
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- new VA_responsive -->
<ins class="adsbygoogle"
style="display:block"
data-ad-client="ca-pub-4708089258816495"
data-ad-slot="6497910316"
data-ad-format="auto"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
您的 adsense show_ads_impl.js
返回 403 并显示以下消息:
Failed to load resource: the server responded with a status of 403 (OK)
最常见的原因是:
- 您的 AdSense 帐户尚未获得批准
- 您的网站已被禁止投放广告
我建议您查看您在 AdSense 中的所有偏好设置和帐户状态,以了解是否有问题。