ChannelBanners
সেভ করা পৃষ্ঠা গুছিয়ে রাখতে 'সংগ্রহ' ব্যবহার করুন
আপনার পছন্দ অনুযায়ী কন্টেন্ট সেভ করুন ও সঠিক বিভাগে রাখুন।
একটি channelBanner
রিসোর্সে এমন URL রয়েছে যা আপনি একটি চ্যানেলের জন্য ব্যানার চিত্র হিসাবে একটি নতুন আপলোড করা ছবি সেট করতে ব্যবহার করবেন৷
পদ্ধতি
API channelBanners
সংস্থানগুলির জন্য নিম্নলিখিত পদ্ধতিগুলিকে সমর্থন করে:
- insert
- ইউটিউবে একটি চ্যানেল ব্যানার ইমেজ আপলোড করে। এই পদ্ধতিটি একটি চ্যানেলের জন্য ব্যানার ইমেজ আপডেট করার জন্য একটি তিন-পদক্ষেপ প্রক্রিয়ার প্রথম দুটি ধাপ উপস্থাপন করে:
- YouTube-এ বাইনারি ইমেজ ডেটা আপলোড করতে
channelBanners.insert
পদ্ধতিতে কল করুন। ছবির একটি 16:9 অনুপাত থাকতে হবে এবং কমপক্ষে 2048x1152 পিক্সেল হতে হবে। আমরা একটি 2560px x 1440px চিত্র আপলোড করার পরামর্শ দিই। - পদক্ষেপ 1 এর জন্য API যে প্রতিক্রিয়া প্রদান করে তা থেকে
url
সম্পত্তির মান বের করুন। - চ্যানেলের ব্র্যান্ডিং সেটিংস আপডেট করতে
channels.update
পদ্ধতিতে কল করুন। brandingSettings.image.bannerExternalUrl
প্রপার্টির মান ধাপ 2 এ প্রাপ্ত URL-এ সেট করুন।
সম্পদ প্রতিনিধিত্ব
নিম্নলিখিত JSON গঠন একটি channelBanners
সম্পদের বিন্যাস দেখায়:
{
"kind": "youtube#channelBannerResource",
"etag": etag,
"url": string
}
বৈশিষ্ট্য
নিম্নলিখিত সারণী এই সম্পদে প্রদর্শিত বৈশিষ্ট্যগুলিকে সংজ্ঞায়িত করে:
বৈশিষ্ট্য |
---|
kind | string API সম্পদের ধরন সনাক্ত করে। মান হবে youtube#channelBannerResource । |
etag | etag এই সম্পদের Etag. |
url | string ব্যানার ছবির URL। channelBanners.insert পদ্ধতিতে কল করার পরে, API প্রতিক্রিয়া থেকে এই মানটি বের করুন। তারপর channels.update পদ্ধতিতে কল করুন এবং একটি চ্যানেলের জন্য ব্যানার ইমেজ সেট করতে brandingSettings.image.bannerExternalUrl প্রপার্টির মান হিসাবে URL সেট করুন। |
অন্য কিছু উল্লেখ না করা থাকলে, এই পৃষ্ঠার কন্টেন্ট Creative Commons Attribution 4.0 License-এর অধীনে এবং কোডের নমুনাগুলি Apache 2.0 License-এর অধীনে লাইসেন্স প্রাপ্ত। আরও জানতে, Google Developers সাইট নীতি দেখুন। Java হল Oracle এবং/অথবা তার অ্যাফিলিয়েট সংস্থার রেজিস্টার্ড ট্রেডমার্ক।
2025-08-21 UTC-তে শেষবার আপডেট করা হয়েছে।
[null,null,["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,["# ChannelBanners\n\nA `channelBanner` resource contains the URL that you would use to set a newly uploaded image as the banner image for a channel.\n\nMethods\n-------\n\nThe API supports the following methods for `channelBanners` resources:\n\n[insert](/youtube/v3/docs/channelBanners/insert)\n: Uploads a channel banner image to YouTube. This method represents the first two steps in a three-step process to update the banner image for a channel:\n\n 1. Call the [channelBanners.insert](/youtube/v3/docs/channelBanners/insert) method to upload the binary image data to YouTube. The image must have a 16:9 aspect ratio and be at least 2048x1152 pixels. We recommend uploading a 2560px by 1440px image.\n 2. Extract the `url` property's value from the response that the API returns for step 1.\n 3. Call the [channels.update](/youtube/v3/docs/channels/update) method to update the channel's branding settings. Set the [brandingSettings.image.bannerExternalUrl](/youtube/v3/docs/channels#brandingSettings.image.bannerExternalUrl) property's value to the URL obtained in step 2.\n\nResource representation\n-----------------------\n\nThe following JSON structure shows the format of a `channelBanners` resource: \n\n```text\n{\n \"kind\": \"youtube#channelBannerResource\",\n \"etag\": etag,\n \"url\": string\n}\n```\n\n### Properties\n\nThe following table defines the properties that appear in this resource:\n\n| Properties ||\n|--------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `kind` | `string` Identifies the API resource's type. The value will be `youtube#channelBannerResource`. |\n| `etag` | `etag` The Etag of this resource. |\n| `url` | `string` The banner image's URL. After calling the [channelBanners.insert](/youtube/v3/docs/channelBanners/insert) method, extract this value from the API response. Then call the [channels.update](/youtube/v3/docs/channels/update) method, and set the URL as the value of the [brandingSettings.image.bannerExternalUrl](/youtube/v3/docs/channels#brandingSettings.image.bannerExternalUrl) property to set the banner image for a channel. |"]]