ChannelBanners
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
channelBanner
リソースには、新しくアップロードした画像をチャンネルのバナー画像として設定するために使用する URL が含まれています。
メソッド
この API は、channelBanners
リソースの次のメソッドをサポートしています。
- insert
- チャンネル バナー画像を YouTube にアップロードします。この方法は、チャンネルのバナー画像を更新する 3 段階のプロセスの最初の 2 つのステップを表します。
channelBanners.insert
メソッドを呼び出して、バイナリ画像データを YouTube にアップロードします。画像のアスペクト比は 16:9 で、2048 x 1152 ピクセル以上である必要があります。2,560×1,440 ピクセルの画像をアップロードすることをおすすめします。- ステップ 1 で API が返すレスポンスから
url
プロパティの値を抽出します。 channels.update
メソッドを呼び出して、チャンネルのブランディング設定を更新します。brandingSettings.image.bannerExternalUrl
プロパティの値を、手順 2 で取得した URL に設定します。
リソース表現
次の JSON 構造は、channelBanners
リソースの形式を示しています。
{
"kind": "youtube#channelBannerResource",
"etag": etag,
"url": string
}
プロパティ
次の表は、このリソースで使用されているプロパティの定義を示したものです。
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2024-12-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"]],["最終更新日 2024-12-21 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."]]],[]]