explain_linkedin_anomaly

LinkedIn Ads Read

User asks why their LinkedIn metrics changed, wants to understand a performance drop/spike, or says something like "My LinkedIn leads dropped 40%, why?" Explains significant metric changes with contr

Endpoint

POST https://api.adspirer.ai/api/v1/tools/explain_linkedin_anomaly/execute

Headers

Description

User asks why their LinkedIn metrics changed, wants to understand a performance drop/spike, or says something like "My LinkedIn leads dropped 40%, why?" Explains significant metric changes with contributing factors: LinkedIn-Specific Factors Analyzed: - CPM changes (auction dynamics, competition) - CTR changes (creative effectiveness) - Audience saturation (B2B pools are smaller) - Seniority targeting shifts - Industry performance shifts - Company size targeting changes - Campaign changes (paused, new, budget) - B2B seasonal patterns (holidays, fiscal quarters) - Creative fatigue (14-day threshold) Returns: - Metric change summary (current vs previous) - Severity assessment (CRITICAL, HIGH, MEDIUM, LOW) - Contributing factors ranked by impact - Historical context (30/60/90 day averages) - Similar periods for comparison - Actionable recommendations - LinkedIn B2B-specific insights Parameters: - metric: Metric to analyze (required). Options: roas, ctr, cpc, cpm, conversions, conversion_rate, leads, engagement_rate, lead_form_completion_rate - period_start: Start date (YYYY-MM-DD format, required) - period_end: End date (YYYY-MM-DD format, required) - comparison_period_start: Optional comparison start date - comparison_period_end: Optional comparison end date - ad_account_id: Required for multi-account users. Get from list_connected_accounts Example Prompts: - "Why did my LinkedIn ROAS drop last week?" - "Explain the LinkedIn CTR decline in December" - "My LinkedIn leads dropped 40%, what happened?" - "Why did LinkedIn CPC increase?" Execution time: 4-6 seconds

Request body

All tool arguments are wrapped in an arguments object.

FieldTypeDescription
metricstring optionalMetric to analyze. Options: roas, ctr, cpc, cpm, conversions, conversion_rate, leads, engagement_rate, lead_form_completion_rate. Default: 'ctr' default: "ctr"
period_startstring optionalStart date of analysis period (YYYY-MM-DD format). Defaults to 7 days ago.
period_endstring optionalEnd date of analysis period (YYYY-MM-DD format). Defaults to yesterday.
comparison_period_startstring optionalOptional start date of comparison period. Defaults to same-length period immediately before analysis period.
comparison_period_endstring optionalOptional end date of comparison period. Defaults to day before period_start.
ad_account_idstring optionalLinkedIn Ad Account ID. Required for multi-account users. Get from list_connected_accounts.
raw_databoolean optionalIf true, return ONLY raw metrics as a JSON code block (no severity labels, suggested bids/budgets, industry benchmarks, or optimization recommendations). Use when you run your own attribution model or want to minimize token usage. default: false

Example request

{
  "arguments": {
    "metric": "ctr",
    "period_start": "string",
    "period_end": "string",
    "comparison_period_start": "string",
    "comparison_period_end": "string",
    "ad_account_id": "string"
  }
}

Example responses

200 — Success

{
  "success": true,
  "data": {
    "text": "(tool-specific textual output for explain_linkedin_anomaly)",
    "quota": {
      "used": 42,
      "limit": 150,
      "tier": "plus",
      "period_end": "2026-05-01"
    }
  },
  "tool": "explain_linkedin_anomaly"
}

400 — Tool-level error (bad arguments / multi-account selection)

{
  "success": false,
  "error": "You have 25 meta_ads accounts connected. Please specify which account to use by passing the ad_account_id parameter:\n  - Acme Holdings (ad_account_id=\"act_123456789\")\n  - Acme EU (ad_account_id=\"act_987654321\")",
  "is_error": true,
  "tool": "explain_linkedin_anomaly"
}

402 — Quota exhausted

{
  "success": false,
  "error": "\ud83d\udea8 Monthly limit reached (150/150 tool calls on Plus tier).\nUpgrade to Pro at https://adspirer.ai to keep building.",
  "is_error": true,
  "tool": "explain_linkedin_anomaly",
  "quota": {
    "used": 150,
    "limit": 150,
    "tier": "plus",
    "period_end": "2026-05-01",
    "upgrade_url": "https://adspirer.ai"
  }
}

Try it live


Adspirer REST API — get an API key at adspirer.ai/keys · adspirer.ai