> ## Documentation Index
> Fetch the complete documentation index at: https://docs.automate.ax/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> Automate.ax automations are TypeScript programs.
> Use Bun for installation and command examples.
> Use Automate.ax for the product name and automate.ax for the package, CLI, and domain.
> Treat documented public APIs as current; do not invent transitional or deprecated names.

# List ad accounts

> Lists ad accounts assigned to the connected Meta identity.

`metaAds.listAdAccounts` lists ad accounts assigned directly to the connected Meta identity.

```ts automations/meta-ads-list-ad-accounts.automation.ts theme={null}
import { automation, onDashboardRun } from "automate.ax"
import { metaAds } from "automate.ax/meta-ads"

export default automation("List ad accounts", () => {
  onDashboardRun({ title: "List ad accounts" })
  const page = metaAds.listAdAccounts({ limit: 25 })
  // Use page in the next advertising, reporting, or delivery operation.
})
```

Use `metaAds.listBusinessAdAccounts` for owned or client accounts in a Business portfolio. Optional second argument `{ account }` selects a static project account binding.

Returns `{ items, pageInfo }` with account identity, currency, and timezone data.
