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

# Spend and performance for the account, a campaign, an ad set or an ad



## OpenAPI

````yaml /api-reference/openapi.json get /v1/ads/{accountId}/insights
openapi: 3.0.0
info:
  title: PlugKit API
  description: >-
    One API to publish, schedule and message across Instagram, WhatsApp, TikTok,
    Telegram, YouTube and X.
  version: 1.0.0
  contact: {}
servers: []
security: []
tags: []
paths:
  /v1/ads/{accountId}/insights:
    get:
      tags:
        - ads
      summary: Spend and performance for the account, a campaign, an ad set or an ad
      operationId: AdsController_getInsights
      parameters:
        - name: accountId
          required: true
          in: path
          schema:
            type: string
        - name: objectId
          required: false
          in: query
          description: Campaign, ad set or ad to measure. Defaults to the whole ad account.
          schema:
            type: string
        - name: level
          required: false
          in: query
          schema:
            enum:
              - account
              - campaign
              - adset
              - ad
            type: string
        - name: datePreset
          required: false
          in: query
          description: Meta date preset (today, yesterday, last_7d, last_30d, …).
          schema:
            example: last_7d
            type: string
        - name: since
          required: false
          in: query
          schema:
            example: '2026-08-01'
            type: string
        - name: until
          required: false
          in: query
          schema:
            example: '2026-08-06'
            type: string
        - name: limit
          required: false
          in: query
          schema:
            type: number
      responses:
        '200':
          description: ''
      security:
        - api-key: []
components:
  securitySchemes:
    api-key:
      scheme: bearer
      bearerFormat: sk_...
      type: http

````