lads_list_industries
LinkedIn Ads read low risk
Part of the LinkedIn Audience Agent.
What it does
Convenience helper that lists/searches LinkedIn industry targeting entities by resolving the industries facet through GET /rest/adTargetingEntities. Returns industry entity URNs + names ready for a campaign's targetingCriteria (values under urn:li:adTargetingFacet:industries). With a query it runs q=typeahead (e.g. 'soft' -> Software, Computer Software); with no query it lists every industry via q=adTargetingFacet. Read-only reference data.
Inputs
| Name | Type | Required | Description |
|---|---|---|---|
query | string|array<string> | no | Optional typeahead text (q=typeahead); omit to list every industry (q=adTargetingFacet). 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. |
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 | Keyword search only: the result to start from, for the next page. An answer with more to come carries next_start (with a list query, on each row). The whole listing (no query) is not paged, so start or count without a query is refused. |
count | integer | no | Keyword search only: results per page (LinkedIn's default is 10; it answered 1,000 in one call, probe 1 Oct 2026). |
Safeguards
Policy
Industry targeting is generally permitted, but for employment/housing/education/credit ads it must not be combined with protected-attribute targeting or used to proxy a protected class.
Reminder
Don't use industry targeting to proxy protected attributes in regulated (employment/housing/education/credit) ads.
Errors
| Error class | Means | What to do | Retry |
|---|---|---|---|
INVALID_FACET | Industries facet URN unavailable in this version. | Re-fetch facets via lads_get_targeting_facets. | 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 typeahead match -> success, count:0.
- The full listing (about 500 industries) comes back whole in one response; LinkedIn does not page it.
- Match by URN, not localized name.
- Industry taxonomy occasionally changes between versions — re-resolve if a stored URN 400s.
- Expired token -> refresh and retry once.