LinkedIn Ads: List Ad Accounts
linkedin_list_ad_accountsList the LinkedIn ad accounts connected to this account: the ones that can serve (with id, name, currency and which is the stored default) and, separately, the ones LinkedIn lists as not active or as test accounts. To work in an account, pass its numeric id or name as ad_account_id to linkedin_list_campaigns, linkedin_get_insights, linkedin_analyze_demographics or linkedin_audit_wasted_spend — no dashboard change needed. Filter with name_contains when the list is long. Reads only; changes nothing.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "linkedin_list_ad_accounts"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name_contains | No | Only accounts whose name or id contains this text, ignoring case. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| adAccounts | Yes | Connected LinkedIn ad accounts that can serve ads. | |
| allSwitchedOff | Yes | True when every ad account this connection reaches is unticked, so nothing here can be read until the user switches one back on. | |
| fromLiveLookup | Yes | True when the stored account snapshot was empty and the list was read from LinkedIn directly instead. | |
| inactiveAccounts | Yes | Accounts this connection reaches that LinkedIn lists as not ACTIVE or as test accounts. Nothing can be read in them. | |
| switchedOffCount | Yes | Ad accounts this connection reaches that the user unticked on the connections page, so they are left out of the list entirely. |