insert_channel_banner: Insert Channel Banner

View source: R/insert_channel_banner.R

insert_channel_bannerR Documentation

Insert Channel Banner

Description

Uploads a channel banner image to YouTube. The image must be a JPEG, PNG, or GIF. The maximum file size is 6MB. This returns a URL that you can then use with 'update_channel' (if implemented) or through the standard API to set the channel banner.

Usage

insert_channel_banner(file, channel_id = NULL, ...)

Arguments

file

Character. Path to the banner image file.

channel_id

Character. Optional. The channel to upload the banner for (needed if using service accounts).

...

Additional arguments passed to POST.

Value

A list containing the response from the API, including the 'url' for the banner.

References

https://developers.google.com/youtube/v3/docs/channelBanners/insert

Examples

## Not run: 
# Set API token via yt_oauth() first

banner <- insert_channel_banner(file = "banner.jpg")
print(banner$content$url)

## End(Not run)

tuber documentation built on March 25, 2026, 9:08 a.m.