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

# Select Accounts

> Select Reddit Ads accounts once and reuse them across multiple reddit_ads_get_report nodes—no repeated account selection

Select Reddit Ads accounts once and reuse them across multiple reddit\_ads\_get\_report nodes—no repeated account selection. You can also select and list all available accounts. Skip if you have just one reddit\_ads\_get\_report, as it already includes its own picker.

|                      |                              |
| -------------------- | ---------------------------- |
| **App**              | Reddit Ads                   |
| **Operation ID**     | `reddit_ads_select_accounts` |
| **Type**             | Action                       |
| **Connection**       | `reddit_ads` (required)      |
| **Credits per run**  | Free                         |
| **Agent / MCP tool** | Yes                          |

## Inputs

| Field            | Type                                          | Required | Default | Description                                                                                                                                                                                                                                                                                                                                  |
| ---------------- | --------------------------------------------- | -------- | ------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `selection_mode` | string or SelectableOption                    | Yes      | -       | Selection mode for accounts. Available options: 'manual': User can pick accounts from a dropdown in the UI in the node settings. 'all': Select all available accounts the user has access to. 'filter': User can filter accounts by name or ID.                                                                                              |
| `accounts`       | array (also accepts a comma-separated string) | No       | -       | List of accounts to select from. If not provided, the user will be prompted to select accounts in the UI. Only use if 'selection\_mode' is 'manual'. The accounts should be in the format:                                                                                                                                                   |
| `filters`        | array of FilterItem                           | No       | -       | List of filters to apply to the accounts. Each filter must have a field, operator, and value. Only use if 'selection\_mode' is 'filter'. The only available fields to filter by are: - 'accountName' - 'accountId' Filters are combined using AND logic. If you want to use OR logic, use relevant operators like REGEXP\_MATCH or IN\_LIST. |
| `limit`          | integer                                       | No       | -       | The maximum number of accounts to return. If not provided, all accounts will be returned.                                                                                                                                                                                                                                                    |

### FilterItem

| Field      | Type                       | Required | Default | Description                                                                                                                                                   |
| ---------- | -------------------------- | -------- | ------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `field`    | string or SelectableOption | Yes      | -       | The field to filter on, must be one of the current selected metrics or dimensions.                                                                            |
| `operator` | string                     | Yes      | -       | The operator to use for filtering. Must be one of the supported values. Use REGEXP\_MATCH to search/filter by multiple OR values like '.*(summer\|holiday).*' |
| `value`    | string                     | Yes      | -       | The value to filter by. Can be a string, number, regex, or a list of strings.                                                                                 |

### SelectableOption

| Field   | Type   | Required | Default | Description |
| ------- | ------ | -------- | ------- | ----------- |
| `value` | string | Yes      | -       |             |
| `label` | string | Yes      | -       |             |

## Output

**Type**: `List[Dict]`

Returns list of accounts with label (account name) and value (account ID). Note: the output is formatted to be directly used in other nodes that accept account selection inputs, no need for further transformation.

**Fields**: `label`, `value`
