简体   繁体   English

Google Adsense问题

[英]Google Adsense issue

I am new to wordpress. 我是Wordpress的新手。 I wanted a responsive google adsense to be displayed in my wordpress site. 我希望在我的Wordpress网站中显示一个响应式Google Adsense。 I got this responsive code from google ad sense 我从谷歌广告感得到此响应代码

My wordpress site. 我的wordpress网站。 www.shoretemple.com www.shoretemple.com

<script async src="//"></script>
<!-- ShoreTemple_2015 -->
<ins class="adsbygoogle"
     style="display:block"
     data-ad-client="ca-pub-9979776236104288"
     data-ad-slot="3591025896"
     data-ad-format="auto"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>

I have pasted this on the widget sidebar. 我已经将其粘贴在小部件侧栏上。 It does not show anything. 它什么也没显示。 I waited for 3 days. 我等了三天。 Still nothing shows.. I tried inserting this code on a normal html page. 仍然没有任何显示。.我尝试在普通的html页面上插入此代码。 It still didnt work too. 它仍然没有工作。 But... when i paste this code : 但是...当我粘贴此代码时:

<div class="banner300x250"><script type="text/javascript"><!--
google_ad_client = "ca-pub-9979776236104288";
/* ShoreTemple_MediumRectangle_3 */
google_ad_slot = "2865064305";
google_ad_width = 300;
google_ad_height = 250;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></div>

This one works perfectly, But it is not responsive. 这是一个完美的作品,但反应迟钝。 Is there anything i am missing? 我有什么想念的吗? If not, how to make it responsive. 如果没有,如何使其响应。

Thanks for your help. 谢谢你的帮助。

Possible mistake ! 可能的错误! ... Include this also in widget ( Any one if you have multiple ) ...也将其包含在小部件中(如果有多个,则包含任何一个)

<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script>

I found this awesome plugin called quick Ad sense. 我发现了这个很棒的插件,称为快速广告感。 That solved my problem. 那解决了我的问题。 Thank you 谢谢

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM