Li List Campaigns
li_list_campaignsGet all campaigns in a LinkedIn ad account (e.g., account ID "501234567"). Returns campaign IDs, names, budgets, status, and date ranges.
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": {
"count": 10,
"start": 0,
"account_id": "508127070"
},
"name": "li_list_campaigns"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| count | No | Max results (default 10) | |
| start | No | Pagination offset (default 0) | |
| account_id | Yes | Sponsored account ID (numeric, e.g., "508127070") |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| error | No | Error code if connection not found | |
| paging | No | Pagination metadata | |
| message | No | Error message with guidance | |
| elements | No | List of campaigns |