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

NameTypeRequiredDescription
campaign_idstringyesCampaign 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

FieldTypeDescription
errorstringError code if connection not found
messagestringError message with guidance
idstringCampaign ID
namestringCampaign name
budgetobjectCampaign budget details
spendobjectCampaign spend details
statusstringCampaign status
startDateobjectCampaign start date
endDateobjectCampaign end date
targetingobjectCampaign 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.

Regenerated from source · build May 9, 2026