powered by
Uploads a channel banner image to YouTube. The image must be a JPEG or PNG. The maximum file size is 6 MB. 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, on_behalf_of_content_owner = NULL, ...)
A list containing the response from the API, including the `url` for the banner.
Character. Path to the banner image file.
Optional YouTube content-owner ID. This is only available to authorized YouTube content partners.
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