Free through lesson 3

X Ads Fundamentals

From how the auction and billing work to objectives, targeting, budgets and bids, creative specs and review, measurement with the X Pixel and Conversion API, A/B tests, and weekly reports. Over 20 lessons, you'll get to where you can run ads, do the math yourself, and decide what to fix next. All 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)

Curriculum

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. * The content follows X's official help and developer documentation as of November 2026. Screen names, available objectives, and spec numbers can change, so check the ads.x.com interface and the official help before you launch anything. All delivery and revenue figures are fictional. The legal sections are general explanations focused on Japan; for specific decisions, go to the primary sources and a professional. The code uses only Python's standard library and runs right in your browser.

Chapter 1 — How X Ads Work (lessons 1–4)

Find out where ads appear, whose ad gets shown, and what you actually pay for, by working through the numbers yourself. You'll finish by computing CPA and ROAS from campaign results, so you can state your break-even point as a number.

Chapter 2 — Building a Campaign (lessons 5–8)

Learn to choose an objective, targeting, budget, and bid by understanding what each decision changes. You'll finish by splitting a fictional shop's budget across ad groups and building a forecast table.

Chapter 3 — Creatives and Review (lessons 9–12)

Get a handle on ad formats and specs, how characters are counted, and the essentials of ad policy and Japanese law. You'll finish by building a tool that checks ad copy automatically before it goes out.

Chapter 4 — Measurement (lessons 13–16)

Understand how the X Pixel and the Conversion API count the purchases that follow an ad. You'll finish by loading a delivery report and aggregating performance by ad group.

Chapter 5 — Improving and Automating (lessons 17–20)

Learn to check whether a difference is real, decide what to fix from the numbers, and pull figures out through the Ads API. You'll finish by building a weekly report that compares this week with last and writes out what to watch.

Once you've finished all 20 lessons, go deeper on aggregation and visualization in Practical Data Analysis Course, firm up the basics behind measurement tags in JavaScript for Beginners, or sharpen the tools for calling APIs in Python for Beginners. A membership unlocks every course.