> ## 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.

# List Ad Groups

> List ad groups within a Microsoft Ads campaign, optionally filtered by status

List ad groups within a Microsoft Ads campaign, optionally filtered by status. Returns the full Microsoft ad group objects (Id, Name, Status, Network, AdGroupType, BiddingScheme, bids, Settings, etc.) so they can be fed into update\_ad\_group.

|                      |                                |
| -------------------- | ------------------------------ |
| **App**              | Microsoft Ads                  |
| **Operation ID**     | `microsoft_ads_list_ad_groups` |
| **Type**             | Action                         |
| **Connection**       | `microsoft_ads` (required)     |
| **Credits per run**  | 1                              |
| **Agent / MCP tool** | Yes                            |

## Inputs

| Field                      | Type                                                                      | Required | Default | Description                                                                                                                                                      |
| -------------------------- | ------------------------------------------------------------------------- | -------- | ------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `account`                  | object or array of object or MicrosoftAdsAccountItem or string or integer | Yes      | -       | Select the Microsoft Ads account that owns the campaign.                                                                                                         |
| `campaign_id`              | string or SelectItem                                                      | Yes      | -       | The campaign to list ad groups for.                                                                                                                              |
| `statuses`                 | array of string or SelectableOption                                       | No       | -       | Filter by ad group status. Leave empty to return all statuses. Available values: Active, Paused, Expired. Deleted ad groups are never returned by Microsoft Ads. |
| `return_additional_fields` | boolean                                                                   | No       | `False` | When true, request additional ad group properties (bids, settings, targeting flags, etc.) so the response is richer. Defaults to false.                          |

### MicrosoftAdsAccountItem

| Field        | Type   | Required | Default | Description                                                                                                     |
| ------------ | ------ | -------- | ------- | --------------------------------------------------------------------------------------------------------------- |
| `value`      | string | Yes      | -       |                                                                                                                 |
| `label`      | string | Yes      | -       |                                                                                                                 |
| `customerId` | string | No       | -       | The Microsoft Ads customer ID used for REST CustomerId headers. If omitted, it is resolved from the account ID. |

### SelectItem

| Field   | Type   | Required | Default | Description                                                                                          |
| ------- | ------ | -------- | ------- | ---------------------------------------------------------------------------------------------------- |
| `value` | string | Yes      | -       | The value of the selectable item.                                                                    |
| `label` | string | Yes      | -       | The label of the selectable item, used for display purposes. If not provided, defaults to the value. |

### SelectableOption

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

## Output

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

Returns the matching ad groups as full Microsoft Ads ad group objects (unchanged from the API).

**Fields**: `Id`, `Name`, `Status`, `Network`, `AdGroupType`, `BiddingScheme`, `CpcBid`, `Settings`
