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

# Create Adset

> Create a LinkedIn Ads ad set under a campaign

Create a LinkedIn Ads ad set under a campaign. In LinkedIn's API this is a campaign (adCampaigns); LinkedIn's newer UI naming calls this an ad set.

|                       |                             |
| --------------------- | --------------------------- |
| **App**               | LinkedIn Ads                |
| **Operation ID**      | `linkedin_ads_create_adset` |
| **Type**              | Action                      |
| **Connection**        | `linkedin_ads` (required)   |
| **Credits per run**   | 2                           |
| **Agent / MCP tool**  | Yes                         |
| **Requires approval** | Yes (write operation)       |

## Inputs

| Field                        | Type                          | Required | Default                                              | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| ---------------------------- | ----------------------------- | -------- | ---------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `account`                    | DynamicAccount                | Yes      | -                                                    | LinkedIn Ads account to create the ad set in.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| `campaign_id`                | string or SelectItem          | Yes      | -                                                    | Parent campaign ID. This maps to LinkedIn campaignGroup.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| `adset_name`                 | string                        | Yes      | -                                                    | Ad set name.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
| `objective_type`             | string or SelectableOption    | Yes      | -                                                    | Ad set objective.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| `ad_format`                  | string or SelectableOption    | Yes      | -                                                    | LinkedIn Campaign Manager ad format.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| `associated_entity_urn`      | string                        | No       | -                                                    | Organization or member URN required for sponsored content, dynamic ads, and lead gen forms.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| `budget_type`                | string or SelectableOption    | No       | `{'value': 'DAILY', 'label': 'Daily budget'}`        | Budget mode: DAILY, LIFETIME, or BOTH.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| `daily_budget`               | number                        | No       | -                                                    | Daily budget in the account currency. Currency is resolved by backend.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| `total_budget`               | number                        | No       | -                                                    | Lifetime/total budget in the account currency. Currency is resolved by backend.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| `start_time`                 | integer or string             | No       | -                                                    | Optional start date/time as Unix timestamp or ISO datetime.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| `end_time`                   | integer or string             | No       | -                                                    | Optional end date/time as Unix timestamp or ISO datetime.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
| `optimization_goal`          | string or SelectableOption    | No       | -                                                    | What LinkedIn optimizes delivery for. Objective-specific, e.g. REACH, IMPRESSIONS, LANDING\_PAGE\_CLICKS, ENGAGEMENT\_CLICKS, WEBSITE\_CONVERSIONS, LEADS, VIDEO\_VIEWS, SENDS.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| `bidding_strategy`           | string or SelectableOption    | No       | -                                                    | How bids are placed: MAX\_DELIVERY (automated), TARGET\_COST, or MANUAL.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| `unit_cost`                  | number                        | No       | -                                                    | Optional bid amount in account currency. Required for manual bidding choices.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| `locale_language`            | string                        | No       | `en`                                                 | LinkedIn ad set locale language as a two-letter lowercase code, for example 'en'. This is not audience targeting; it tells LinkedIn the language context for the campaign setup. Use the account/user market default unless the user explicitly needs another locale.                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| `locale_country`             | string                        | No       | `US`                                                 | LinkedIn ad set locale country as a two-letter uppercase code, for example 'US'. This is not the geographic audience target; it pairs with locale\_language in the LinkedIn locale object. Use the account/user market default unless the user explicitly needs another locale.                                                                                                                                                                                                                                                                                                                                                                                                                         |
| `targeting_criteria`         | object or string              | Yes      | -                                                    | LinkedIn targetingCriteria object for the ad set. Use this to define the actual audience, including required locations and any other facets such as industries, job titles, company sizes, or exclusions. Use `linkedin_ads_search_targeting` operation to explore available URNs for locations, job titles, companies, industries, skills, and other targeting facets. Do not invent LinkedIn URNs or IDs. Pass either a dict or a valid JSON string matching LinkedIn's targetingCriteria shape, for example \{'include': \{'and': \[\{'or': \{'urn:li:adTargetingFacet:locations': \['urn:li:geo:103644278']}}]}}. This is audience targeting and is separate from locale\_language/locale\_country. |
| `conversion_ids`             | array of string or SelectItem | No       | -                                                    | Optional existing LinkedIn conversion rule IDs or URNs to associate with the ad set after it is created. Use linkedin\_ads\_list\_conversions to find available conversions. Accepts IDs like 104012 or URNs like urn:lla:llaPartnerConversion:104012.                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| `audience_expansion_enabled` | boolean                       | No       | `False`                                              | Enable LinkedIn audience expansion.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
| `offsite_delivery_enabled`   | boolean                       | No       | `False`                                              | Enable LinkedIn Audience Network/offsite delivery.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      |
| `creative_selection`         | string or SelectableOption    | No       | `{'value': 'OPTIMIZED', 'label': 'Optimized'}`       | Creative rotation strategy.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| `political_intent`           | string or SelectableOption    | No       | `{'value': 'NOT_DECLARED', 'label': 'Not declared'}` | Political advertising declaration.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      |
| `status`                     | string or SelectableOption    | No       | `{'value': 'PAUSED', 'label': 'Paused'}`             | Initial ad set status.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |

### 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**: `Dict`

Returns created LinkedIn ad set details.

**Fields**: `adset_id`, `adset_name`, `status`, `ad_format`, `conversions`
