lads_list_companies
LinkedIn Ads read low risk
Part of the LinkedIn Audience Agent.
What it does
Convenience helper that searches the company/employer targeting facet via GET /rest/adTargetingEntities?q=typeahead, returning organization entity URNs (urn:li:organization:{id}) + names for company-name, company-list, or current-employer targeting. Also usable to resolve companies for ABM/named-account lists. Query required (large facet). Read-only reference data.
Inputs
| Name | Type | Required | Description |
|---|---|---|---|
query | string|array<string> | yes | Company-name typeahead text, e.g. 'Microsoft'. Required. Or a LIST of up to 20 terms, resolved in parallel in one call: one row per term, {query, elements} or {query, error} — use it instead of one call per term. |
facet | urn:li:adTargetingFacet|string | no | Override which company facet: employers (current employer, the default), employersPast, employersAll or followedCompanies — the company facets LinkedIn serves by typeahead. A short name ('employers'), a plain URN (urn:li:adTargetingFacet:employers) or an already percent-encoded URN are all accepted; Scalix percent-encodes it exactly once. |
locale | string | no | Locale for entity names, e.g. 'en_US', 'de-DE' or 'fr' (country defaults to US); sent as locale=(language:xx,country:YY). Default en/US. |
start | integer | no | The result to start from, for the next page of a keyword search. An answer with more to come carries next_start (with a list query, on each row): pass it here. |
count | integer | no | Results per page of a keyword search (LinkedIn's default is 10; it answered 1,000 in one call, probe 1 Oct 2026). |
Safeguards
Policy
Company targeting is permitted; for ABM/matched-company lists, any uploaded company/contact list must have a lawful basis and consent and is treated as sensitive PII (separate Matched Audiences/DMP approval, rw_dmp_segments) — do not pool lists across unaffiliated accounts.
Reminder
Uploaded company/contact lists need consent and stay per-account; never build a cross-account database.
Errors
| Error class | Means | What to do | Retry |
|---|---|---|---|
MISSING_QUERY | Company typeahead requires a query string. | Provide a company-name query. | no |
INVALID_ARGUMENT | A facet LinkedIn does not know or cannot search by typeahead (400 "Specified facet is not available for the finder being used"), returned as invalid_argument. | Pick a company facet (employers, employersPast, employersAll, followedCompanies) with lads_get_targeting_facets, then call again. | no |
TOKEN_REVOKED | Token expired/revoked (HTTP 401). | Refresh once and retry; else needs_reauth. | yes |
PERMISSION_DENIED | Missing r_ads scope (HTTP 403). | Request r_ads. | no |
RATE_LIMITED | Daily quota exceeded (HTTP 429). | Exponential backoff 5/10/20s cap 60s honoring X-RateLimit-Reset. | yes |
PLATFORM_UNAVAILABLE | LinkedIn returned a 5xx. | Retry with backoff. | yes |
Edge cases
- No match -> success with an empty elements list (with a list query, that term's row has elements []).
- Same brand may resolve to multiple organization URNs (subsidiaries/showcase pages) — surface all with context so the right entity is chosen.
- Returns urn:li:organization URNs (distinct from generic entity URNs).
- Match by URN, not display name.
- Bulk company-list targeting routes to Matched Audiences/DMP (separate rw_dmp_segments approval) — this tool only resolves entity URNs.
- Expired token -> refresh and retry once.