From ad formats and how billing works to campaign design, targeting, budgets and bidding, making the video, the rules on what you may claim, measurement and A/B tests, and incrementality. Over 20 lessons, you'll get to where you can start small on YouTube, read the numbers yourself and decide the next move. All ad figures are fictional, and every calculation uses only Python's standard library, so it runs right in your browser.
about 3.5 hours in total (estimate)
The 20 lessons are split into 5 chapters. We recommend going in order from Chapter 1, but feel free to dip into whatever interests you. * All ad figures (impressions, costs, revenue and so on) are fictional and promise no results. Google Ads and YouTube details follow the official help pages as of November 2026. Screens and names change often, so check the official help before you run anything. The notes on law are an overview for beginners, written for advertisers in Japan; ask a professional about your own case. The code uses only Python's standard library and runs right in your browser.
Take this chapter's review quiz ›
Find out who pays whom, and what each ad format actually charges for, by working through the numbers yourself. You'll finish by computing view rate, CPV, CPM and CPA, so you can read the dashboard as division instead of jargon.
Take this chapter's review quiz ›
Pick a campaign type from your goal, then decide who sees the ad and what you pay. You'll finish by estimating impressions, views and conversions from a budget, so you know what you can afford before you spend anything.
Take this chapter's review quiz ›
Use numbers to decide what goes in the first five seconds, how many words fit the length, and where viewers drop off. You'll finish with Japan's advertising law and the ad policies, so you can tell what you may say from what needs evidence.
Take this chapter's review quiz ›
Use logs and random numbers to see how conversions are counted, how credit is split, when an A/B test is significant, and what frequency does. You'll finish by aggregating a per-ad report and sorting ads into stop, scale, and not enough data yet.
Take this chapter's review quiz ›
Measure the effect as incremental results, after taking away what would have happened without ads, and turn the pace of changes and budget into rules. You'll finish by building a tool that turns daily data into a weekly report, so you can review your own numbers.
Once you've finished all 20 lessons, go deeper on aggregation and charts in Practical Data Analysis, or firm up the Python you used for the calculations in Python for Beginners. A membership unlocks every course.