On a schedule
Rotate your YouTube channel banner from a Drive folder
Your channel banner changes on the schedule you set, using the next image in a Drive folder.
- Runs
- On a schedule
- Apps
- Google Drive, YouTube
- AI
- Not needed
- Access
- Drive read; YouTube youtube (manage)
Send this to your assistant
Create a ClickRuntime automation: every Monday at 8am, take the next image from my Banners folder in Drive and set it as my YouTube channel banner.
First time? Adding ClickRuntime to your assistant takes about two minutes.
Why use it
Why teams use this automation
A channel runs weekly themes and seasonal promotions, and the banner is the first thing visitors see. Changing it means remembering, finding the right image and going through YouTube Studio. It is usually still showing last month's promotion.
Rotating banners from a Drive folder keeps the channel looking current, with the design team simply adding images to the folder.
What you get out of it
A channel that looks current
The banner matches this week's theme or promotion, not one that ended weeks ago.
Designers just add images
The design team drops banners into a folder; no YouTube access needed.
Runs in order
Images are used in turn, so every design gets its week.
Set the schedule once
Weekly, daily or on set dates, it keeps going without reminders.
How it works
What happens, step by step
On the schedule you set, ClickRuntime lists the images in your Banners folder in Drive.
It picks the next image after the one it used last time.
The image is uploaded to YouTube and set as your channel banner.
It remembers which image it used, so the next run moves on to the following one.
Before it runs live
- Connect Google Drive
- Connect YouTube
What you get
Build your own
Need it to work differently?
Your own rules
Conditions, thresholds, filters and exceptions, written the way you'd explain them to a colleague.
Any number of apps
One automation can read from one app and update several others. Over 248 apps are ready, and anything with an API works too.
AI where it helps
Summaries, classification, extraction and drafts use ClickRuntime's built-in AI, with no extra key.
On a schedule or on each event
Runs as often as every 5 minutes, or the moment an app sends an event, and keeps track of what it already handled.
Changes you can ask for
- Run it at a different time, more or less often, or only on weekdays
- Add an AI step, for example to summarize, sort or draft a reply
- Add another app, for example also send it to Slack
- Combine it with other Google Drive and YouTube steps into one automation
Under the hood
The code that runs this automation
from google.oauth2.credentials import Credentials
from googleapiclient.discovery import build
from googleapiclient.http import MediaInMemoryUpload
from clickruntime import on_trigger, credentials, state
def api(name, version):
return build(name, version, credentials=Credentials(credentials.connection("google", "work")), cache_discovery=False)
FOLDER_ID = "banners-folder-id"
@on_trigger
def run(event):
drive, yt = api("drive", "v3").files(), api("youtube", "v3")
images = drive.list(q=f"'{FOLDER_ID}' in parents and mimeType contains 'image/' and trashed=false",
orderBy="name", fields="files(id,name,mimeType)").execute()["files"]
if not images:
return {"changed": False}
i = ((state.get("index") or -1) + 1) % len(images)
img = images[i]
data = drive.get_media(fileId=img["id"]).execute()
banner = yt.channelBanners().insert(media_body=MediaInMemoryUpload(data, mimetype=img["mimeType"])).execute()
channel = yt.channels().list(part="brandingSettings", mine=True).execute()["items"][0]
channel["brandingSettings"].setdefault("image", {})["bannerExternalUrl"] = banner["url"]
yt.channels().update(part="brandingSettings", body={"id": channel["id"], "brandingSettings": channel["brandingSettings"]}).execute()
state.set("index", i)
return {"banner": img["name"]}FAQ
Common questions
What size should the images be?
In what order are images used?
Can I tie a banner to a date?
What permissions does it need?
Does it need AI?
How many runs does it use?
Can I change how it works?
Related
You might also like
Publish one video a day from a Drive folder
One video from your Drive queue folder is published at the same time every day, and you get an email confirming it.
See how it worksPublish rendered videos from Drive to YouTube
Videos your editing or AI video tool saves to Drive are uploaded to YouTube with a title and description, then moved to a Published folder.
See how it worksUpload Drive videos to YouTube with AI titles, descriptions and tags
Drop a video into a Drive folder and it goes to YouTube with a search-friendly title, description and tags, and you get the link by email.
See how it worksKeep exploring
Set up “Rotate your YouTube channel banner from a Drive folder” from your assistant
Copy the prompt above, or connect your assistant first. Free plan, no credit card.