Li Campaign Analytics
li_campaign_analyticsAnalyze campaign performance over a date range (e.g., "2024-01-01" to "2024-01-31"). Returns impressions, clicks, conversions, spend, and CTR by campaign.
Example tool call
This call uses example arguments supplied in the tool’s input schema.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"campaign_ids": [
"501234567",
"501234568"
],
"date_range_end": "2024-01-31",
"date_range_start": "2024-01-01",
"time_granularity": "DAILY"
},
"name": "li_campaign_analytics"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| campaign_ids | Yes | Array of campaign IDs to query | |
| date_range_end | Yes | End date (YYYY-MM-DD) | |
| date_range_start | Yes | Start date (YYYY-MM-DD) | |
| time_granularity | No | Granularity: DAILY, MONTHLY, or ALL (default ALL) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| error | No | Error code if connection not found | |
| message | No | Error message with guidance | |
| elements | No | Analytics data by campaign |