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 | - | Post-click attribution window: 1, 7, 30, 90, 180 or 365 days. The 180/365-day windows apply only to SUBMIT_APPLICATION, PURCHASE, ADD_TO_CART, QUALIFIED_LEAD, LEAD, MARKETING_QUALIFIED_LEAD and SALES_QUALIFIED_LEAD; LinkedIn validates eligibility. LinkedIn defaults to 30. |
view_through_attribution_window_size | integer | No | - | View-through attribution window: 1, 7, 30, 90, 180 or 365 days. The 180/365-day windows apply only to SUBMIT_APPLICATION, PURCHASE, ADD_TO_CART, QUALIFIED_LEAD, LEAD, MARKETING_QUALIFIED_LEAD and SALES_QUALIFIED_LEAD; LinkedIn validates eligibility. 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. |