List LinkedIn ad accounts

linkedin_ads_list_ad_accountsRead-only

The LinkedIn ad accounts your connection can read, whether business or enterprise, and whether each is active.

Full tool description

List LinkedIn Sponsored Ad Accounts accessible to the authenticated user.

Ask your assistant

  • Which LinkedIn ad accounts can you see?
  • Is our enterprise ad account still active?

Parameters

Optional parameters (7)
NameTypeRequiredDescription
status array Optional Filter by account status. Defaults to [ACTIVE].
type string Optional Filter by account type.
BUSINESS ENTERPRISE
include_test_accounts boolean Optional Include test accounts. Defaults to false.
limit integer Optional Maximum number of results to return (1–100). Default: 20.min: 1, max: 100
cursor string Optional Opaque pagination cursor from a previous response's nextCursor. Pass it with the same other parameters to fetch the next page; do not construct it.
refresh boolean Optional Skip the cache and fetch live from LinkedIn. Default: false (cache-first with background refresh).
connection_id string Optional Optional ID of a specific connection to use for this call. Omit to use the actor's default connection for this network. Call <platform>_list_connections to discover available connection IDs.

Call it directly

For developers wiring Hopkin into their own client or scripts. Your assistant makes this call for you.

IdempotentOpen-world
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "linkedin_ads_list_ad_accounts",
    "arguments": {}
  }
}

Examples

List active accounts

{}

hopkin linkedin ad-accounts list

Include test accounts

{
  "include_test_accounts": true
}

hopkin linkedin ad-accounts list --include-test-accounts true

By type

{
  "type": "BUSINESS"
}

hopkin linkedin ad-accounts list --type BUSINESS