li_list_campaigns

Pack: linkedin_ads · Endpoint: https://gateway.pipeworx.io/linkedin_ads/mcp

Get all campaigns in a LinkedIn ad account (e.g., account ID “501234567”). Returns campaign IDs, names, budgets, status, and date ranges.

Parameters

NameTypeRequiredDescription
account_idstringyesSponsored account ID (numeric, e.g., “508127070”)
countnumbernoMax results (default 10)
startnumbernoPagination offset (default 0)

Example call

Arguments

{
  "account_id": "508127070",
  "count": 10,
  "start": 0
}

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_list_campaigns","arguments":{"account_id":"508127070","count":10,"start":0}}}'

TypeScript (@pipeworx/sdk)

import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();

const result = await pipeworx.call('li_list_campaigns', {
  "account_id": "508127070",
  "count": 10,
  "start": 0
});

Response shape

FieldTypeDescription
errorstringError code if connection not found
messagestringError message with guidance
elementsarrayList of campaigns
pagingobjectPagination metadata
Full JSON Schema
{
  "type": "object",
  "properties": {
    "error": {
      "type": "string",
      "description": "Error code if connection not found"
    },
    "message": {
      "type": "string",
      "description": "Error message with guidance"
    },
    "elements": {
      "type": "array",
      "description": "List of campaigns",
      "items": {
        "type": "object",
        "properties": {
          "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 (e.g., USD)"
              }
            }
          },
          "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"
              }
            }
          }
        }
      }
    },
    "paging": {
      "type": "object",
      "description": "Pagination metadata",
      "properties": {
        "start": {
          "type": "number",
          "description": "Pagination start offset"
        },
        "count": {
          "type": "number",
          "description": "Number of results returned"
        },
        "total": {
          "type": "number",
          "description": "Total available results"
        }
      }
    }
  }
}

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