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 > 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
.