> ## 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: Ad Analytics

> Get LinkedIn ad impressions, clicks, engagement and spend per company that saw your ads (including companies that never clicked), or per campaign or creative.

Get LinkedIn ad impressions, clicks, engagement and spend per company that saw your ads (including companies that never clicked), or per campaign or creative.

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

## Run this action

This action has conditional or dynamic inputs. A static example cannot describe these inputs reliably.

Read the live contract before you execute this action:

```bash theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
deepline describe linkedin_ads_audiences_ad_analytics --json
```

## 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",
    "pivot": "example",
    "start_date": "2026-01-15T12:00:00Z",
    "end_date": "2026-01-15T12:00:00Z",
    "rows": [
      {
        "pivot_urn": "example",
        "pivot_id": "pivot_123",
        "organization_urn": "example",
        "linkedin_company_url": "https://www.linkedin.com/in/jane-doe",
        "impressions": 1,
        "clicks": 1,
        "landing_page_clicks": 1,
        "likes": 1,
        "comments": 1,
        "shares": 1,
        "follows": 1,
        "reactions": 1,
        "total_engagements": 1,
        "cost_in_local_currency": 1,
        "cost_in_usd": 1,
        "start_date": "2026-01-15T12:00:00Z",
        "end_date": "2026-01-15T12:00:00Z"
      }
    ],
    "count": 123,
    "truncated": true
  }
}
```

Use `deepline describe linkedin_ads_audiences_ad_analytics --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. |
| `payload.start_date` | `string` | Yes | — | Inclusive start date, YYYY-MM-DD (UTC). Pattern: `^\d&#123;4&#125;-\d&#123;2&#125;-\d&#123;2&#125;$`. |
| `payload.end_date` | `string` | No | — | Inclusive end date, YYYY-MM-DD (UTC). Defaults to today. Pattern: `^\d&#123;4&#125;-\d&#123;2&#125;-\d&#123;2&#125;$`. |
| `payload.campaign_ids` | `array` | No | — | Only count delivery from these campaigns. Bare numeric ids or urn:li:sponsoredCampaign:\{id}. Minimum items: 1. |
| `payload.creative_ids` | `array` | No | — | Only count delivery from these creatives. Bare numeric ids or urn:li:sponsoredCreative:\{id}. Minimum items: 1. |
| `payload.pivot` | `"MEMBER_COMPANY" \| "CAMPAIGN" \| "CREATIVE"` | No | `"MEMBER_COMPANY"` | Group rows by the company the viewing members work at (MEMBER\_COMPANY), by campaign, or by creative. Allowed: `MEMBER_COMPANY`, `CAMPAIGN`, `CREATIVE`. |

