最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - Why does Adsense show a yellow box on my Wordpress site? - Stack Overflow

programmeradmin0浏览0评论

I have just added the AdSense code in my wordpress blog: / using the text widget but nothing is displaying. At first a yellow box was displayed. Nevertheless, by mega-googling, i have just found that the code generated by adSense, does not deliver the plete URL of the adsbygoogle.js. Check the URL of the adsbygoogle.js

<script async src="//pagead2.googlesyndication/pagead/js/adsbygoogle.js"></script>
<!-- SurLaRouteSinglePost -->
<ins class="adsbygoogle"
     style="display:inline-block;width:200px;height:200px"
     data-ad-client="ca-pub-A_NUMBER"
     data-ad-slot="ANOTHER NUMBER"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>

So you can see that the "http:" is missing. Ok, i fixed it but i still can't see the adds :( I would really appreciate if someone help me with this issue.

Notes: The ads should appear on the left sidebar just below the title "Useful links". My adsense account is properly working.

Hey, actually, stackoverflow detected that the link is wrong...

I have just added the AdSense code in my wordpress blog: http://surlaroute..mx/blog/ using the text widget but nothing is displaying. At first a yellow box was displayed. Nevertheless, by mega-googling, i have just found that the code generated by adSense, does not deliver the plete URL of the adsbygoogle.js. Check the URL of the adsbygoogle.js

<script async src="//pagead2.googlesyndication./pagead/js/adsbygoogle.js"></script>
<!-- SurLaRouteSinglePost -->
<ins class="adsbygoogle"
     style="display:inline-block;width:200px;height:200px"
     data-ad-client="ca-pub-A_NUMBER"
     data-ad-slot="ANOTHER NUMBER"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>

So you can see that the "http:" is missing. Ok, i fixed it but i still can't see the adds :( I would really appreciate if someone help me with this issue.

Notes: The ads should appear on the left sidebar just below the title "Useful links". My adsense account is properly working.

Hey, actually, stackoverflow detected that the link is wrong...

Share Improve this question edited Oct 28, 2017 at 15:13 the 22k12 gold badges74 silver badges102 bronze badges asked Jun 3, 2014 at 0:37 PathrosPathros 10.8k21 gold badges102 silver badges165 bronze badges 1
  • 1 The "http:" is not missing - it is done that way so that whether your page is HTTPS (uses SSL) or is HTTP it will work using whatever transport layer got the user to the page. – metaforge Commented Feb 20, 2017 at 21:59
Add a ment  | 

1 Answer 1

Reset to default 6

If you have created an Adsense account recently, like the day you posted this question, just add the code that they gave you (DO NOT CHANGE ANY PART OF THE CODE), and wait until it appears, it's gonna be with a yellow background until Google review your website and see that your website is good to display their ads.

发布评论

评论列表(0)

  1. 暂无评论