Show / Hide Table of Contents

Class ChannelBannersResource

The "channelBanners" collection of methods.

Inheritance
System.Object
ChannelBannersResource
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Google.Apis.YouTube.v3
Assembly: Google.Apis.YouTube.v3.dll
Syntax
public class ChannelBannersResource

Constructors

ChannelBannersResource(IClientService)

Constructs a new resource.

Declaration
public ChannelBannersResource(IClientService service)
Parameters
Type Name Description
IClientService service

Methods

Insert(ChannelBannerResource)

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:

  • Call the channelBanners.insert method to upload the binary image data to YouTube. The image must have a 16:9 aspect ratio and be at least 2120x1192 pixels. - Extract the url property's value from the response that the API returns for step 1. - Call the channels.update method to update the channel's branding settings. Set the brandingSettings.image.bannerExternalUrl property's value to the URL obtained in step 2.
Declaration
public virtual ChannelBannersResource.InsertRequest Insert(ChannelBannerResource body)
Parameters
Type Name Description
ChannelBannerResource body

The body of the request.

Returns
Type Description
ChannelBannersResource.InsertRequest

Insert(ChannelBannerResource, Stream, String)

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:

  • Call the channelBanners.insert method to upload the binary image data to YouTube. The image must have a 16:9 aspect ratio and be at least 2120x1192 pixels. - Extract the url property's value from the response that the API returns for step 1. - Call the channels.update method to update the channel's branding settings. Set the brandingSettings.image.bannerExternalUrl property's value to the URL obtained in step 2.
Declaration
public virtual ChannelBannersResource.InsertMediaUpload Insert(ChannelBannerResource body, Stream stream, string contentType)
Parameters
Type Name Description
ChannelBannerResource body

The body of the request.

System.IO.Stream stream

The stream to upload.

System.String contentType

The content type of the stream to upload.

Returns
Type Description
ChannelBannersResource.InsertMediaUpload
Back to top