Linkedin Ads

liveSaaSProductivity

LinkedIn Ads API — list ad accounts, campaigns, creatives, and fetch analytics (impressions, clicks, conversions) via OAuth.

5tools
0msauth
free tier50 calls/day

Tools

li_list_ad_accounts

Check 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_campaigns

Get 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_campaign

Get 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_analytics

Analyze 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_creatives

View 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.

List available tools
bash
curl -X POST https://gateway.pipeworx.io/linkedin_ads/mcp \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'
Call a tool
bash
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.

TypeScript
import { Pipeworx } from '@pipeworx/sdk';
const px = new Pipeworx();
const result = await px.call("li_list_ad_accounts", {});
ask_pipeworx
// 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");