Google AdSense代码无效 [英] Google AdSense code not working

查看:85
本文介绍了Google AdSense代码无效的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有谁可以告诉我为什么这不允许我将其保存到我的博客html中?


< script async src =" // pagead2.googlesyndication.com /pagead/js/adsbygoogle.js"></script>

<! - dreamtorealityxc_main_Blog1_1x1_as - >

< ins class =" adsbygoogle" ;

  &NBSP;   style =" display:block"

  &NBSP;   data-ad-client =" ca-pub-8530838350202957"

  &NBSP;   data-ad-slot =" 2084935622"

  &NBSP;   data-ad-format =" auto">< / ins>

< script>

(adsbygoogle = window.adsbygoogle || []) .push({});
$
< / script>



我直接从谷歌的adsense中取得它页面。


错误消息显示,  解析XML时出错,第1377行,第15列:属性名称"async"与元素相关联
类型"脚本"必须后跟'='字符。


它所指的部分是在第一行上的src之后的=符号到第一行之后的引号line。


谢谢




解决方案

我在这里看不到任何Visual Basic代码。也许你想要的是ASP.NET脚本论坛:


http://forums.asp.net/130.aspx/1?HTML+CSS+and+JavaScript



Can anyone tell me why this is not allowing me to save it into my blog html?

<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- dreamtorealityxc_main_Blog1_1x1_as -->
<ins class="adsbygoogle"
     style="display:block"
     data-ad-client="ca-pub-8530838350202957"
     data-ad-slot="2084935622"
     data-ad-format="auto"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>

I took it directly from the google adsense page.

The error message says, Error parsing XML, line 1377, column 15: Attribute name "async" associated with an element type "script" must be followed by the ' = ' character.

The part it is referring to is the = sign after src on the first line to the quotations after js also on the first line.

Thanks


解决方案

I don't see any Visual Basic code here. Perhaps you want the ASP.NET script forum:

http://forums.asp.net/130.aspx/1?HTML+CSS+and+JavaScript


这篇关于Google AdSense代码无效的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