हम Data API को अपडेट कर रहे हैं, ताकि यह Shorts पर मिले व्यू की गिनती करने के तरीके से मेल खा सके.
ज़्यादा जानें
Watermarks
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
watermark
रिसॉर्स, किसी ऐसी इमेज की पहचान करता है जो किसी चैनल के वीडियो के प्लेबैक के दौरान दिखती है. आपके पास यह तय करने का विकल्प भी होता है कि इमेज को किस टारगेट चैनल से लिंक करना है. साथ ही, यह भी तय किया जा सकता है कि वीडियो चलाने के दौरान वॉटरमार्क कब दिखेगा और कितनी देर तक दिखेगा.
तरीके
एपीआई, watermarks
संसाधनों के लिए इन तरीकों का इस्तेमाल करता है:
- सेट करें
- YouTube पर वॉटरमार्क वाली इमेज अपलोड करता है और उसे किसी चैनल के लिए सेट करता है.
- unset
- चैनल की वॉटरमार्क वाली इमेज मिटाता है.
इसे अभी आज़माएं.
प्रॉपर्टी
यहां दी गई टेबल में, इस संसाधन में दिखने वाली प्रॉपर्टी के बारे में बताया गया है:
प्रॉपर्टी |
timing |
object
timing ऑब्जेक्ट में, वीडियो चलाने के दौरान उस समय की जानकारी होती है जब चैनल की वॉटरमार्क इमेज दिखेगी. |
timing.type |
string
यह टाइमिंग का वह तरीका है जिससे यह तय होता है कि वीडियो चलाने के दौरान, वाटरमार्क वाली इमेज कब दिखेगी. अगर वैल्यू offsetFromStart है, तो offsetMs फ़ील्ड, वीडियो की शुरुआत से ऑफ़सेट दिखाता है. अगर वैल्यू offsetFromEnd है, तो offsetMs फ़ील्ड, वीडियो के आखिर से ऑफ़सेट दिखाता है. |
timing.offsetMs |
unsigned long
यह समय ऑफ़सेट है. इसे मिलीसेकंड में तय किया जाता है. इससे यह तय होता है कि वीडियो चलाने के दौरान, प्रमोट किया गया आइटम कब दिखेगा. type प्रॉपर्टी की वैल्यू से यह तय होता है कि ऑफ़सेट को वीडियो की शुरुआत से मापा जाए या आखिर से. |
timing.durationMs |
unsigned long
यह वॉटरमार्क इमेज के दिखने की समयावधि होती है. इसकी वैल्यू मिलीसेकंड में होती है. |
position |
object
position ऑब्जेक्ट में, वीडियो में उस जगह की जानकारी होती है जहां वॉटरमार्क वाली इमेज दिखेगी. |
position.type |
string
वीडियो प्लेयर में प्रमोट किए गए आइटम को दिखाने का तरीका.
इस प्रॉपर्टी के लिए मान्य वैल्यू ये हैं: |
position.cornerPosition |
string
प्रमोशन वाला आइटम, प्लेयर के जिस कोने में दिखेगा. यह आइटम हमेशा प्लेयर के सबसे ऊपर दाएं कोने में दिखता है.
इस प्रॉपर्टी के लिए मान्य वैल्यू ये हैं: |
imageUrl |
string
चैनल के वॉटरमार्क की इमेज का यूआरएल. YouTube इस यूआरएल को जनरेट करेगा और watermark.set अनुरोध के जवाब के तौर पर, एपीआई में इसे दिखाएगा. |
imageBytes |
bytes
वॉटरमार्क वाली इमेज का साइज़, बाइट में. |
targetChannelId |
string
यह उस चैनल का YouTube चैनल आईडी होता है जिससे वॉटरमार्क इमेज लिंक होती है. |
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 2025-08-21 (UTC) को अपडेट किया गया.
[null,null,["आखिरी बार 2025-08-21 (UTC) को अपडेट किया गया."],[[["\u003cp\u003eA watermark resource displays an image during a channel's video playbacks, with the option to link to a target channel.\u003c/p\u003e\n"],["\u003cp\u003eThe API provides \u003ccode\u003eset\u003c/code\u003e and \u003ccode\u003eunset\u003c/code\u003e methods to upload and delete watermark images respectively.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003etiming\u003c/code\u003e object controls when a watermark appears, using \u003ccode\u003etype\u003c/code\u003e to determine if it's measured from the start or end of a video and \u003ccode\u003eoffsetMs\u003c/code\u003e for the time offset, with \u003ccode\u003edurationMs\u003c/code\u003e defining its display length.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eposition\u003c/code\u003e object defines the watermark's location within the video, with \u003ccode\u003ecornerPosition\u003c/code\u003e specifically determining the corner.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003etargetChannelId\u003c/code\u003e property is used to indicate the YouTube channel ID that the image links to when interacted with.\u003c/p\u003e\n"]]],["A watermark resource is an image displayed during a channel's video playbacks. Key actions include setting a watermark by uploading an image and specifying its `targetChannelId` for linking. The `timing` object defines when the image appears using `type`, `offsetMs`, and `durationMs`. The `position` object, set to 'corner', determines the spatial location, specifically `topRight`. Watermarks can be removed using the `unset` method. The API response provides an `imageUrl` and `imageBytes`.\n"],null,["# Watermarks\n\nA **watermark** resource identifies an image that displays during playbacks of a specified channel's videos. You can also specify a target channel to which the image will link as well as timing details that determine when the watermark appears during video playbacks and the length of time it is visible.\n\nMethods\n-------\n\nThe API supports the following methods for `watermarks` resources:\n\n[set](/youtube/v3/docs/watermarks/set)\n: Uploads a watermark image to YouTube and sets it for a channel.\n\n[unset](/youtube/v3/docs/watermarks/unset)\n: Deletes a channel's watermark image.\n [Try it now](/youtube/v3/docs/watermarks/unset#try-it).\n\nResource representation\n-----------------------\n\nThe JSON structure below shows the format of a `watermarks` resource: \n\n```carbon\n{\n \"#timing\": {\n \"#timing.type\": string,\n \"#timing.offsetMs\": unsigned long,\n \"#timing.durationMs\": unsigned long\n },\n \"#position\": {\n \"#position.type\": string,\n \"#position.cornerPosition\": string\n },\n \"#imageUrl\": string,\n \"#imageBytes\": bytes,\n \"#targetChannelId\": string\n}\n```\n\n### Properties\n\nThe following table defines the properties that appear in this resource:\n\n| Properties ||\n|---------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `timing` | `object` The `timing` object encapsulates information about the time during a video playback when a channel's watermark image will display. |\n| timing.`type` | `string` The timing method that determines when the watermark image is displayed during the video playback. If the value is `offsetFromStart`, then the `offsetMs` field represents an offset from the start of the video. If the value is `offsetFromEnd`, then the `offsetMs` field represents an offset from the end of the video. |\n| timing.`offsetMs` | `unsigned long` The time offset, specified in milliseconds, that determines when the promoted item appears during video playbacks. The `type` property's value determines whether the offset is measured from the start or end of the video. |\n| timing.`durationMs` | `unsigned long` The length of time, in milliseconds, that the watermark image should display. |\n| `position` | `object` The `position` object encapsulates information about the spatial position within the video where the watermark image will display. |\n| position.`type` | `string` The manner in which the promoted item is positioned in the video player. Valid values for this property are: - corner |\n| position.`cornerPosition` | `string` The corner of the player where the promoted item will appear. The item always appears in the upper right corner of the player. Valid values for this property are: - `topRight` |\n| `imageUrl` | `string` The URL for the channel's watermark image. YouTube will generate this URL and return it in the API response to a `watermark.set` request. |\n| `imageBytes` | `bytes` The size of the watermark image, in bytes. |\n| `targetChannelId` | `string` The YouTube channel ID of the channel that the watermark image links to. |"]]