google广告之另类js调用实现代码-创新互联-成都创新互联网站建设

关于创新互联

多方位宣传企业产品与服务 突出企业形象

公司简介 公司的服务 荣誉资质 新闻动态 联系我们

google广告之另类js调用实现代码-创新互联

今天发现一个google广告的另类调用方法

创新互联建站主营枞阳网站建设的网络公司,主营网站建设方案,App定制开发,枞阳h5成都微信小程序搭建,枞阳网站营销推广欢迎枞阳等地区企业咨询
function addGoogel (content, obj) {
 addScript('//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js', function () {
  var ins = document.createElement('ins')
  ins.setAttribute('class', 'adsbygoogle')
  ins.setAttribute('data-ad-client', 'ca-pub-******')
  ins.setAttribute('style', obj.style)
  ins.setAttribute('data-ad-slot', obj.slot)
  content.appendChild(ins)
  var inlineScript = document.createElement('script')
  inlineScript.type = 'text/javascript'
  inlineScript.text = '(adsbygoogle = window.adsbygoogle || []).push({});'
  document.getElementsByTagName('body')[0].appendChild(inlineScript)
 })
}

当前题目:google广告之另类js调用实现代码-创新互联
本文URL:http://kswsj.cn/article/hocpi.html

其他资讯