制限
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
アドオンでできることにはいくつかの制限があります。これらの落とし穴を回避して、ユーザーの全体的なエクスペリエンスを改善しましょう。
一般的な制限事項
すべてのアドオンには、次の制限が適用されます。次のような対応は行わないでください。
Google Workspace の機能を変更する
アドオン フレームワークは、制限を追加するのではなく、Google Workspace アプリケーションを拡張するように設計されています。そのため、既存の機能を変更したり、Google Workspace のドキュメント共有モデルをロックダウンしたりすることはできません。
ユーザーにインストール料金を請求する
アドオンのインストールに対してユーザーに料金を請求する方法は提供されていません。また、アドオンに広告を含めることはできません。ただし、独自のお支払いシステムをロールアウトしたり、既存の課金データベースを呼び出したりすることもできます。アドオンは、ユーザーに請求を行う Google 以外のサービスに接続できます。
多くのイベントを検出する
特定のトリガーを除き、アドオンはアドオン自体の外部でユーザーが何をしているかを知ることはできません。たとえば、ユーザーがホスト アプリケーションのツールバーをクリックしたタイミングを検出することはできません。サイドバーのクライアントサイド コードからファイルの内容の変更をポーリングすることは可能ですが、常にわずかな遅延が発生します。
Google Workspace アドオン
次の制限は、Google Workspace アドオンとカード サービスの使用にのみ適用されます。次のような対応は行わないでください。
すべての Google Workspace アプリを拡張する
Google Workspace アドオンは、Gmail、カレンダー、ドライブ、Meet、ドキュメント、スプレッドシート、スライドのみを拡張できます。最終的には、Google Workspace アドオンを使用して他の Google Workspace アプリケーションを拡張できるようになります。
エディタのドキュメント コンテキスト
Google Workspace アドオンは、エディタでドキュメント コンテキストの使用をまだサポートしていません。つまり、SpreadsheetApp.getActiveSpreadsheet()
などのメソッドを使用して現在のドキュメントを取得することはできません。
HTML/CSS またはクライアントサイド スクリプトを使用する
Google Workspace アドオンは、カードベースのインターフェースを使用する必要があります。エディタ アドオンでサポートされている HTML/CSS インターフェースは使用できません。Google Workspace アドオンは、ウィジェット ベースのアプローチでユーザー インターフェースを構築します。これにより、デスクトップ プラットフォームとモバイル プラットフォームの両方でアドオンを適切に動作させることができます。各プラットフォーム用のインターフェースを構築する必要はありません。
モバイル サポートの完全性
現時点では、Google Workspace アドオンはデスクトップ ウェブ クライアントで機能します。コンテキスト トリガー(Gmail メッセージの読み上げ)は、Gmail モバイルアプリ内からもサポートされています。コンテキストに依存しないホームページは、Gmail、カレンダー、ドライブのモバイルアプリではまだ利用できません。Google Workspace アドオンは、モバイル ウェブブラウザではご利用いただけません。
Apps Script トリガーを使用する
Google Workspace アドオンで Apps Script のシンプルなトリガーを作成または使用することはできません。
SVG 画像を使用する
現在、カード サービスのカードとウィジェットで SVG 画像を使用できません。
パフォーマンス上の理由から、カードに 100 個を超えるウィジェットや 100 個を超えるカード セクションを追加することはできません。
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 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, but do not fundamentally change, existing Google Workspace features.\u003c/p\u003e\n"],["\u003cp\u003eAdd-ons cannot directly charge users for installation or include ads but can integrate with external billing systems.\u003c/p\u003e\n"],["\u003cp\u003eAdd-on functionality is limited in terms of event detection and contextual triggering within certain Google Workspace apps.\u003c/p\u003e\n"],["\u003cp\u003eGoogle Workspace add-ons use a card-based interface system, rather than traditional HTML, CSS, or client-side scripting.\u003c/p\u003e\n"],["\u003cp\u003eWhile add-ons are largely desktop-focused, some contextual triggering is supported within the Gmail mobile app.\u003c/p\u003e\n"]]],["Add-ons are restricted from altering Google Workspace features, charging users for installation, or detecting user actions outside the add-on. Google Workspace add-ons are limited to Gmail, Calendar, Drive, Meet, Docs, Sheets, and Slides, and must use card-based interfaces, not HTML/CSS. They cannot access document context in editors or utilize Apps Script triggers. Additionally, SVG images and exceeding 100 widgets per card are prohibited. Full mobile support is also unavailable, and only desktop web clients are supported.\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\nGoogle Workspace add-ons\n------------------------\n\nThe following restrictions only apply to\nGoogle Workspace add-ons and the use of the\n[Card service](/apps-script/reference/card-service/card-service). Don't do the following:\n\n### Extend all Google Workspace apps\n\nGoogle Workspace add-ons can only extend Gmail,\nCalendar, Drive, Meet, Docs, Sheets, and Slides. Eventually Google Workspace add-ons will be able to extend other Google Workspace\napplications.\n\n### Document context in editors\n\nGoogle Workspace add-ons don't yet support the use of\ndocument context in editors. That is, you can't use methods such as\n[`SpreadsheetApp.getActiveSpreadsheet()`](/apps-script/reference/spreadsheet/spreadsheet-app#getactivespreadsheet)\nto acquire the current document.\n\n### Use HTML/CSS or client-side scripting\n\nGoogle Workspace add-ons must use card-based\ninterfaces. The HTML/CSS interfaces supported by Editor add-ons can't be used.\nGoogle Workspace add-ons use a\n[widget-based](/workspace/add-ons/concepts/widgets) approach to building user\ninterfaces. This lets the add-on work well on desktop and mobile platforms\nwithout requiring you to build an interface for each.\n\n### Full mobile support\n\nFor the time being, Google Workspace add-ons function\non desktop web clients. Contextual triggering (that is, Gmail message reading)\nis also supported from within the Gmail mobile app. Non-contextual homepages\nare not yet available from the Gmail, Calendar, or Drive mobile apps.\nGoogle Workspace add-ons are not\navailable from mobile web browsers.\n\n### Use Apps Script triggers\n\nYou can't create or use Apps Script\n[simple triggers](/apps-script/guides/triggers) in a\nGoogle Workspace add-on.\n\n### Use SVG Images\n\nYou can't currently use SVG images with\n[Card service](/apps-script/reference/card-service/card-service) cards and widgets.\n\n### Have more than 100 widgets\n\nFor performance reasons, you can't add more than 100 widgets or 100 card\nsections to a card."]]