Provide attachment icons
Calendar add-ons let developers add custom attachments to Calendar events
through the use of the
EventAttachmentTrigger.
These custom attachments can optionally specify an image URL which is displayed
as the attachment's icon inside of the Calendar event. Since these images are
used within Calendar directly, you must host them on Google's infrastructure.
Specifically, you must use the same icon that you use for the add-ons
Google Workspace Marketplace
store listing.
To obtain an image URL that can be used as the attachment.iconUrl
:
- Open the
Google Cloud console.
- If necessary, switch to the project hosting your add-on.
- At the top-left, click Menu menu >
APIs & Services.
- In the list at the bottom, click Google Workspace Marketplace SDK.
- Select the Store Listing tab.
- In the Graphics Assets section, upload the intended attachment icon image
as an Application Icon 32x32.
- Copy the resulting image URL and use it as the
attachment.iconUrl
.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-02-13 UTC.
[null,null,["Last updated 2025-02-13 UTC."],[[["Calendar add-ons allow developers to add custom attachments with optional icons to Calendar events using the EventAttachmentTrigger."],["Attachment icons must be hosted on Google's infrastructure and be the same icon used for the add-on's Google Workspace Marketplace store listing."],["To obtain the image URL for attachment icons, developers need to upload the icon as an \"Application Icon 32x32\" in the Google Cloud console's Google Workspace Marketplace SDK Store Listing section and use the resulting URL."]]],["Developers can add custom attachments to Calendar events using the `EventAttachmentTrigger`. These attachments can have icons, which must be hosted on Google's infrastructure. To get a valid icon URL, navigate to the Google Cloud console, switch to the add-on's project, and access the Google Workspace Marketplace SDK. In the \"Store Listing\" tab's \"Graphics Assets\" section, upload the icon image (32x32) as an \"Application Icon\", then copy and use the generated image URL as the `attachment.iconUrl`.\n"]]