通知

請務必前往您的 AdSense 頁面,查看帳戶的相關個人化資訊,運用 AdSense 順利達成目標。

廣告單元

如何為廣告單元產生同步廣告程式碼

您在 AdSense 帳戶中產生的廣告程式碼為非同步版本,可用於改善網頁延遲的問題,並為您的網站訪客提供更流暢的使用體驗。如果您因為某些原因需要產生同步廣告程式碼,像是您使用了 Google Ad Manager 或其他不支援非同步廣告程式碼的廣告伺服器,因此需要修改廣告單元程式碼。

注意事項固定大小廣告單元只能產生同步廣告程式碼。

如想修改現有的廣告單元程式碼,請依下列方式修改:

非同步廣告單元程式碼

<script async src="https://pagead2.googlesyndication.com/
pagead/js/adsbygoogle.js"></script>
<!-- leaderboard -->
<ins class="adsbygoogle"
    style="display:inline-block;width:728px;height:90px"
    data-ad-client="ca-pub-xxxxxxxxxxxxxxxx"
    data-ad-slot="1234567890"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>

同步廣告單元程式碼

<script type="text/javascript">
    google_ad_client = "ca-pub-xxxxxxxxxxxxxxxx";
    google_ad_slot = "1234567890";
    google_ad_width = 728;
    google_ad_height = 90;
</script>
<!-- leaderboard -->
<script type="text/javascript"
src="https://pagead2.googlesyndication.com/
pagead/show_ads.js">
</script>
注意事項:我們不建議您在同一個網頁上混用非同步與同步廣告程式碼。

這對您有幫助嗎?

我們應如何改進呢?
true
您的 AdSense 頁面

「AdSense 頁面」隆重登場:透過這項全新資源,您可以在帳戶中找到個人化資訊和新商機,運用 AdSense 順利達成目標。

搜尋
清除搜尋內容
關閉搜尋
主選單
7123685241209849781
true
搜尋說明中心
true
true
true
true
true
157
false
false