Adspirer icon

Adspirer

Manage ad campaigns across Google, Meta, LinkedIn & TikTok Ads via the Adspirer REST API

Actions119

Get Linkedin Campaign Performance

AI-generated

Summary

Retrieve detailed LinkedIn Ads campaign performance data with optional filters and granular breakdowns.

Inputs

  • Platform (required) — Select 'LinkedIn Ads' as the advertising platform to query LinkedIn campaign data.
  • Ad Account Id — Specify a LinkedIn Ads account ID to override the default connected account.
  • Campaign Id — Filter performance results to a specific campaign by its unique ID.
  • Campaign Name — Provide a partial name to filter campaigns by name match.
  • Date Range — Select a preset date range such as 'last_7_days', 'last_14_days', etc., for the performance data.
  • Start Date — Set a custom start date (YYYY-MM-DD) for the data query.
  • End Date — Set a custom end date (YYYY-MM-DD) for the data query.
  • Lookback Days — Specify the number of days (7-120) to analyze. Numeric input overrides explicit dates if provided.
  • Include Campaigns — Choose whether to include a per-campaign performance breakdown in the results.
  • Include Comprehensive — Include detailed creative and engagement analysis in the output.
  • Include Trends — Include time series trend data such as daily metrics and week-over-week/month-over-month changes.
  • Raw Data — If true, return only raw performance metrics (spend, clicks, impressions, conversions, CPA, CPC, CTR, CVR, ROAS) by campaign, ad, and date as a JSON code block.

Output shape

a JSON object containing LinkedIn Ads campaign performance metrics and optionally detailed breakdowns and trend data

The output shape depends on the parameters: enabling 'Raw Data' returns raw metric JSON only; without it the response includes structured summaries, creative engagement analyses, and trend information if requested. Date filters can be provided via presets, exact start/end dates, or lookback days. Campaign filters are optional, allowing all campaigns or filtered sets.

Examples

Example 1: Retrieve performance data for a specified LinkedIn Ads campaign ID over the last 30 days including trend and creative analysis.

Platform='LinkedIn Ads', Campaign Id set, Date Range='last_30_days', Include Campaigns=true, Include Comprehensive=true, Include Trends=true, Raw Data=false.

Example 2: Get raw performance metrics for all campaigns in a LinkedIn Ads account over a custom date range.

Platform='LinkedIn Ads', Ad Account Id set, Start Date and End Date set, Include Campaigns and other broad breakdowns disabled, Raw Data=true.

Links

Discussion