<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
      },
      "start_date": {
        "type": "string",
        "description": "Inclusive start date, YYYY-MM-DD (UTC).",
        "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
      },
      "end_date": {
        "type": "string",
        "description": "Inclusive end date, YYYY-MM-DD (UTC). Defaults to today.",
        "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
      },
      "campaign_ids": {
        "type": "array",
        "description": "Only count delivery from these campaigns. Bare numeric ids or urn:li:sponsoredCampaign:{id}.",
        "minItems": 1,
        "items": {
          "type": "string",
          "pattern": "^(urn:li:sponsoredCampaign:)?\\d+$"
        }
      },
      "creative_ids": {
        "type": "array",
        "description": "Only count delivery from these creatives. Bare numeric ids or urn:li:sponsoredCreative:{id}.",
        "minItems": 1,
        "items": {
          "type": "string",
          "pattern": "^(urn:li:sponsoredCreative:)?\\d+$"
        }
      },
      "pivot": {
        "type": "string",
        "description": "Group rows by the company the viewing members work at (MEMBER_COMPANY), by campaign, or by creative.",
        "default": "MEMBER_COMPANY",
        "enum": [
          "MEMBER_COMPANY",
          "CAMPAIGN",
          "CREATIVE"
        ]
      }
    },
    "required": [
      "start_date"
    ],
    "additionalProperties": false
  }
  ```
</details>

## Output reference

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `result.data` | `object` | Yes | — | — |
| `result.data.account_id` | `string` | Yes | — | — |
| `result.data.pivot` | `string` | Yes | — | — |
| `result.data.start_date` | `string` | Yes | — | — |
| `result.data.end_date` | `string \| null` | Yes | — | — |
| `result.data.rows` | `array` | Yes | — | — |
| `result.data.rows[].pivot_urn` | `string` | Yes | — | — |
| `result.data.rows[].pivot_id` | `string` | Yes | — | — |
| `result.data.rows[].organization_urn` | `string \| null` | Yes | — | — |
| `result.data.rows[].linkedin_company_url` | `string \| null` | Yes | — | — |
| `result.data.rows[].impressions` | `number \| null` | Yes | — | — |
| `result.data.rows[].clicks` | `number \| null` | Yes | — | — |
| `result.data.rows[].landing_page_clicks` | `number \| null` | Yes | — | — |
| `result.data.rows[].likes` | `number \| null` | Yes | — | — |
| `result.data.rows[].comments` | `number \| null` | Yes | — | — |
| `result.data.rows[].shares` | `number \| null` | Yes | — | — |
| `result.data.rows[].follows` | `number \| null` | Yes | — | — |
| `result.data.rows[].reactions` | `number \| null` | Yes | — | — |
| `result.data.rows[].total_engagements` | `number \| null` | Yes | — | — |
| `result.data.rows[].cost_in_local_currency` | `number \| null` | Yes | — | — |
| `result.data.rows[].cost_in_usd` | `number \| null` | Yes | — | — |
| `result.data.rows[].start_date` | `string \| null` | Yes | — | — |
| `result.data.rows[].end_date` | `string \| 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"
          },
          "pivot": {
            "type": "string"
          },
          "start_date": {
            "type": "string"
          },
          "end_date": {
            "type": [
              "string",
              "null"
            ]
          },
          "rows": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "pivot_urn": {
                  "type": "string"
                },
                "pivot_id": {
                  "type": "string"
                },
                "organization_urn": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "linkedin_company_url": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "impressions": {
                  "type": [
                    "number",
                    "null"
                  ]
                },
                "clicks": {
                  "type": [
                    "number",
                    "null"
                  ]
                },
                "landing_page_clicks": {
                  "type": [
                    "number",
                    "null"
                  ]
                },
                "likes": {
                  "type": [
                    "number",
                    "null"
                  ]
                },
                "comments": {
                  "type": [
                    "number",
                    "null"
                  ]
                },
                "shares": {
                  "type": [
                    "number",
                    "null"
                  ]
                },
                "follows": {
                  "type": [
                    "number",
                    "null"
                  ]
                },
                "reactions": {
                  "type": [
                    "number",
                    "null"
                  ]
                },
                "total_engagements": {
                  "type": [
                    "number",
                    "null"
                  ]
                },
                "cost_in_local_currency": {
                  "type": [
                    "number",
                    "null"
                  ]
                },
                "cost_in_usd": {
                  "type": [
                    "number",
                    "null"
                  ]
                },
                "start_date": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "end_date": {
                  "type": [
                    "string",
                    "null"
                  ]
                }
              },
              "required": [
                "pivot_urn",
                "pivot_id",
                "organization_urn",
                "linkedin_company_url",
                "impressions",
                "clicks",
                "landing_page_clicks",
                "likes",
                "comments",
                "shares",
                "follows",
                "reactions",
                "total_engagements",
                "cost_in_local_currency",
                "cost_in_usd",
                "start_date",
                "end_date"
              ],
              "additionalProperties": true
            }
          },
          "count": {
            "type": "number"
          },
          "truncated": {
            "type": "boolean"
          }
        },
        "required": [
          "account_id",
          "pivot",
          "start_date",
          "end_date",
          "rows",
          "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.