> ## Documentation Index
> Fetch the complete documentation index at: https://deepline.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# LinkedIn Ads Audiences: List Conversion Rules

> List the conversion rules in a LinkedIn ad account with their id, name, type, whether each is enabled and its conversion method, to find the rule to send.

List the conversion rules in a LinkedIn ad account with their id, name, type, whether each is enabled and its conversion method, to find the rule to send.

> [!NOTE]
>
> Tool ID: `linkedin_ads_audiences_list_conversion_rules`

## Run this action

Use the TypeScript SDK for one call. Use `ctx.tools.execute(...)` inside a Play for durable calls, scheduled calls, or CSV processing.

```ts theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
import { Deepline } from 'deepline';

const deepline = await Deepline.connect();
const result = await deepline.tools.execute(
  'linkedin_ads_audiences_list_conversion_rules',
  {
    "account_id": "123456789"
  },
);

console.log(result.toolResponse.raw);
```

### CLI

```bash theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
deepline run linkedin_ads_audiences_list_conversion_rules --input '{
  "account_id": "123456789"
}'
```

## Example response

The SDK returns this shape at `result.toolResponse.raw`. The example values illustrate the response.

```json theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
{
  "data": {
    "account_id": "123456789",
    "conversion_rules": [
      {
        "id": "id_123",
        "conversion_urn": "example",
        "name": "Example",
        "enabled": false,
        "conversion_method": "example",
        "type": "example",
        "attribution_type": "example",
        "post_click_attribution_window_days": 1,
        "view_through_attribution_window_days": 1,
        "created_at": 1,
        "last_modified_at": 1
      }
    ],
    "count": 123,
    "truncated": true
  }
}
```

Use `deepline describe linkedin_ads_audiences_list_conversion_rules --json` for the latest machine-readable contract.

## Input reference

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `payload.account_id` | `string` | No | — | LinkedIn sponsored account ID. Find it in Campaign Manager under Account Assets, or in the URL as /campaignmanager/accounts/\{id}. Pass the bare numeric id or a full urn:li:sponsoredAccount:\{id}. Deepline normalizes either form. Optional: defaults to the workspace default account, or the sole enabled account when only one exists. Minimum length: 1. |

<details>
  <summary>Show raw input schema</summary>

  ### Input JSON Schema

  ```json theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
  {
    "type": "object",
    "properties": {
      "account_id": {
        "type": "string",
        "description": "LinkedIn sponsored account ID. Find it in Campaign Manager under Account Assets, or in the URL as /campaignmanager/accounts/{id}. Pass the bare numeric id or a full urn:li:sponsoredAccount:{id}; Deepline normalizes either form. Optional: defaults to the workspace default account, or the sole enabled account when only one exists.",
        "minLength": 1
      }
    },
    "additionalProperties": false
  }
  ```
</details>

## Output reference

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `result.data` | `object` | Yes | — | — |
| `result.data.account_id` | `string` | Yes | — | — |
| `result.data.conversion_rules` | `array` | Yes | — | — |
| `result.data.conversion_rules[].id` | `string` | Yes | — | — |
| `result.data.conversion_rules[].conversion_urn` | `string` | Yes | — | — |
| `result.data.conversion_rules[].name` | `string \| null` | Yes | — | — |
| `result.data.conversion_rules[].enabled` | `boolean \| null` | Yes | — | — |
| `result.data.conversion_rules[].conversion_method` | `string \| null` | Yes | — | — |
| `result.data.conversion_rules[].type` | `string \| null` | Yes | — | — |
| `result.data.conversion_rules[].attribution_type` | `string \| null` | Yes | — | — |
| `result.data.conversion_rules[].post_click_attribution_window_days` | `number \| null` | Yes | — | — |
| `result.data.conversion_rules[].view_through_attribution_window_days` | `number \| null` | Yes | — | — |
| `result.data.conversion_rules[].created_at` | `number \| null` | Yes | — | — |
| `result.data.conversion_rules[].last_modified_at` | `number \| null` | Yes | — | — |
| `result.data.count` | `number` | Yes | — | — |
| `result.data.truncated` | `boolean` | Yes | — | — |

<details>
  <summary>Show raw output schema</summary>

  ### Output JSON Schema

  ```json theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
  {
    "type": "object",
    "properties": {
      "data": {
        "type": "object",
        "properties": {
          "account_id": {
            "type": "string"
          },
          "conversion_rules": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string"
                },
                "conversion_urn": {
                  "type": "string"
                },
                "name": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "enabled": {
                  "type": [
                    "boolean",
                    "null"
                  ]
                },
                "conversion_method": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "type": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "attribution_type": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "post_click_attribution_window_days": {
                  "type": [
                    "number",
                    "null"
                  ]
                },
                "view_through_attribution_window_days": {
                  "type": [
                    "number",
                    "null"
                  ]
                },
                "created_at": {
                  "type": [
                    "number",
                    "null"
                  ]
                },
                "last_modified_at": {
                  "type": [
                    "number",
                    "null"
                  ]
                }
              },
              "required": [
                "id",
                "conversion_urn",
                "name",
                "enabled",
                "conversion_method",
                "type",
                "attribution_type",
                "post_click_attribution_window_days",
                "view_through_attribution_window_days",
                "created_at",
                "last_modified_at"
              ],
              "additionalProperties": true
            }
          },
          "count": {
            "type": "number"
          },
          "truncated": {
            "type": "boolean"
          }
        },
        "required": [
          "account_id",
          "conversion_rules",
          "count",
          "truncated"
        ],
        "additionalProperties": true
      }
    },
    "required": [
      "data"
    ],
    "additionalProperties": true
  }
  ```
</details>

## Deepline cost

* Pricing model: `fixed` (per call).
* Estimated Deepline credits: `0` per pricing unit.
* Provider-native pricing may still exist outside Deepline credit billing.

## Related documentation

* [Connect integrations](https://deepline.com/docs/integrations.md)
* [SDK V2 quickstart](https://deepline.com/docs/sdk-v2/quickstart.md)
* [SDK reference](https://deepline.com/docs/sdk-v2/sdk-reference.md)
* [Run tools across a CSV](https://deepline.com/docs/sdk-v2/batch-csv.md)


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