첨부파일 아이콘 제공
컬렉션을 사용해 정리하기
내 환경설정을 기준으로 콘텐츠를 저장하고 분류하세요.
Calendar 부가기능을 사용하면 개발자가 EventAttachmentTrigger를 사용하여 Calendar 일정에 맞춤 첨부파일을 추가할 수 있습니다.
이러한 맞춤 첨부파일은 캘린더 일정 내에서 첨부파일의 아이콘으로 표시되는 이미지 URL을 선택적으로 지정할 수 있습니다. 이러한 이미지는 Calendar 내에서 직접 사용되므로 Google 인프라에서 호스팅해야 합니다.
특히 부가기능 Google Workspace Marketplace 스토어 등록정보에 사용하는 것과 동일한 아이콘을 사용해야 합니다.
attachment.iconUrl
로 사용할 수 있는 이미지 URL을 가져오려면 다음 단계를 따르세요.
- Google Cloud 콘솔을 엽니다.
- 필요한 경우 부가기능을 호스팅하는 프로젝트로 전환합니다.
- 왼쪽 상단에서 메뉴 menu > API 및 서비스를 클릭합니다.
- 하단의 목록에서 Google Workspace Marketplace SDK를 클릭합니다.
- 스토어 등록정보 탭을 선택합니다.
- 그래픽 애셋 섹션에서 의도한 첨부파일 아이콘 이미지를 애플리케이션 아이콘 32x32로 업로드합니다.
- 결과 이미지 URL을 복사하여
attachment.iconUrl
로 사용합니다.
달리 명시되지 않는 한 이 페이지의 콘텐츠에는 Creative Commons Attribution 4.0 라이선스에 따라 라이선스가 부여되며, 코드 샘플에는 Apache 2.0 라이선스에 따라 라이선스가 부여됩니다. 자세한 내용은 Google Developers 사이트 정책을 참조하세요. 자바는 Oracle 및/또는 Oracle 계열사의 등록 상표입니다.
최종 업데이트: 2025-08-29(UTC)
[null,null,["최종 업데이트: 2025-08-29(UTC)"],[[["\u003cp\u003eCalendar add-ons allow developers to add custom attachments with optional icons to Calendar events using the EventAttachmentTrigger.\u003c/p\u003e\n"],["\u003cp\u003eAttachment icons must be hosted on Google's infrastructure and be the same icon used for the add-on's Google Workspace Marketplace store listing.\u003c/p\u003e\n"],["\u003cp\u003eTo 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.\u003c/p\u003e\n"]]],["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"],null,["# Provide attachment icons\n\nCalendar add-ons let developers add custom attachments to Calendar events\nthrough the use of the\n[EventAttachmentTrigger](/apps-script/manifest/calendar-addons#eventattachmenttrigger).\nThese custom attachments can optionally specify an image URL which is displayed\nas the attachment's icon inside of the Calendar event. Since these images are\nused within Calendar directly, you must host them on Google's infrastructure.\nSpecifically, you must use the same icon that you use for the add-ons\nGoogle Workspace Marketplace\n[store listing](/workspace/marketplace/create-listing).\n\nTo obtain an image URL that can be used as the `attachment.iconUrl`:\n\n1. Open the [Google Cloud console](https://console.cloud.google.com/).\n2. If necessary, switch to the project hosting your add-on.\n3. At the top-left, click Menu menu \\\u003e **APIs \\& Services**.\n4. In the list at the bottom, click **Google Workspace Marketplace SDK**.\n5. Select the **Store Listing** tab.\n6. In the **Graphics Assets** section, upload the intended attachment icon image as an **Application Icon 32x32**.\n7. Copy the resulting image URL and use it as the `attachment.iconUrl`."]]