アドオンで Google スライドを拡張
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
Google スライドは、リアルタイムでの共同編集が可能な、カスタム スライドデッキをすばやく作成できる強力なツールを備えたクラウドベースのプレゼンテーション ソリューションです。
Google スライドは、ユーザーが新しいプレゼンテーションを作成したり、サードパーティ システムとの接続を確立したり、スライドのデータを他の Google Workspace アプリケーション(Google スプレッドシートなど)と統合したりするのに役立つアドオンで拡張できます。
他のユーザーが作成したスライド用アドオンは、Google Workspace Marketplace で確認できます。
対応策
Google スライドを拡張するアドオンでできることをいくつかご紹介します。
スライド アドオンは Apps Script を使用して構築されます。Apps Script を使用して Google スライドにアクセスし、管理する方法については、Google スライドの拡張をご覧ください。
プレゼンテーションの構成
Google スライドのプレゼンテーションはページで構成され、各ページにはテキスト ボックスや画像などの要素がいくつか含まれています。
Apps Script の Slides サービスには、スライドの組織構造を表す複数のクラス(Slide
や Shape
など)が用意されています。これらのクラスを使用すると、スライドのデータと動作を読み取って変更できます。
スライド プレゼンテーションの構成の詳細については、プレゼンテーションの構造をご覧ください。
トリガー
Apps Script のトリガーを使用すると、プレゼンテーションを開いたり、アドオンをインストールしたりしたときなど、特定の条件が満たされたときに、スクリプト プロジェクトが指定された関数を実行できるようになります。
スライド アドオンで使用できるトリガーと、その使用に適用される制限については、アドオンのトリガーをご覧ください。
関連情報
スライド アドオンの開発には、次の Apps Script ガイドが役立ちます。
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2025-07-31 UTC。
[null,null,["最終更新日 2025-07-31 UTC。"],[[["\u003cp\u003eGoogle Slides is a cloud-based presentation tool with real-time collaboration and robust features for creating custom presentations.\u003c/p\u003e\n"],["\u003cp\u003eSlides add-ons enhance Google Slides by allowing users to build presentations, connect to external systems, and integrate with other Google Workspace apps.\u003c/p\u003e\n"],["\u003cp\u003eDevelopers can utilize Apps Script and the Slides service to programmatically read, edit, format, and visualize Google Slides presentations.\u003c/p\u003e\n"],["\u003cp\u003eApps Script triggers can automate tasks within Google Slides by executing specific functions when predefined events occur, like opening a presentation.\u003c/p\u003e\n"],["\u003cp\u003eGoogle provides comprehensive documentation and guides to support developers in building and extending Google Slides functionality with add-ons.\u003c/p\u003e\n"]]],["Google Slides add-ons, built with Apps Script, extend Slides' functionality. Key actions include reading, editing, visualizing, and formatting slides using Apps Script's Slides service or the Google Slides API. Developers can create custom menus, dialogs, and sidebars with HTML and CSS, and set up triggers for specific events. Add-ons interact with presentation elements like slides and shapes, modifying data and behavior, with the option to install from the Google Workspace Marketplace.\n"],null,["# Extending Google Slides with add-ons\n\n[Google Slides](https://workspace.google.com/products/slides/) is a cloud-based\npresentation solution with real-time collaboration and powerful\ntools that let you quickly build custom slide decks.\n\nYou can extend Google Slides with add-ons that help users construct\nnew presentations, establish connectivity to third-party systems, and integrate\nyour Slides data with other Google Workspace\napplications (like Google Sheets).\n\nYou can see the Slides add-ons others have built on the\n[Google Workspace Marketplace](https://workspace.google.com/marketplace/category/works-with-slides).\n\nWhat you can do\n---------------\n\nHere are a few things you can do with an add-on that extends Google Slides:\n\n- You can read, edit, visualize, and format slides in Google Slides presentations using the built-in Apps Script [Slides service](/apps-script/reference/slides).\n- You can use the Apps Script [advanced Slides service](/apps-script/advanced/slides) to access the [Google Slides API](/workspace/slides/how-tos/overview) directly.\n- You can create [custom menus](/workspace/add-ons/concepts/menus) and define multiple [custom dialogs and sidebars](/workspace/add-ons/concepts/dialogs) interfaces using standard HTML and CSS.\n- You can create add-ons [triggers](#triggers) that run specified functions when certain triggering events occur.\n\nSlides add-ons are built using Apps Script. To learn more about how to access\nand manage Google Slides with Apps Script, see\n[Extending Google Slides](/apps-script/guides/slides).\n\nPresentation structure\n----------------------\n\nA Google Slides presentation consists of pages, each of which as some number\nof elements such as text boxes and images.\n\nThe Apps Script [Slides service](/apps-script/reference/slides)\nprovides several classes to represent organizational structures in Slides\n(such as [`Slide`](/apps-script/reference/slides/slide) and\n[`Shape`](/apps-script/reference/slides/shape)). You can use these classes to\nread and modify Slides data and behavior.\n\nTo learn more about how Slides presentations are organized, see\n[Structure of a presentation](/apps-script/guides/slides/presentations).\n\nTriggers\n--------\n\nApps Script [triggers](/workspace/add-ons/concepts/editor-triggers) let a script project\nexecute a specified function when certain conditions are met, such as when\na presentation is opened or when an add-on is installed.\n\nSee [add-on triggers](/workspace/add-ons/concepts/editor-triggers) for more information\non what triggers can be used with Slides add-ons and what restrictions apply\nto their use.\n\nFurther reading\n---------------\n\nThe following Apps Script guides may be helpful when developing Slides add-ons:\n\n- [Extending Google Slides](/apps-script/guides/slides)\n- [Structure of a presentation](/apps-script/guides/slides/presentations)\n- [Sizing and positioning page elements](/apps-script/guides/slides/moving-elements)\n- [Selecting items in a presentation](/apps-script/guides/slides/selecting)\n- [Editing and styling text](/apps-script/guides/slides/editing-styling)\n- [Lifecycle of an update](/apps-script/guides/slides/lifecycle)"]]