瀏覽單個文章
Goemon
*停權中*
 
Goemon的大頭照
 

加入日期: Dec 2016
文章: 23
Question google 非同步廣告代碼 在 JS 腳本裡面怎麼寫?

HTML 代碼
代碼:
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<ins class="adsbygoogle" style="display:block" data-ad-format="fluid" data-ad-layout-key="-70+i-gg+ee+12j" data-ad-client="ca-pub-5853818035217866" data-ad-slot="5433895984"></ins>
<script>
     (adsbygoogle = window.adsbygoogle || []).push({});
</script>
</br>


JS 腳本
代碼:
var gads1_data = 
function gads1(gads1_data){
    page.includeJs("http://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js")
}
page.open(url, function(status) {
    gads1(gads1_data)
});


這段寫這樣對嗎
新的非同步代碼 多了 INS
gads1_data (script 內容) 參數要怎麼寫進去
     
      
舊 2018-07-20, 03:48 PM #1
回應時引用此文章
Goemon離線中