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

> List ad sets in a LinkedIn Ads account, with optional parent campaign filter, status filter, and sort order

List ad sets in a LinkedIn Ads account, with optional parent campaign filter, status filter, and sort order. In LinkedIn's API these are campaigns (adCampaigns); LinkedIn's newer UI naming calls them ad sets.

| | |
| - | - |
| **App** | LinkedIn Ads |
| **Operation ID** | `linkedin_ads_list_adsets` |
| **Type** | Action |
| **Connection** | `linkedin_ads` (required) |
| **Credits per run** | 1 |
| **Agent / MCP tool** | Yes |

## Inputs

| Field | Type | Required | Default | Description |
| - | - | - | - | - |
| `account` | DynamicAccount | Yes | - | Select the LinkedIn Ads account to list ad sets from. |
| `campaign_id` | string or SelectItem | No | - | Optional. Filter ad sets by their parent campaign (LinkedIn campaign group), applied client-side. Accepts a campaign id or urn:li:sponsoredCampaignGroup URN. |
| `status` | array of string or SelectableOption | No | - | Filter ad sets by status (applied client-side). Multiple can be selected. Options: ACTIVE, PAUSED, ARCHIVED, COMPLETED, CANCELED, DRAFT, PENDING\_DELETION, REMOVED. |
| `sort_order` | string or SelectableOption | No | `{'value': 'DESCENDING', 'label': 'Descending'}` | Sort order by ad set id: ASCENDING or DESCENDING. Default DESCENDING. |
| `limit` | integer | No | `100` | Maximum number of ad sets to return. The node paginates LinkedIn internally to reach this many. |

### 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 LinkedIn's raw campaign (adCampaigns) objects, unmodified, so they can be fed into other nodes. Field set varies per ad set.

**Fields**: `id`, `name`, `status`, `type`, `account`, `campaignGroup`, `dailyBudget`, `totalBudget`, `unitCost`, `costType`, `optimizationTargetType`, `creativeSelection`, `runSchedule`, `locale`, `targetingCriteria`, `servingStatuses`, `test`, `changeAuditStamps`


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