ইউটিউবে একটি চ্যানেল ব্যানার ইমেজ আপলোড করে। এই পদ্ধতিটি একটি চ্যানেলের জন্য ব্যানার ইমেজ আপডেট করার জন্য একটি তিন-পদক্ষেপ প্রক্রিয়ার প্রথম দুটি ধাপ উপস্থাপন করে:
YouTube-এ বাইনারি ইমেজ ডেটা আপলোড করতে channelBanners.insert পদ্ধতিতে কল করুন। ছবির একটি 16:9 অনুপাত থাকতে হবে এবং কমপক্ষে 2048x1152 পিক্সেল হতে হবে। আমরা একটি 2560px x 1440px চিত্র আপলোড করার পরামর্শ দিই।
পদক্ষেপ 1 এর জন্য API যে প্রতিক্রিয়া প্রদান করে তা থেকে url সম্পত্তির মান বের করুন।
নিম্নলিখিত সারণী এই সম্পদে প্রদর্শিত বৈশিষ্ট্যগুলিকে সংজ্ঞায়িত করে:
বৈশিষ্ট্য
kind
string API সম্পদের ধরন সনাক্ত করে। মান হবে youtube#channelBannerResource ।
etag
etag এই সম্পদের Etag.
url
string ব্যানার ছবির URL। channelBanners.insert পদ্ধতিতে কল করার পরে, API প্রতিক্রিয়া থেকে এই মানটি বের করুন। তারপর channels.update পদ্ধতিতে কল করুন এবং একটি চ্যানেলের জন্য ব্যানার ইমেজ সেট করতে brandingSettings.image.bannerExternalUrl প্রপার্টির মান হিসাবে URL সেট করুন।
[null,null,["2025-01-05 UTC-তে শেষবার আপডেট করা হয়েছে।"],[[["The `channelBanner` resource provides the URL needed to set a newly uploaded image as a channel's banner image."],["Updating a channel banner image involves a three-step process, starting with uploading the image using the `channelBanners.insert` method."],["The uploaded banner image must have a 16:9 aspect ratio and be at least 2048x1152 pixels, with 2560x1440 recommended."],["After uploading, the `url` property from the API response is extracted, and then used in the `channels.update` method, specifically in the `brandingSettings.image.bannerExternalUrl` property, to set the banner image."],["The `channelBanners` resource contains `kind`, `etag`, and `url` properties, with the `url` property holding the banner image's URL."]]],["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"]]