Symbole für Anhänge angeben
Mit Kalender-Add-ons können Entwickler Kalenderterminen über den EventAttachmentTrigger benutzerdefinierte Anhänge hinzufügen.
Für diese benutzerdefinierten Anhänge kann optional eine Bild-URL angegeben werden, die im Kalenderereignis als Symbol für den Anhang angezeigt wird. Da diese Bilder direkt in Google Kalender verwendet werden, müssen Sie sie in der Google-Infrastruktur hosten.
Sie müssen dasselbe Symbol verwenden, das Sie für die Add-ons im Google Workspace Marketplace-Shop verwenden.
So rufen Sie eine Bild-URL ab, die als attachment.iconUrl
verwendet werden kann:
- Öffnen Sie die Google Cloud Console.
- Wechseln Sie bei Bedarf zum Projekt, in dem Ihr Add-on gehostet wird.
- Klicken Sie links oben auf das Dreistrich-Menü menu > APIs & Dienste.
- Klicken Sie in der Liste unten auf Google Workspace Marketplace SDK.
- Wählen Sie den Tab Store-Eintrag aus.
- Laden Sie im Bereich Grafik-Assets das gewünschte Bild für das Anhangsymbol als Anwendungssymbol 32 x 32 hoch.
- Kopieren Sie die resultierende Bild-URL und verwenden Sie sie als
attachment.iconUrl
.
Sofern nicht anders angegeben, sind die Inhalte dieser Seite unter der Creative Commons Attribution 4.0 License und Codebeispiele unter der Apache 2.0 License lizenziert. Weitere Informationen finden Sie in den Websiterichtlinien von Google Developers. Java ist eine eingetragene Marke von Oracle und/oder seinen Partnern.
Zuletzt aktualisiert: 2025-02-16 (UTC).
[null,null,["Zuletzt aktualisiert: 2025-02-16 (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"]]