違規內容
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
外掛程式可執行的功能受到一些限制。請避免這些陷阱,提升使用者的整體體驗。
一般限制
以下限制適用於所有外掛程式。請勿執行下列操作:
變更 Google Workspace 中的功能
外掛程式架構旨在強化 Google Workspace 應用程式,而非增加限制。因此,您無法變更現有功能或鎖定 Google Workspace 文件共用模式。
向使用者收取安裝費用
我們不會向使用者收取安裝外掛程式的費用,且外掛程式不得包含廣告。不過,您可以使用自己的付款系統,或呼叫現有的帳單資料庫。外掛程式可連結至向使用者收費的非 Google 服務。
偵測多個事件
除了特定觸發事件外,外掛程式無法得知使用者在外掛程式之外的行為。舉例來說,您無法偵測使用者點選主機應用程式工具列的時間。您可以透過側欄的用戶端程式碼,輪詢檔案內容是否有變更,但這會造成輕微延遲。
編輯器外掛程式
下列限制僅適用於編輯器外掛程式。請勿執行下列操作:
使用資訊卡服務定義 UI
編輯器外掛程式目前只能使用 HTML 和 CSS 定義 UI,無法使用資訊卡服務。
在行動裝置上使用編輯器外掛程式
編輯器外掛程式僅適用於電腦用戶端,不支援編輯器的行動應用程式。
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-01-30 (世界標準時間)。
[null,null,["上次更新時間:2025-01-30 (世界標準時間)。"],[[["\u003cp\u003eGoogle Workspace add-ons enhance existing features but cannot modify or restrict core functionalities or the sharing model.\u003c/p\u003e\n"],["\u003cp\u003eAdd-ons cannot directly charge users for installation or contain ads, though external payment integrations are permitted.\u003c/p\u003e\n"],["\u003cp\u003eWhile add-ons can respond to specific triggers, they generally cannot detect user actions outside the add-on's scope.\u003c/p\u003e\n"],["\u003cp\u003eEditor add-ons are limited to desktop environments and utilize HTML/CSS for UI design instead of the Card service.\u003c/p\u003e\n"]]],["Add-ons must not alter existing Google Workspace features or sharing models. They cannot charge users for installation or display ads. Add-ons have limited ability to detect user actions outside of the add-on, except for specific triggers, although content changes can be polled with a delay. Editor add-ons are restricted to HTML/CSS UIs (no Card service) and are only available on desktop, not mobile apps.\n"],null,["# Restrictions\n\nThere are a few restrictions on what add-ons can do. Improve your users'\noverall experience by avoiding these pitfalls.\n\nGeneral restrictions\n--------------------\n\nThe following restrictions apply to all add-ons. Don't do the following:\n\n### Change features in Google Workspace\n\nThe add-ons framework is designed to enhance\nGoogle Workspace applications---not to\nadd limits. Consequently, you can't alter existing features or lock down the\nGoogle Workspace document sharing model.\n\n### Charge users to install\n\nWe don't provide a way to charge users for installing add-ons, and add-ons\n[can't include ads](/apps-script/terms). However, you can roll your own payment\nsystem or call into an existing billing database. Your add-on can connect to\nnon-Google services that bill users.\n\n### Detect many events\n\nExcept for [certain triggers](/workspace/add-ons/concepts/triggers), add-ons can't\ntell what a user does outside the add-on itself. For example, you can't detect\nwhen the user clicks on the host application toolbar. It is possible to poll for\nchanges in a file's contents from a sidebar's client-side code, although\nyou'll always have a slight delay.\n\nEditor add-ons\n--------------\n\nThe following restrictions only apply to Editor add-ons. Don't do the following:\n\n### Define UIs with the Card service\n\nEditor add-ons can currently only define a UI using HTML and CSS, not the\n[Card service](/apps-script/reference/card-service/card-service).\n\n### Use Editor add-ons on mobile\n\nEditor add-ons are only available on desktop clients, not the mobile apps\nfor the editors."]]