SCALIX help

← All tools

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

NameTypeRequiredDescription
querystring|array<string>noOptional 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.
localestringnoLocale 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.
startintegernoKeyword 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.
countintegernoKeyword 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 classMeansWhat to doRetry
INVALID_FACETIndustries facet URN unavailable in this version.Re-fetch facets via lads_get_targeting_facets.no
TOKEN_REVOKEDToken expired/revoked (HTTP 401).Refresh once and retry; else needs_reauth.yes
PERMISSION_DENIEDMissing r_ads scope (HTTP 403).Request r_ads.no
RATE_LIMITEDDaily quota exceeded (HTTP 429).Exponential backoff 5/10/20s cap 60s honoring X-RateLimit-Reset.yes
PLATFORM_UNAVAILABLELinkedIn 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.