Inputs
Output
Type:Dict
Returns the created conversion rule.
Fields: id, urn, name, type, enabled, attribution_type, url_match_rules, valueDocumentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Create an Insight Tag conversion rule on a LinkedIn ad account, either matching page URLs or firing from an event
| 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) |
| 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. |
Dict
Returns the created conversion rule.
Fields: id, urn, name, type, enabled, attribution_type, url_match_rules, value