अटैचमेंट के आइकॉन दें
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
Calendar ऐड-ऑन की मदद से डेवलपर, Calendar इवेंट में कस्टम अटैचमेंट जोड़ सकते हैं. इसके लिए, उन्हें EventAttachmentTrigger का इस्तेमाल करना होगा.
इन कस्टम अटैचमेंट में, इमेज का यूआरएल भी दिया जा सकता है. यह यूआरएल, Calendar इवेंट में अटैचमेंट के आइकॉन के तौर पर दिखता है. इन इमेज का इस्तेमाल सीधे तौर पर Calendar में किया जाता है. इसलिए, आपको इन्हें Google के इन्फ़्रास्ट्रक्चर पर होस्ट करना होगा.
खास तौर पर, आपको उसी आइकॉन का इस्तेमाल करना होगा जिसका इस्तेमाल आपने ऐड-ऑन के लिए Google Workspace Marketplace की स्टोर लिस्टिंग में किया है.
attachment.iconUrl
के तौर पर इस्तेमाल किए जा सकने वाले इमेज यूआरएल को पाने के लिए:
- Google Cloud Console खोलें.
- अगर ज़रूरी हो, तो उस प्रोजेक्ट पर स्विच करें जो आपके ऐड-ऑन को होस्ट कर रहा है.
- सबसे ऊपर बाईं ओर, मेन्यू menu >
एपीआई और सेवाएं पर क्लिक करें.
- सबसे नीचे मौजूद सूची में, Google Workspace Marketplace SDK पर क्लिक करें.
- स्टोर पेज टैब को चुनें.
- ग्राफ़िक ऐसेट सेक्शन में, अटैचमेंट आइकॉन की इमेज को ऐप्लिकेशन आइकॉन 32x32 के तौर पर अपलोड करें.
- इसके बाद, इमेज का यूआरएल कॉपी करें और इसे
attachment.iconUrl
के तौर पर इस्तेमाल करें.
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 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`."]]