制限
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
アドオンでできることにはいくつかの制限があります。これらの落とし穴を回避して、ユーザーの全体的なエクスペリエンスを改善しましょう。
一般的な制限事項
すべてのアドオンには、次の制限が適用されます。次のような対応は行わないでください。
Google Workspace の機能を変更する
アドオン フレームワークは、制限を追加するのではなく、Google Workspace アプリケーションを強化するように設計されています。そのため、既存の機能を変更したり、Google Workspace のドキュメント共有モデルをロックダウンしたりすることはできません。
インストール料金をユーザーに請求する
アドオンのインストールに対してユーザーに料金を請求する方法は提供されていません。また、アドオンに広告を含めることはできません。ただし、独自のお支払いシステムをロールアウトするか、既存の課金データベースを呼び出すことができます。アドオンは、ユーザーに請求を行う Google 以外のサービスに接続できます。
多くのイベントを検出する
特定のトリガーを除き、アドオンはアドオン自体の外部でユーザーが何をしているかを知ることはできません。たとえば、ユーザーがホスト アプリケーションのツールバーをクリックしたタイミングを検出することはできません。サイドバーのクライアントサイド コードからファイルの内容の変更をポーリングすることは可能ですが、常にわずかな遅延が発生します。
エディタのアドオン
次の制限は、エディタ アドオンにのみ適用されます。次のような対応は行わないでください。
Card サービスを使用して UI を定義する
現時点では、エディタ アドオンで定義できる UI は、カード サービスではなく、HTML と CSS を使用した UI のみです。
モバイルでエディタのアドオンを使用する
エディタ アドオンは、エディタ向けのモバイルアプリではなく、パソコン クライアントでのみ使用できます。
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2025-01-30 UTC。
[null,null,["最終更新日 2025-01-30 UTC。"],[[["\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."]]