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

> Create an Insight Tag conversion rule on a LinkedIn ad account, either matching page URLs or firing from an event

Create an Insight Tag conversion rule on a LinkedIn ad account, either matching page URLs or firing from an event. Requires a live Insight Tag on the site. Use linkedin\_ads\_assign\_conversions\_to\_adset afterwards so campaigns report against it.

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

## Inputs

| Field | Type | Required | Default | Description |
| - | - | - | - | - |
| `account` | DynamicAccount | Yes | - | LinkedIn Ads account to create the conversion rule in. |
| `name` | string | Yes | - | Name for the conversion rule, shown in Campaign Manager and in reports. |
| `conversion_type` | enum (`ADD_TO_CART`, `DOWNLOAD`, `INSTALL`, `KEY_PAGE_VIEW`, `LEAD`, `PURCHASE`, `SIGN_UP`, `OTHER`) | Yes | - | What the member did. Pick the closest match, or OTHER. |
| `url_rules` | string or array of any | No | - | URL match rules that fire this conversion, as JSON. Each rule is \{"match\_type": "EXACT" \| "STARTS\_WITH" \| "CONTAINS", "match\_value": "..."}. A flat list ANDs its rules; a list of lists ORs the groups. Leave empty to create an event-specific conversion that fires from the Conversions API or an event pixel instead of a page view. Drop the protocol from match\_value: use example.com/thanks, not `https://example.com/thanks.` Regular expressions are not supported, but CONTAINS accepts 'a OR b' in a single value. Requires a live Insight Tag on the site, which linkedin\_ads\_get\_insight\_tag confirms. |
| `attribution_type` | enum (`LAST_TOUCH_BY_CAMPAIGN`, `LAST_TOUCH_BY_CONVERSION`) | No | - | LAST\_TOUCH\_BY\_CAMPAIGN counts the conversion once for every campaign it can be attributed to. LAST\_TOUCH\_BY\_CONVERSION counts it once overall. LinkedIn defaults to LAST\_TOUCH\_BY\_CAMPAIGN. |
| `post_click_attribution_window_size` | integer | No | - | Days after a click that still count, 1, 7 or 30. LinkedIn defaults to 30. |
| `view_through_attribution_window_size` | integer | No | - | Days after a view that still count, 1, 7 or 30. LinkedIn defaults to 7. |
| `value_amount` | number | No | - | Monetary value of one conversion. Leave empty unless the conversion has a fixed worth. The currency follows the ad account. |
| `value_type` | enum (`DYNAMIC`, `FIXED`, `NO_VALUE`) | No | - | DYNAMIC uses the value sent with each event and is LinkedIn's default. FIXED uses value\_amount for every conversion. NO\_VALUE records no value. |
| `enabled` | boolean | No | `True` | Whether the rule starts matching immediately. Defaults to true. |

## Output

**Type**: `Dict`

Returns the created conversion rule.

**Fields**: `id`, `urn`, `name`, `type`, `enabled`, `attribution_type`, `url_match_rules`, `value`


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