linkedin get insights
linkedin_get_insightsRun a LinkedIn Ads report grouped by one pivot to analyze performance by date range, granularity, and metrics; computes CTR, CPC, and CPM from raw data.
Instructions
Run a LinkedIn Ads report grouped by one pivot. This is the analytics finder: one pivot, any granularity, and up to 20 fields including dateRange and pivotValues. Ratios such as CTR, CPC and CPM do not exist in the API and are computed here from the raw terms.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pivot | No | Grouping. Defaults to CAMPAIGN. One of: ACCOUNT, CAMPAIGN_GROUP, CAMPAIGN, CREATIVE, COMPANY, SHARE, CONVERSION, MEMBER_COMPANY, MEMBER_COMPANY_SIZE, MEMBER_INDUSTRY, MEMBER_SENIORITY, MEMBER_JOB_TITLE, MEMBER_JOB_FUNCTION, MEMBER_COUNTRY_V2, MEMBER_REGION_V2, MEMBER_COUNTY, SERVING_LOCATION, PLACEMENT_NAME, IMPRESSION_DEVICE_TYPE, EVENT_STAGE, CARD_INDEX, CONVERSATION_NODE, CONVERSATION_NODE_OPTION_INDEX. | |
| endDate | No | Inclusive end, YYYY-MM-DD. Defaults to today. | |
| metrics | No | Metric keys from linkedin://metrics. Defaults to spend, impressions, clicks and the ratios. | |
| sortField | No | Native field used to order the returned rows. | |
| sortOrder | No | Ascending or descending native result ordering. | |
| startDate | Yes | Inclusive start, YYYY-MM-DD. | |
| adAccountId | Yes | Selected LinkedIn advertising account, numeric ID. It must be listed in LINKEDIN_ADS_ACCOUNT_IDS. | |
| campaignIds | No | Restrict reporting to these campaign IDs or URNs in the selected account. | |
| creativeIds | No | Restrict reporting to these owned creative IDs. | |
| campaignType | No | Native campaign format filter. | |
| timeGranularity | No | Defaults to ALL, one row for the whole range. | |
| campaignGroupIds | No | Restrict reporting to these owned campaign-group IDs. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes | Original tool result: parsed JSON when the text is JSON, otherwise the text. Provider fields depend on the selected query. |