ChannelBanners
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
channelBanner
रिसॉर्स में वह यूआरएल होता है जिसका इस्तेमाल, चैनल के लिए बैनर इमेज के तौर पर, हाल ही में अपलोड की गई इमेज सेट करने के लिए किया जाता है.
तरीके
एपीआई, channelBanners
संसाधनों के लिए इन तरीकों का इस्तेमाल करता है:
- शामिल करें
- YouTube पर चैनल की बैनर इमेज अपलोड करता है. इस तरीके में, चैनल के बैनर की इमेज अपडेट करने की तीन चरणों वाली प्रोसेस के पहले दो चरण दिखाए गए हैं:
- YouTube पर बाइनरी इमेज का डेटा अपलोड करने के लिए,
channelBanners.insert
तरीके को कॉल करें. इमेज का आसपेक्ट रेशियो 16:9 होना चाहिए और उसका साइज़ कम से कम 2048 x 1152 पिक्सल होना चाहिए. हमारा सुझाव है कि आप 2560 x 1440 पिक्सल की इमेज अपलोड करें. - पहले चरण के लिए एपीआई से मिले रिस्पॉन्स से,
url
प्रॉपर्टी की वैल्यू निकालें. - चैनल की ब्रैंडिंग सेटिंग अपडेट करने के लिए,
channels.update
तरीका अपनाएं. brandingSettings.image.bannerExternalUrl
प्रॉपर्टी की वैल्यू को दूसरे चरण में मिले यूआरएल पर सेट करें.
संसाधन का प्रतिनिधित्व
यहां दिया गया JSON स्ट्रक्चर, channelBanners
संसाधन का फ़ॉर्मैट दिखाता है:
{
"kind": "youtube#channelBannerResource",
"etag": etag,
"url": string
}
प्रॉपर्टी
इस टेबल में, इस संसाधन में दिखने वाली प्रॉपर्टी के बारे में बताया गया है:
प्रॉपर्टी |
kind |
string
एपीआई संसाधन के टाइप की पहचान करता है. वैल्यू youtube#channelBannerResource होगी. |
etag |
etag
इस संसाधन का Etag. |
url |
string
बैनर इमेज का यूआरएल. channelBanners.insert तरीके को कॉल करने के बाद, एपीआई रिस्पॉन्स से यह वैल्यू निकालें. इसके बाद, channels.update मेथड को कॉल करें और किसी चैनल के लिए बैनर इमेज सेट करने के लिए, यूआरएल को brandingSettings.image.bannerExternalUrl प्रॉपर्टी की वैल्यू के तौर पर सेट करें. |
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 2025-08-21 (UTC) को अपडेट किया गया.
[[["समझने में आसान है","easyToUnderstand","thumb-up"],["मेरी समस्या हल हो गई","solvedMyProblem","thumb-up"],["अन्य","otherUp","thumb-up"]],[["वह जानकारी मौजूद नहीं है जो मुझे चाहिए","missingTheInformationINeed","thumb-down"],["बहुत मुश्किल है / बहुत सारे चरण हैं","tooComplicatedTooManySteps","thumb-down"],["पुराना","outOfDate","thumb-down"],["अनुवाद से जुड़ी समस्या","translationIssue","thumb-down"],["सैंपल / कोड से जुड़ी समस्या","samplesCodeIssue","thumb-down"],["अन्य","otherDown","thumb-down"]],["आखिरी बार 2025-08-21 (UTC) को अपडेट किया गया."],[[["\u003cp\u003eThe \u003ccode\u003echannelBanner\u003c/code\u003e resource provides the URL needed to set a newly uploaded image as a channel's banner image.\u003c/p\u003e\n"],["\u003cp\u003eUpdating a channel banner image involves a three-step process, starting with uploading the image using the \u003ccode\u003echannelBanners.insert\u003c/code\u003e method.\u003c/p\u003e\n"],["\u003cp\u003eThe uploaded banner image must have a 16:9 aspect ratio and be at least 2048x1152 pixels, with 2560x1440 recommended.\u003c/p\u003e\n"],["\u003cp\u003eAfter uploading, the \u003ccode\u003eurl\u003c/code\u003e property from the API response is extracted, and then used in the \u003ccode\u003echannels.update\u003c/code\u003e method, specifically in the \u003ccode\u003ebrandingSettings.image.bannerExternalUrl\u003c/code\u003e property, to set the banner image.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003echannelBanners\u003c/code\u003e resource contains \u003ccode\u003ekind\u003c/code\u003e, \u003ccode\u003eetag\u003c/code\u003e, and \u003ccode\u003eurl\u003c/code\u003e properties, with the \u003ccode\u003eurl\u003c/code\u003e property holding the banner image's URL.\u003c/p\u003e\n"]]],["The `channelBanner` resource provides a URL for setting a channel's banner image. Updating a banner involves three steps: first, use `channelBanners.insert` to upload an image (16:9 aspect ratio, at least 2048x1152 pixels). Second, extract the `url` from the response. Third, use `channels.update`, setting `brandingSettings.image.bannerExternalUrl` to the extracted URL. The resource includes `kind` (`youtube#channelBannerResource`), `etag`, and the banner image's `url`.\n"],null,[]]