li_get_campaign
Pack: linkedin_ads · Endpoint: https://gateway.pipeworx.io/linkedin_ads/mcp
Get full details for a specific LinkedIn campaign (e.g., campaign ID “501234567”). Returns name, budget, spend, status, targeting, and performance metrics.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
campaign_id | string | yes | Campaign ID |
Example call
Arguments
{
"campaign_id": "501234567"
}
curl
curl -X POST https://gateway.pipeworx.io/linkedin_ads/mcp \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"li_get_campaign","arguments":{"campaign_id":"501234567"}}}'
TypeScript (@pipeworx/sdk)
import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();
const result = await pipeworx.call('li_get_campaign', {
"campaign_id": "501234567"
});
Response shape
| Field | Type | Description |
|---|---|---|
error | string | Error code if connection not found |
message | string | Error message with guidance |
id | string | Campaign ID |
name | string | Campaign name |
budget | object | Campaign budget details |
spend | object | Campaign spend details |
status | string | Campaign status |
startDate | object | Campaign start date |
endDate | object | Campaign end date |
targeting | object | Campaign targeting parameters |
Full JSON Schema
{
"type": "object",
"properties": {
"error": {
"type": "string",
"description": "Error code if connection not found"
},
"message": {
"type": "string",
"description": "Error message with guidance"
},
"id": {
"type": "string",
"description": "Campaign ID"
},
"name": {
"type": "string",
"description": "Campaign name"
},
"budget": {
"type": "object",
"description": "Campaign budget details",
"properties": {
"amount": {
"type": "number",
"description": "Budget amount"
},
"currencyCode": {
"type": "string",
"description": "Currency code"
}
}
},
"spend": {
"type": "object",
"description": "Campaign spend details",
"properties": {
"amount": {
"type": "number",
"description": "Spend amount"
},
"currencyCode": {
"type": "string",
"description": "Currency code"
}
}
},
"status": {
"type": "string",
"description": "Campaign status"
},
"startDate": {
"type": "object",
"description": "Campaign start date",
"properties": {
"year": {
"type": "number"
},
"month": {
"type": "number"
},
"day": {
"type": "number"
}
}
},
"endDate": {
"type": "object",
"description": "Campaign end date",
"properties": {
"year": {
"type": "number"
},
"month": {
"type": "number"
},
"day": {
"type": "number"
}
}
},
"targeting": {
"type": "object",
"description": "Campaign targeting parameters"
}
}
}
Connect
Add this to your MCP client config, or use one-click install buttons:
{
"mcpServers": {
"linkedin_ads": {
"url": "https://gateway.pipeworx.io/linkedin_ads/mcp"
}
}
}
See Getting Started for client-specific install steps.