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

# Analytics get

> Get performance analytics (impressions, clicks, cost, conversions, etc.) for LinkedIn ad entities. Group by account, campaign group, campaign, or creative with daily/monthly/all-time granularity.

CLI: `adside linkedin analytics get`



## OpenAPI

````yaml /api-reference/openapi.yaml post /v1/workspaces/{workspaceId}/linkedin/analytics/get
openapi: 3.1.0
info:
  title: Adside API
  version: 1.0.0
  description: >-
    Campaigns, creatives, assets and reporting across your ad accounts. Call it
    with a personal API key as a bearer token, or with the `adside` CLI: each
    page names its command.
servers:
  - url: https://api.adside.ai
    description: Production
security:
  - userAccess: []
tags:
  - name: Account
  - name: Reporting
  - name: Meta
  - name: Google Ads
  - name: LinkedIn
  - name: TikTok
  - name: Reddit
  - name: Snapchat
  - name: X
  - name: Google Tag Manager
  - name: Creatives
  - name: Creative styles
  - name: Media
  - name: Characters
  - name: Assets
  - name: Brands
  - name: Brain
  - name: Research
  - name: Boards
  - name: Artifacts
  - name: Audiences
  - name: Ad comments
  - name: Publications
  - name: Routines
  - name: Skills
  - name: To-dos
  - name: Audit
  - name: Credits
paths:
  /v1/workspaces/{workspaceId}/linkedin/analytics/get:
    post:
      tags:
        - LinkedIn
      summary: Analytics get
      description: >-
        Get performance analytics (impressions, clicks, cost, conversions, etc.)
        for LinkedIn ad entities. Group by account, campaign group, campaign, or
        creative with daily/monthly/all-time granularity.


        CLI: `adside linkedin analytics get`
      operationId: linkedin.get_analytics
      parameters:
        - name: workspaceId
          in: path
          required: true
          schema:
            type: string
            minLength: 1
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $schema: https://json-schema.org/draft/2020-12/schema
              type: object
              properties:
                account_id:
                  description: >-
                    LinkedIn Ad Account ID. Omit it: it defaults to the account
                    this workspace is connected to, and any other account is
                    refused.
                  type: string
                pivot:
                  type: string
                  enum:
                    - ACCOUNT
                    - CAMPAIGN_GROUP
                    - CAMPAIGN
                    - CREATIVE
                  description: Dimension to group results by
                time_granularity:
                  default: ALL
                  description: Time granularity for results
                  type: string
                  enum:
                    - DAILY
                    - MONTHLY
                    - ALL
                date_range_start:
                  type: object
                  properties:
                    year:
                      type: number
                      description: Year (e.g. 2026)
                    month:
                      type: number
                      minimum: 1
                      maximum: 12
                      description: Month (1-12)
                    day:
                      type: number
                      minimum: 1
                      maximum: 31
                      description: Day (1-31)
                  required:
                    - year
                    - month
                    - day
                  description: Start date (inclusive)
                date_range_end:
                  description: End date (inclusive). If omitted, returns data up to now.
                  type: object
                  properties:
                    year:
                      type: number
                      description: Year (e.g. 2026)
                    month:
                      type: number
                      minimum: 1
                      maximum: 12
                      description: Month (1-12)
                    day:
                      type: number
                      minimum: 1
                      maximum: 31
                      description: Day (1-31)
                  required:
                    - year
                    - month
                    - day
                campaign_ids:
                  description: Filter by campaign IDs
                  type: array
                  items:
                    type: string
                campaign_group_ids:
                  description: Filter by campaign group IDs
                  type: array
                  items:
                    type: string
                creative_ids:
                  description: Filter by creative URNs
                  type: array
                  items:
                    type: string
                fields:
                  description: >-
                    Specific metrics to return (max 20). Default: impressions,
                    clicks. Examples: costInLocalCurrency, landingPageClicks,
                    likes, shares, externalWebsiteConversions
                  type: array
                  items:
                    type: string
              required:
                - pivot
                - date_range_start
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $schema: https://json-schema.org/draft/2020-12/schema
      security:
        - userAccess: []
components:
  securitySchemes:
    userAccess:
      type: http
      scheme: bearer
      description: >-
        A personal API key (`adside_pat_…`) or a token from `adside login`.
        Either carries the permissions of the person it belongs to.

````

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