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

I have just added the AdSense code in my wordpress blog:using the text widget but nothing is display

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.

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745334803a4623053.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信