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

# Google Ads Audiences: List Ad Accounts

> List the Google Ads accounts this connection can upload to, with the workspace default marked. Includes inputs, outputs, SDK V2 examples, and Deepline cost.

List the Google Ads accounts this connection can upload to, with the workspace default marked.

> [!NOTE]
>
> Tool ID: `google_ads_audiences_list_ad_accounts`

## Run this action

Use the TypeScript SDK for one call. Use `ctx.tools.execute(...)` inside a Play for durable calls, scheduled calls, or CSV processing.

```ts theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
import { Deepline } from 'deepline';

const deepline = await Deepline.connect();
const result = await deepline.tools.execute(
  'google_ads_audiences_list_ad_accounts',
  {},
);

console.log(result.toolResponse.raw);
```

### CLI

```bash theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
deepline run google_ads_audiences_list_ad_accounts --input '{}'
```

## Example response

The SDK returns this shape at `result.toolResponse.raw`. The example values illustrate the response.

```json theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
{
  "data": {
    "ad_accounts": [
      {
        "account_id": "123456789",
        "name": "Example",
        "manager": false,
        "status": "example",
        "login_account_id": "123456789",
        "source": "direct",
        "enabled": true,
        "is_default": true
      }
    ],
    "default_account_id": "123456789"
  }
}
```

Use `deepline describe google_ads_audiences_list_ad_accounts --json` for the latest machine-readable contract.

## Input reference

This action requires no input fields.

<details>
  <summary>Show raw input schema</summary>

  ### Input JSON Schema

  ```json theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
  {
    "type": "object",
    "properties": {},
    "additionalProperties": false
  }
  ```
</details>

## Output reference

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `result.data` | `object` | Yes | — | — |
| `result.data.ad_accounts` | `array` | Yes | — | — |
| `result.data.ad_accounts[].account_id` | `string` | Yes | — | Google Ads customer ID, digits only. |
| `result.data.ad_accounts[].name` | `string \| null` | Yes | — | — |
| `result.data.ad_accounts[].manager` | `boolean \| null` | Yes | — | True for a manager (MCC) account, which cannot receive Customer Match uploads. |
| `result.data.ad_accounts[].status` | `string \| null` | Yes | — | Google Ads customer status, e.g. ENABLED. |
| `result.data.ad_accounts[].login_account_id` | `string \| null` | Yes | — | Manager account to pass as login\_account\_id when this account is reached through one. |
| `result.data.ad_accounts[].source` | `"direct" \| "manager_child"` | Yes | — | Allowed: `direct`, `manager_child`. |
| `result.data.ad_accounts[].enabled` | `boolean` | Yes | — | Whether Deepline tools may target this account in this workspace. |
| `result.data.ad_accounts[].is_default` | `boolean` | Yes | — | Whether an omitted account\_id resolves to this account. |
| `result.data.default_account_id` | `string \| null` | Yes | — | — |

<details>
  <summary>Show raw output schema</summary>

  ### Output JSON Schema

  ```json theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
  {
    "type": "object",
    "properties": {
      "data": {
        "type": "object",
        "properties": {
          "ad_accounts": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "account_id": {
                  "type": "string",
                  "description": "Google Ads customer ID, digits only."
                },
                "name": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "manager": {
                  "type": [
                    "boolean",
                    "null"
                  ],
                  "description": "True for a manager (MCC) account, which cannot receive Customer Match uploads."
                },
                "status": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Google Ads customer status, e.g. ENABLED."
                },
                "login_account_id": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Manager account to pass as login_account_id when this account is reached through one."
                },
                "source": {
                  "type": "string",
                  "enum": [
                    "direct",
                    "manager_child"
                  ]
                },
                "enabled": {
                  "type": "boolean",
                  "description": "Whether Deepline tools may target this account in this workspace."
                },
                "is_default": {
                  "type": "boolean",
                  "description": "Whether an omitted account_id resolves to this account."
                }
              },
              "required": [
                "account_id",
                "name",
                "manager",
                "status",
                "login_account_id",
                "source",
                "enabled",
                "is_default"
              ],
              "additionalProperties": false
            }
          },
          "default_account_id": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "ad_accounts",
          "default_account_id"
        ],
        "additionalProperties": false
      }
    },
    "required": [
      "data"
    ],
    "additionalProperties": false
  }
  ```
</details>

## Deepline cost

* Pricing model: `fixed` (per call).
* Estimated Deepline credits: `0` per pricing unit.
* Provider-native pricing may still exist outside Deepline credit billing.

## Related documentation

* [Connect integrations](https://deepline.com/docs/integrations.md)
* [SDK V2 quickstart](https://deepline.com/docs/sdk-v2/quickstart.md)
* [SDK reference](https://deepline.com/docs/sdk-v2/sdk-reference.md)
* [Run tools across a CSV](https://deepline.com/docs/sdk-v2/batch-csv.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.