li_list_ad_accounts

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

Check which LinkedIn ad accounts you can access. Returns account IDs, names, and status to identify which account to use for campaigns.

Parameters

NameTypeRequiredDescription
countnumbernoMax results (default 10)
startnumbernoPagination offset (default 0)

Example call

Arguments

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

TypeScript (@pipeworx/sdk)

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

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

Response shape

FieldTypeDescription
errorstringError code if connection not found
messagestringError message with guidance
elementsarrayList of ad accounts
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 ad accounts",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Account ID"
          },
          "name": {
            "type": "string",
            "description": "Account name"
          },
          "status": {
            "type": "string",
            "description": "Account status"
          }
        }
      }
    },
    "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