> ## 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.

# Get Report

> Get TikTok integrated reporting with dimensions, metrics, date range, and filters. Supports campaign/ad group/ad level.



## OpenAPI

````yaml /api-reference/openapi.yaml post /tiktok/mcp#get_report
openapi: 3.1.0
info:
  title: Multi-Source Ads API
  version: 1.0.0
  description: >-
    Unified API for managing ad campaigns across Meta, LinkedIn, and Google. MCP
    tools are accessed via JSON-RPC 2.0 over HTTP (`POST /{source}/mcp`). Google
    Sheets/Drive endpoints use standard REST.
servers:
  - url: https://api.adside.ai
    description: Production
  - url: http://localhost:3100
    description: Local development
security:
  - bearerAuth: []
tags:
  - name: Accounts
    description: ''
  - name: Ads
    description: ''
  - name: Analytics
    description: ''
  - name: Asset Groups
    description: ''
  - name: Assets
    description: ''
  - name: Audiences
    description: ''
  - name: Campaign Groups
    description: ''
  - name: Campaigns
    description: ''
  - name: Conversions
    description: ''
  - name: Creatives
    description: ''
  - name: Drive
    description: ''
  - name: Google
    description: ''
  - name: Google Ads
    description: ''
  - name: Google Tag Manager
    description: ''
  - name: Keywords
    description: ''
  - name: Linkedin
    description: ''
  - name: Meta
    description: ''
  - name: Meta Reporting
    description: ''
  - name: OAuth
    description: ''
  - name: Other
    description: ''
  - name: Reports
    description: ''
  - name: Sheets
    description: ''
  - name: Targeting
    description: ''
  - name: Tiktok
    description: ''
  - name: Workspace
    description: ''
paths:
  /tiktok/mcp#get_report:
    post:
      tags:
        - Tiktok
        - Reports
      summary: Get Report
      description: >-
        Get TikTok integrated reporting with dimensions, metrics, date range,
        and filters. Supports campaign/ad group/ad level.
      operationId: tiktok_get_report
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - jsonrpc
                - method
                - params
              properties:
                jsonrpc:
                  type: string
                  const: '2.0'
                id:
                  type: string
                  example: '1'
                method:
                  type: string
                  const: tools/call
                params:
                  type: object
                  required:
                    - name
                    - arguments
                  properties:
                    name:
                      type: string
                      const: get_report
                    arguments:
                      $ref: '#/components/schemas/tiktok_get_report_input'
      responses:
        '200':
          description: JSON-RPC response with tool result
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/McpToolResponse'
        '401':
          description: Missing or invalid API key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '403':
          description: Channel not connected or access denied
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '429':
          description: Rate limit exceeded
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      security:
        - bearerAuth: []
components:
  schemas:
    tiktok_get_report_input:
      type: object
      properties:
        advertiser_id:
          description: >-
            Omit it: it defaults to the advertiser this client is connected to,
            and any other advertiser is refused.
          type: string
        report_type:
          default: BASIC
          description: BASIC = standard metrics, AUDIENCE = demographic breakdown
          type: string
          enum:
            - BASIC
            - AUDIENCE
            - PLAYABLE_MATERIAL
            - CATALOG
        data_level:
          default: AUCTION_CAMPAIGN
          description: Reporting level
          type: string
          enum:
            - AUCTION_CAMPAIGN
            - AUCTION_ADGROUP
            - AUCTION_AD
        dimensions:
          default:
            - campaign_id
          description: >-
            Grouping dimensions: campaign_id, adgroup_id, ad_id, stat_time_day,
            country_code, gender, age, etc.
          type: array
          items:
            type: string
        metrics:
          default:
            - spend
            - impressions
            - clicks
            - ctr
            - cpc
            - cpm
          description: >-
            Metrics: spend, impressions, clicks, conversions, ctr, cpc, cpm,
            reach, frequency, video_views_p25/p50/p75/p100
          type: array
          items:
            type: string
        start_date:
          type: string
          description: Start date (YYYY-MM-DD)
        end_date:
          type: string
          description: End date (YYYY-MM-DD)
        filters:
          type: array
          items:
            type: object
            properties:
              field_name:
                type: string
              filter_type:
                type: string
                enum:
                  - IN
                  - NOT_IN
              filter_value:
                type: string
                description: JSON string of values array
            required:
              - field_name
              - filter_type
              - filter_value
        page:
          default: 1
          type: number
          minimum: 1
        page_size:
          default: 100
          type: number
          minimum: 1
          maximum: 1000
      required:
        - start_date
        - end_date
      $schema: http://json-schema.org/draft-07/schema#
    McpToolResponse:
      type: object
      properties:
        jsonrpc:
          type: string
          const: '2.0'
        id:
          type: string
        result:
          type: object
          properties:
            content:
              type: array
              items:
                type: object
                properties:
                  type:
                    type: string
                    const: text
                  text:
                    type: string
                    description: JSON-stringified tool result
    ErrorResponse:
      type: object
      properties:
        error:
          type: string
          description: Error message
        code:
          type: string
          enum:
            - UNAUTHORIZED
            - FORBIDDEN
            - NOT_FOUND
            - RATE_LIMITED
            - INTERNAL_ERROR
          description: Error code
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        API key (sk_live_*) — SHA256 hashed, looked up in Redis. Generate via
        the web app's workspace settings.

````