YouTube pre-roll ads
Use this when someone wants the ad that plays before a YouTube video: a skippable in-stream ad, a non-skippable one, or a 6-second bumper. It makes one finished 15-second ad at 16:9, a 6-second bumper cut from the same footage, and two more versions as scripts. For a 30 or 60 second TV-style commercial use ctv-ads; for vertical video (Shorts) use meta-video-ads. Read either with playbook_get. This playbook builds on ctv-ads and says so where it leans on it.
Work on your own as far as you can: ask only for what you can't find, then go. Picture where the ad runs. Someone tapped a video they chose. Your ad is in the way, the sound is on, and a countdown to a Skip button has started. What follows is what usually works, not a script.
Three things rule this format:
- The skip. After 5 seconds the viewer can leave. By then they must have seen and heard the brand, know what it sells, and have a reason to stay. Plan the first five seconds first, and judge the ad by the single frame at the 5-second mark.
- The sound is on. Unlike a feed, pre-roll is heard. Say the brand name out loud before 5 seconds, and let voice and on-screen words say the same thing at the same moment.
- The player owns the bottom of the frame. The Skip button, the advertiser's button and the progress bar sit over the lower third. Google publishes a safe zone. The logo, the words and the product's label live inside it.
Video is the cost here. Plan the whole ad on paper before you generate a second of it.
It needs a shell with ffmpeg and Chrome. Without one, stop after step 2 and hand over the scripts.
Before you start
- You need the brand's website. Ask once for the page the ad opens and the goal: awareness or sales. If nobody answers, assume sales and the product page.
- The default job: one 15-second ad and its 6-second bumper as 480p drafts, two more versions as scripts, a contact sheet and a mockup. The 15 runs as skippable or non-skippable.
- Work in two passes like
ctv-ads: a 480p draft the person approves, then the same takes finished at 1080p. Google asks for 720p at least, so a 480p file is for approval, never for upload. - Agree a spending cap. Quote before every paid run with
estimate: true. A second of 480p video costs about 15 cents, so a 15-second take is about $2.30 and each retake the same again. - Pass
playbook: "youtube-pre-roll-ads"and onebudget_tagon everyruncall, and anidempotency_keyon paid ones. - Keep a ledger: each take's run id, prompt and references. The 1080p pass needs the draft run ids, and drafts can only be finished for 7 days.
The specs
Google's own numbers, from Google Ads Help: "About video ad formats", "Skippable in-stream ads", "Non-skippable in-stream ads" and "About video ad specs" (which holds the safe zone drawings). Re-check them before a big job. Ad help pages drift, and other guides quote old limits.
| Format | Length | Skip | Paid by | |---|---|---|---| | Skippable in-stream | Any. Google suggests 15 to 20 s | After 5 s | View or impression | | Non-skippable in-stream | 7 to 15 s. 16 to 30 s on connected TV, 16:9 only | Never | Impression | | Bumper | 6 s or shorter | Never | Impression |
A view is 30 seconds watched, the whole of a shorter ad, or a click.
- Shape and size: 16:9. 1920 x 1080 recommended, 1280 x 720 the least Google wants. It takes 640 x 480 but says not to use it.
- File: MP4 is fine. Up to 256 GB. The film has to be hosted on YouTube: the brand uploads it to its channel and picks it from there, so you hand over files, not an ad.
- Exact lengths matter. The limits are "6 seconds or shorter" and "15 or shorter", so a file one frame over is out. A 15-second take usually comes back a frame long.
- The safe zone, on a 1920 x 1080 frame, the same for phone, desktop and TV. Keep the logo, the words and the product's label out of these parts:
| Part of the frame | Size | Share | |---|---|---| | Bottom band | 387 px | 36% of the height | | Right edge | 162 px | 8% of the width | | Left edge and top edge | 38 px | 2 to 4% | | Top left corner | 496 x 183 px | | | Top right corner | 475 x 133 px | |
What is left is a box from x 38 to 1758 and y 38 to 693, less the two top corners. Google warns the player's parts move by device and campaign, so treat the whole band as covered.
- Text beside the ad: a call to action of up to 10 characters and a headline of up to 15. In a Demand Gen campaign: headlines of up to 40, descriptions of up to 90, at least three of each. A companion banner is optional: 300 x 60, JPG, GIF or PNG, under 150 KB, desktop only.
- Sound: Google's ad pages give no loudness figure. About -16 LUFS with the true peak at or under -1.5 dB sits well next to other online video. Don't reuse the quieter TV mix.
1. Research the brand
- The site. Read the home and product pages. Write down what is sold and to whom, every claim with its qualifiers as written, and today's offers. This list is the only source of facts. Read the directions and warnings too: a serving size or a "keep out of reach" line decides what a shot may show. If a plain fetch is refused, load the page in headless Chrome.
- Fonts, logo, colours, product photos. Take the real files. Fonts from a font service are licensed to the brand's own site: say so on delivery. Check that a small logo mark is not a person's face. Upload clean product photos with
asset_upload, and check each one is the product on offer. - Their own video ads. List them with
google/ad-library/searchandformat: "video". A search bydomaincan include other advertisers' ads. To stay on the brand, find its id withgoogle/ad-library/advertisers(the brand's name asquery) and pass it asadvertiser_id. Open three or four of the longest-running withgoogle/ad-library/get. A result holds some of: the length, the headline, the description, the call to action and a YouTube link. The film itself is not saved, and nothing says whether an ad is wide or vertical. Where there is a link, pass it aspostto these, a cent and a half each: is vertical, so it is no pre-roll. A full video is almost always 16:9. No lookup gives the file or its pixel size. with their start and end: what is said by 5 seconds, and when the brand is first named. These are YouTube's own captions, often typed by a machine: good for the words and the timing, not for names. No public captions, no lines. the brand is first shown and first said, and what the last frames hold. If the watch is refused or there is no link, the lengths, any transcript and the text beside the ad still show what the brand leans on. Go on without.youtube/posts/getreturns the length in seconds and whether the video is a Short. A Shortyoutube/transcripts/by-postwith returns the caption lines of the first seconds
2. Plan the whole ad on paper
Start with the five-second plan. Write three lines before anything else:
- Second 0 to 1: the picture and the sound that stop the thumb. Something already happening: a sound off screen, a face reacting, a thing in motion. Not a logo sting, and not a slow establishing shot.
- By second 5, seen: the logo on screen from the first frame, and the product with its label readable, inside the safe zone.
- By second 5, heard: the brand name spoken, finished by about 4.5 seconds, and the open question that pays off later. "That is the sound of Acme Chews" over a dog bolting down a hallway is brand, hook and question in one line.
Then the rest. One benefit said plainly, the product in use, the payoff of the hook, and an end card with the line and where to go. One idea in 15 seconds. Cut the second one.
Write it as timed shots: start and end, what happens, the camera, the sounds. Five shots suit 15 seconds. Make the times add up to exactly 15.
- A narrator and no speech on camera is the default. It avoids lip-sync, and the voice can be made on its own track (step 5).
- If someone must speak on camera, every line by that person comes from the one request. A new take of the same person gets a different voice, so never patch a speaking shot, and never give the bumper a newly made speaking shot.
- About 2.5 spoken words a second, and leave air: 28 to 32 words in a 15.
- Write the on-screen words too. Each echoes what the voice says in that shot, in five words or so.
- Check each shot against the product's directions. If one chew is the serving for a small dog, cast a small dog.
The bumper is not the 15 played fast. It is one idea with one line, cut from shots the 15 already has: usually the payoff shot, a reaction, then the end card held for 2 seconds. Six to nine spoken words: the line, then the brand and product. Write it now so the take holds the shots.
Two more versions, as scripts only. Write two more 15-second scripts that change one thing: the first five seconds. For example one that opens on the product and one that opens on a question. Say plainly on delivery that these are scripts, not films. Three takes would triple the bill before anyone has seen one.
Text beside the ad. Write a call to action (10 characters), a short headline (15), three headlines (40) and three descriptions (90). If anyone is there, show the plan before you generate.
3. Cast and references
- People: make each with
higgsfield/soul-v2as a plain casting photo, four takes, pick one, a specific styled outfit.ctv-adsstep 4 has the template. - Animals: one casting photo from
google/nano-banana-2.1, square, the whole animal on a white background, with the breed mix, size, coat, ears and collar spelled out. The video model holds that animal across every shot. - The product: the real photos, cut out on white. Describe its telling details in words too.
- Put a square or upright image first in the reference list, or a wide one becomes the first frame.
4. Generate the draft
Use bytedance/seedance-2.5. Read its schema with endpoint_get first. The whole 15 seconds is one request with the timed shot list in the prompt: duration: 15, resolution: "480p", draft: true, aspect_ratio: "16:9". The resolution defaults to 720p, which costs twice as much. References drive it, not a first frame: "the dog in @Image1", "the jar from @Image2". ctv-ads step 6 has the full craft. What this format adds:
- Ask for scene sound only: "Sound: only the real sounds of each scene. No voice, no narration, no music. No on-screen text, no captions, no logos except the pack's own label." The voice and music go on their own tracks, so the same shots can be cut again as a bumper.
- Place things by fractions of the frame, in every shot. "The whole label sits between 15 and 60 percent of the way down the frame. The bottom third is only the worktop." Left alone, the model puts the product on the floor, inside the band the player covers. It follows fractions loosely and lands lower than asked, so ask for higher than you need.
- The product shot goes at about second 4 to 7, so the 5-second mark lands on it. The best frame for the skip is the pack large in the foreground with its label facing the camera, and the character looking at it.
- Put the hook's action in the first half second of shot 1, and say so. The model likes to open on a second and a half of nothing.
- Give each sound a time: "in the first half second, off screen, a jar lid pops".
Watch the take before you spend again. Pull a frame every half second onto one sheet.
- Find the real cuts with ffmpeg's scene detection. The model drifts from your shot times by up to half a second, and an edit list built on the planned times cuts mid-shot.
- Lay the safe zone over a frame from each shot. A label in the bottom band is a fault.
- Compare the product with its real photo, and the character from shot to shot.
Fixing one shot. Don't retake the 15 for one bad shot. Make that shot alone as a 4-second request (about 60 cents) with the same references, and cut it in. Only shots with no speech can be patched.
- A patch builds its own room. Pass a clean frame from the take as one more reference ("the same kitchen as in @Image3") and describe the room too. Words alone gave green cabinets where the take had grey ones. The frame matched them.
- Adding a reference shifts the camera. Restate its height and angle, and look again.
- For a subject that sits too low or too central, a punch-in of up to 1.4 times in the edit is free and holds at 1080p. It looks soft at 480p, so say so.
5. Voice and music
Make the narrator and the music as separate tracks. The bumper needs its own short line in the same voice, and a separate track can be slid until the brand name lands before the skip.
- Voice:
elevenlabs/eleven-v3with a named stock voice, one run per line, with timestamps on. A short tag sets the read: "[warm, amused]". Try the first line in two voices and keep the one that fits the gap: the same line came back at 3.5 and 4.2 seconds, and only one left room before 5 seconds. Make the bumper's lines in the same session. For a voice of the brand's own, design one withminimax/voice-design(about $3.30) and speak it withminimax/speech-2.6-hd. - Music:
elevenlabs/music, 30 seconds, instrumental. Ask for "starts on the first beat with no intro, a clear button ending". Use the tail of the track so its own ending lands at the end of the ad, and again for the bumper. A track cut off mid-bar is the first thing people hear.
6. Edit
Keep one edit list per cut: each piece's source, first and last frame, and any punch-in. Build with ffmpeg, one piece per file, then join. The same list rebuilds the ad at 1080p.
- Trim to the action. Cut the dead start off shot 1 so the hook lands in the first second.
- Hit the lengths exactly. At 24 frames a second the 15 is 360 frames and the bumper 144 at most. Stop the sound 0.03 seconds before the picture ends, because an audio track that runs a hair past the picture makes the whole file read as too long.
- On-screen words and logo: HTML pages at 1920 x 1080 with a see-through background, in the brand's font files, rendered to PNG by headless Chrome (
--default-background-color=00000000, a fresh--user-data-dir, a time limit), then laid over the shots for set time ranges. Scale them down for the draft. The same pages serve the 1080p pass. under the top corner (left 1434, top 150, 306 wide) clears the safe zone and most subjects. by hand. Leave words off the shot where the pack's own label is doing the talking. safe zone and reports any that cross it.- A small logo block sits in one place from the first frame to the end card. The right side
- Words go under it as caption rows: each row on its own solid block, 56 to 64 px, lines broken
- Have each page measure itself: a script that compares every text block and the logo with the
- The end card is its own full frame for the last 2.5 seconds: the real pack photo, the logo, one line, the web address, on a brand colour. Use the real photo: a generated label is mush at 480p and garbled at 1080p. The logo, line and address sit in the safe zone, and the pack may run below it. No drawn button: the player adds the real one. Slide it in over 6 frames.
- Mix: scene sound a little under the voice, music lower and dipped under each line, then the level from the specs, measured over the whole file. Raise the hook's own sound: in the take it is often too quiet to hook anyone.
- The bumper: the same pieces from its own list, with its own line, the music's tail and the same end card. One on-screen line.
7. Contact sheet and mockup
- The contact sheet is one image: a frame at every second of the 15 with its time, and the frame at 5.0 seconds shown large with the safe zone drawn over it and the label "5.0 s: Skip appears". Under it, the bumper's frames.
- The mockup shows the 5-second frame in a video player on an iPhone 17 Pro held sideways, drawn in HTML and placed by code so the frame stays true. Draw what a player draws, as plain shapes: a Skip button at the bottom right, a card at the bottom left with the brand's initials, its name, "Sponsored" and the call to action, and a thin progress bar. No real video site's name, logo or colours, and no other brand. Say it is a drawing, not a screenshot.
8. Check
Run these on both files, fix what fails, run them again.
- The 15 is 360 frames and reads as 15.00 seconds or less. The bumper reads as 6.00 or less.
- 16:9, H.264 video with stereo AAC sound.
- The 5-second frame: the logo is on it, the product or its name is on it, and a stranger could say what is sold. The brand name has been spoken.
- The first second has motion or a sound in it.
- Every word, the logo and the pack's label on the end card are inside the safe zone.
- Every spoken word matches the script, and the brand name is said right. Check it with
elevenlabs/scribe-v2. It takes audio only: save each file's sound (ffmpeg -i ad.mp4 -vn ad.mp3), upload it withasset_uploadand pass the asset asaudio, with the brand and product names askeyterms. For about a cent a file it returns the text and every word's start and end in seconds. Compare the text with the script, and read from the word times that the brand name ends before 5 seconds in the 15. - The voice is the same in every line, on both files. The music ends, it is not cut.
- Each shot at full size: paws, hands, eyes, a product that is not the real one, a garbled label, a character or room that changes between shots, text the model drew.
- Every claim is on the brand's site today with its qualifiers. Nothing shown breaks the product's own directions.
- The bumper holds one idea and one line, and makes sense to someone who never saw the 15.
Then have google/gemini-4-argon watch each file once as an ordinary viewer with the sound on. Ask what brand this is and what it sells at the 5-second mark, for every spoken word with times, whether the voice sounds human, whether the music ends cleanly, and what looks wrong. One file per call, a few cents each. Treat the answers as leads to check, not a verdict. If the call is refused, try again later. Failing that, measure: the voice should sit about 10 dB over the gaps between lines, and the last quarter second should be near silent. Then say on delivery that the words were checked from a transcript but nobody has listened to the sound.
9. Deliver
- Both drafts, the contact sheet and the mockup, uploaded with
asset_upload, plus the files. - The script of the 15 as timed shots, the bumper's script, and the two other versions, marked as scripts.
- The text beside the ad, and which formats each file can run as.
- What was borrowed from each reference, the run ids, and the cost from
spend_get. - Known flaws, claims the brand should confirm, and any font licensed only to its site.
- What finishing at 1080p will cost (about 87 cents a second of every take in the cut) and that drafts can be finished for 7 days. Stop here until the draft is approved.
- That the film is generated. YouTube's upload form asks whether realistic content was made or altered with AI (YouTube Help, "Disclosing use of altered or synthetic content"). The brand answers it when it uploads.
- Offer more: one of the scripts as a film, a 30-second cut for TV with
ctv-ads, or a vertical cut for Shorts withmeta-video-ads.
10. Finish at 1080p
After approval, remake every take in the cut with bytedance/seedance-2.5/from-draft, point the edit lists at the new files, render the overlays at full size and rebuild. ctv-ads step 11 has the details. Look at every shot again: a label that was mush at 480p is now readable and may be wrong. Run step 8 again, and deliver 1920 x 1080 files.
Watch out for
- A logo sting or a slow scene-setter in the first five seconds. Both are what people skip.
- Words, the logo or the product's label in the bottom 36% of the frame.
- A bumper with two ideas, or a line that only makes sense after the 15.
- A new take of a person who already speaks in another shot. The voice will not match.
- No invented statistics, reviews, prices, awards or customers. No real people's faces or voices, and no named songs or artists.
- Health, finance and other regulated products need the brand's own wording. For supplements, "supports" is not "treats", and a symptom is not a headline.
- A reference is for its structure. Its people, product, logo, words and music stay behind.
- Uploading the 480p draft. It is under Google's minimum.