> For the complete documentation index, see [llms.txt](https://mads.avelino.run/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://mads.avelino.run/introduction.md). Agents can also search and read this documentation through its [MCP server](https://mads.avelino.run/~gitbook/mcp).

# Introduction

Find the page you need to run a real Google Ads account with mads.

mads is an open source tool for managing Google Ads accounts in production. You describe the business in `business.toml`. LLM agents plan the account and write the campaigns. Rust code enforces every Google limit and writes the files. You import them, let the campaigns run, and feed the reports back with `mads optimize`.

## Pick a door

* **Try it.** [Your first run](https://mads.avelino.run/tutorials/first-run.md) takes 15 minutes and needs no Google Ads account.
* **Run a real account.** [Run a real account](https://mads.avelino.run/tutorials/run-a-real-account.md) goes from billing to the second optimize cycle.
* **Look something up.** [CLI](https://mads.avelino.run/reference/cli.md), [business.toml](https://mads.avelino.run/reference/business-toml.md) and [Exit codes and errors](https://mads.avelino.run/reference/exit-codes-and-errors.md) hold the exact values.
* **Understand it.** [Why mads](https://mads.avelino.run/explanation/why-mads.md) and [Safe on a live account](https://mads.avelino.run/explanation/safe-on-a-live-account.md) explain what it does and what it guards.

The docs follow four kinds of page. Tutorials are lessons with a result. How-to pages are steps for one job. Reference pages are tables of exact values. Explanation pages say why.

## All pages

### Tutorials

* [Your first run](https://mads.avelino.run/tutorials/first-run.md)
* [Run a real account](https://mads.avelino.run/tutorials/run-a-real-account.md)

### Set up

* [Install mads](https://mads.avelino.run/set-up/install.md)
* [Prepare your Google Ads account](https://mads.avelino.run/set-up/prepare-google-ads.md)
* [Choose a provider](https://mads.avelino.run/set-up/choose-a-provider.md)
* [Run with Ollama](https://mads.avelino.run/set-up/run-with-ollama.md)
* [Use an OpenAI-compatible server](https://mads.avelino.run/set-up/use-an-openai-compatible-server.md)

### Describe your business

* [Draft the files from your site](https://mads.avelino.run/describe-your-business/draft-from-your-site.md)
* [Write the business file](https://mads.avelino.run/describe-your-business/write-the-business-file.md)
* [Write a catalog](https://mads.avelino.run/describe-your-business/write-a-catalog.md)
* [Pick a campaign strategy](https://mads.avelino.run/describe-your-business/pick-a-strategy.md)
* [Add image and app campaigns](https://mads.avelino.run/describe-your-business/add-image-campaigns.md)
* [Handle restricted categories](https://mads.avelino.run/describe-your-business/handle-restricted-categories.md)

### Launch

* [Review a run](https://mads.avelino.run/launch/review-a-run.md)
* [Import into Google Ads Editor](https://mads.avelino.run/launch/import-into-google-ads-editor.md)
* [Upload the bulk CSVs](https://mads.avelino.run/launch/upload-bulk-csvs.md)
* [Go live](https://mads.avelino.run/launch/go-live.md)

### Improve

* [Export Google Ads reports](https://mads.avelino.run/improve/export-google-ads-reports.md)
* [Optimize a live account](https://mads.avelino.run/improve/optimize-a-live-account.md)

### Automate

* [Run in Docker](https://mads.avelino.run/automate/run-in-docker.md)
* [Run in GitHub Actions](https://mads.avelino.run/automate/run-in-github-actions.md)
* [Use the ads automation package](https://mads.avelino.run/automate/use-the-automation-package.md)

### Fix

* [Resume or re-export a run](https://mads.avelino.run/fix/resume-a-run.md)
* [Keep token cost down](https://mads.avelino.run/fix/keep-cost-down.md)
* [Troubleshoot](https://mads.avelino.run/fix/troubleshoot.md)

### Reference

* [CLI](https://mads.avelino.run/reference/cli.md)
* [business.toml](https://mads.avelino.run/reference/business-toml.md)
* [catalog.csv](https://mads.avelino.run/reference/catalog-csv.md)
* [Validation rules](https://mads.avelino.run/reference/validation-rules.md)
* [Exit codes and errors](https://mads.avelino.run/reference/exit-codes-and-errors.md)
* [Output files](https://mads.avelino.run/reference/output-files.md)
* [report.md](https://mads.avelino.run/reference/report-md.md)
* [Google Ads Editor file](https://mads.avelino.run/reference/editor-file.md)
* [Bulk upload format](https://mads.avelino.run/reference/bulk-upload-format.md)
* [Ads automation package](https://mads.avelino.run/reference/automation-package.md)
* [Google Ads reports](https://mads.avelino.run/reference/google-ads-reports.md)
* [Providers](https://mads.avelino.run/reference/providers.md)
* [Run limits](https://mads.avelino.run/reference/limits.md)
* [Environment variables](https://mads.avelino.run/reference/environment-variables.md)
* [MCP tools](https://mads.avelino.run/reference/mcp-tools.md)
* [Limitations](https://mads.avelino.run/reference/limitations.md)
* [Glossary](https://mads.avelino.run/reference/glossary.md)

### Explanation

* [Why mads](https://mads.avelino.run/explanation/why-mads.md)
* [Safe on a live account](https://mads.avelino.run/explanation/safe-on-a-live-account.md)
* [How a run works](https://mads.avelino.run/explanation/how-a-run-works.md)
* [How optimize decides](https://mads.avelino.run/explanation/how-optimize-decides.md)
* [Campaign strategies](https://mads.avelino.run/explanation/strategies.md)
* [Image and app campaigns](https://mads.avelino.run/explanation/image-campaigns.md)
* [Restricted categories](https://mads.avelino.run/explanation/restricted-categories.md)
* [Agent CLIs](https://mads.avelino.run/explanation/agent-clis.md)
* [Limits and retries](https://mads.avelino.run/explanation/limits-and-retries.md)
* [Architecture](https://mads.avelino.run/explanation/architecture.md)

### Project

* [Sponsors](https://mads.avelino.run/project/sponsors.md)

## Next

* [Your first run](https://mads.avelino.run/tutorials/first-run.md)
* [Install mads](https://mads.avelino.run/set-up/install.md)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://mads.avelino.run/introduction.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
