> ## 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 business ad accounts

> Lists owned or client ad accounts for a Meta Business portfolio.

`metaAds.listBusinessAdAccounts` lists owned or client ad accounts for one Meta Business portfolio.

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

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

Use `relationship: "owned"` for accounts owned by the portfolio or `"client"` for client accounts shared with it. Optional second argument `{ account }` selects a static project account binding.

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