Linkedin Ads
liveSaaSProductivityLinkedIn Ads API — list ad accounts, campaigns, creatives, and fetch analytics (impressions, clicks, conversions) via OAuth.
Tools
li_list_ad_accountsCheck which LinkedIn ad accounts you can access. Returns account IDs, names, and status to identify which account to use for campaigns.
No parameters required.
Try it
li_list_campaignsGet all campaigns in a LinkedIn ad account (e.g., account ID "501234567"). Returns campaign IDs, names, budgets, status, and date ranges.
No parameters required.
Try it
li_get_campaignGet full details for a specific LinkedIn campaign (e.g., campaign ID "501234567"). Returns name, budget, spend, status, targeting, and performance metrics.
No parameters required.
Try it
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.
No parameters required.
Try it
li_list_creativesView all ads in a LinkedIn campaign (e.g., campaign ID "501234567"). Returns creative IDs, titles, content, status, and creation dates to compare variations.
No parameters required.
Try it
Test with curl
The gateway speaks JSON-RPC 2.0 over HTTP POST. You can test any pack directly from the terminal.
curl -X POST https://gateway.pipeworx.io/linkedin_ads/mcp \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'curl -X POST https://gateway.pipeworx.io/linkedin_ads/mcp \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","id":2,"method":"tools/call","params":{"name":"li_list_ad_accounts","arguments":{}}}'Use with the SDK
Install @pipeworx/sdk to call tools from any TypeScript/Node project.
import { Pipeworx } from '@pipeworx/sdk';
const px = new Pipeworx();
const result = await px.call("li_list_ad_accounts", {});// Or ask in plain English:
const answer = await px.ask("linkedin ads api — list ad accounts, campaigns, creatives, and fetch analytics (impressions, clicks, conversions) via oauth");