# Hermoso: create_linkedin_conversion_rule · Hermoso developer docs

> Machine-readable twin of https://hermoso.ai/docs/reference/ads/create_linkedin_conversion_rule/. Generated from the shipped page. Do not edit by hand.
> Full agent guide: https://hermoso.ai/llms.txt · MCP: https://app.hermoso.ai/mcp

[Docs](https://hermoso.ai/docs/) / [Tool reference](https://hermoso.ai/docs/reference/) / [Ad campaign management](https://hermoso.ai/docs/reference/ads/) / create_linkedin_conversion_rule

# `create_linkedin_conversion_rule`

Create a LinkedIn conversion rule

Area: LINKEDIN GAP SWEEP PHASE 1 · [Ad campaign management](https://hermoso.ai/docs/reference/ads/). Generated from the running MCP server, like the rest of the [tool reference](https://hermoso.ai/docs/reference/).

## Description

Create a LinkedIn CONVERSION RULE — the object LinkedIn attributes conversions to, and the prerequisite for send_linkedin_conversions. `type` is the behaviour being tracked (LEAD, PURCHASE, SIGN_UP, QUALIFIED_LEAD, KEY_PAGE_VIEW…). THE RULE IS BORN ASSOCIATED WITH NOTHING: until you attach campaigns with associate_linkedin_conversion_campaigns it attributes nothing, which also makes it the safe place to send test events — LinkedIn has no test mode on the wire. Pass associateAllCampaigns:true to attach it to up to 200 ACTIVE campaigns instead; that spends nothing but it changes what those live campaigns optimise toward and what their reports count, so ask the user first. Attribution windows are 1, 7, 30 or 90 days (365 only for SUBMIT_APPLICATION, PURCHASE, ADD_TO_CART, QUALIFIED_LEAD and LEAD). Creating a rule cannot spend money — it is a definition. Free.

## Parameters

Parameter Type Description

`adAccountId` `string` LinkedIn ad account id shared with this profile; needed only when several are shared

`name` required `string` shown in Campaign Manager and in every report

`type` required `string` the conversion behaviour, e.g. LEAD, PURCHASE, SIGN_UP, QUALIFIED_LEAD, KEY_PAGE_VIEW

`postClickAttributionWindowSize` `number` 1, 7, 30 or 90 days (365 for the five long-window types). LinkedIn default 30.

`viewThroughAttributionWindowSize` `number` same allowed values. LinkedIn default 7.

`attributionType` `"LAST_TOUCH_BY_CAMPAIGN" | "LAST_TOUCH_BY_CONVERSION"` how conversions are credited across campaigns: last touch by campaign or by conversion

`valueType` `"DYNAMIC" | "FIXED" | "NO_VALUE"` DYNAMIC (default) takes each event’s own value

`enabled` `boolean` default true. A disabled rule REFUSES streamed events.

`associateAllCampaigns` `boolean` attach to up to 200 ACTIVE campaigns now — ask the user first

`associateCampaignsByObjective` `boolean` attach only to campaigns whose objective matches this conversion type

## Example call

Every required parameter is shown, filled from the schema where it gives a value and otherwise with a placeholder naming the type. Replace the placeholders with real values. The same call works on the MCP server, the CLI and `POST https://app.hermoso.ai/v1/tools/create_linkedin_conversion_rule`.

**MCP** (`tools/call`)

`{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"create_linkedin_conversion_rule","arguments":{"name":"<string>","type":"<string>"}}}`
**CLI**

`hermoso call create_linkedin_conversion_rule --json '{"name":"<string>","type":"<string>"}'`

## Credits

Credits are spent only on two things: running an AI model (image, video, voice, text, planning, post-production) and Ad Spy research. See [Credits & costs](https://hermoso.ai/docs/credits/).

## Related tools

- [send_linkedin_conversions](https://hermoso.ai/docs/reference/ads/send_linkedin_conversions/) Send conversions to LinkedIn (Conversions API)
- [associate_linkedin_conversion_campaigns](https://hermoso.ai/docs/reference/ads/associate_linkedin_conversion_campaigns/) Attach campaigns to a LinkedIn conversion rule
- [delete_linkedin_ads_object](https://hermoso.ai/docs/reference/ads/delete_linkedin_ads_object/) Delete a LinkedIn campaign group / campaign / ad
- [list_linkedin_conversion_rules](https://hermoso.ai/docs/reference/ads/list_linkedin_conversion_rules/) List LinkedIn conversion rules
- [set_linkedin_ads_tracking](https://hermoso.ai/docs/reference/ads/set_linkedin_ads_tracking/) LinkedIn ads dynamic UTM tracking
- [update_linkedin_conversion_rule](https://hermoso.ai/docs/reference/ads/update_linkedin_conversion_rule/) Update or disable a LinkedIn conversion rule
- [preview_linkedin_ad](https://hermoso.ai/docs/reference/ads/preview_linkedin_ad/) Preview a LinkedIn ad + its review status
- [update_linkedin_ads_creative](https://hermoso.ai/docs/reference/ads/update_linkedin_ads_creative/) Edit a LinkedIn ad (copy, landing page, button, lead form)
- [update_linkedin_lead_form](https://hermoso.ai/docs/reference/ads/update_linkedin_lead_form/) Edit or archive a LinkedIn lead gen form
- [update_meta_object](https://hermoso.ai/docs/reference/ads/update_meta_object/) Edit a Meta campaign / ad set / ad

[All 759 Ad campaign management tools](https://hermoso.ai/docs/reference/ads/) · [tools.json](https://hermoso.ai/docs/reference/tools.json)
