PCDVD數位科技討論區
PCDVD數位科技討論區   註冊 常見問題 標記討論區為已讀

回到   PCDVD數位科技討論區 > 其他群組 > 七嘴八舌異言堂
帳戶
密碼
 

回應
 
主題工具
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:49 PM 被 Goemon 編輯.
舊 2018-07-20, 03:48 PM #1
回應時引用此文章
Goemon離線中  


回應


POPIN
主題工具

發表文章規則
不可以發起新主題
不可以回應主題
不可以上傳附加檔案
不可以編輯您的文章

vB 代碼打開
[IMG]代碼打開
HTML代碼關閉



所有的時間均為GMT +8。 現在的時間是08:47 PM.


vBulletin Version 3.0.1
powered_by_vbulletin 2024。