powered by
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.
insert_channel_banner(file, channel_id = NULL, ...)
A list containing the response from the API, including the `url` for the banner.
Character. Path to the banner image file.
Character. Optional. The channel to upload the banner for (needed if using service accounts).
Additional arguments passed to POST.
POST
https://developers.google.com/youtube/v3/docs/channelBanners/insert
if (FALSE) { # Set API token via yt_oauth() first banner <- insert_channel_banner(file = "banner.jpg") print(banner$content$url) }
Run the code above in your browser using DataLab