LinkedIn Ads: Get Insights
linkedin_get_insightsRead performance of one LinkedIn ad account from LinkedIn's reporting (adAnalytics) at account, campaign group, campaign or creative level over a date preset or an explicit since/until range: impressions, clicks, CTR, spend, CPC and CPM on every row, plus the metric_set asked for (core, conversions, leads, video or engagement). time_increment splits rows by day or month; campaign_ids narrows to given campaigns; compare_previous_period reads the window just before as well and adds previous values and percentage deltas per row and in total. Rows are sorted by spend. Campaign and group names come from linkedin_list_campaigns' reads; creatives are reported by id. Reads only; changes nothing.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "linkedin_get_insights"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| level | No | Entity each row stands for. Default campaign. | |
| since | No | Start date YYYY-MM-DD. With until, overrides date_preset. | |
| until | No | End date YYYY-MM-DD. Required with since. | |
| metric_set | No | Which metrics to add to the core columns: core = impressions, clicks, landing page clicks, spend, leads, conversions, reach, engagements; conversions = conversions split post-click/post-view and conversion value; leads = lead form opens, leads, qualified leads, cost per qualified lead; video = views, starts, quartile completions, completions; engagement = reactions, comments, shares, follows, total engagements. Every set carries impressions, spend and (except video) clicks. Default core. | |
| date_preset | No | Date range preset, resolved in UTC and ending yesterday (this_month ends today). Default last_30d. | |
| campaign_ids | No | Only these campaign ids (from linkedin_list_campaigns). Omit for the whole account. | |
| ad_account_id | No | LinkedIn ad account to read: numeric account id or account name (from linkedin_list_ad_accounts). Pass it whenever the conversation is about a particular account; omitted, the only account or the stored default is used. | |
| time_increment | No | all = one row per entity over the whole range; daily or monthly = one row per entity per period. Default all. | |
| compare_previous_period | No | Also read the immediately preceding window of equal length and report previous values and percentage deltas. Default false. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rows | Yes | One row per entity (and period). | |
| level | Yes | Entity level of the rows. | |
| totals | No | Sum over every row, only with compare_previous_period. | |
| currency | Yes | ISO currency code that every money field in this result is denominated in, e.g. UAH or USD. Null when it could not be resolved — do not assume a currency then. | |
| dateRange | Yes | Calendar dates the rows cover. | |
| metricSet | Yes | Metric set the rows carry. | |
| adAccountId | Yes | Numeric ad account id that was read. | |
| rowsReturned | Yes | Rows in this result. | |
| timeIncrement | Yes | all, daily or monthly. | |
| previousTotals | No | Sum over the preceding window, only with compare_previous_period. | |
| totalsDeltaPct | No | Percentage change of the totals, only with compare_previous_period. | |
| previousDateRange | No | The preceding window, only with compare_previous_period. | |
| conversionMetricsUnavailable | No | Written only when metric_set conversions or leads was asked and LinkedIn returned none of those metrics on any row. |