SCALIX help

← All tools

lads_get_targeting_facets

LinkedIn Ads read low risk

Part of the LinkedIn Audience Agent.

What it does

Lists the available LinkedIn ad-targeting facets via GET /rest/adTargetingFacets. Each record returns the facet name, its facetName/URN, and the entity-finder methods usable to discover that facet's entities (adTargetingFacet listing and/or typeahead) for dimensions like industries, seniorities, titles, skills, locations, company size, job function, interests, member groups. Use this to map a plain-English targeting request to the correct facet URN before resolving entities with lads_get_targeting_entities. Read-only metadata; returns a list with count.

Inputs

No inputs.

Safeguards

Policy

Facet metadata is neutral, but downstream targeting must comply with anti-discrimination rules: for employment/housing/education/credit ads, never use facets to target or exclude protected attributes; age facets are disabled for recruitment and Groups cannot be used for exclusion in those verticals; DSA disallows targeting that reveals race/political opinion/sexual orientation.

Reminder

Facets enable targeting that must obey anti-discrimination rules for employment/housing/education/credit ads.

Errors

Error classMeansWhat to doRetry
TOKEN_REVOKEDToken expired/revoked (HTTP 401).Refresh once and retry; else needs_reauth.yes
PERMISSION_DENIEDToken lacks the ads read scope r_ads (HTTP 403).Request r_ads.no
VERSION_SUNSETLinkedIn-Version is past its ~12-month sunset window and was rejected.Pin a supported version (current 202606); run the quarterly sunset check.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

  • Facet set is large but bounded -> returned in full with count; no member data involved.
  • Some facets support only the adTargetingFacet finder, others also typeahead — surface which finders apply so the caller picks the correct one in lads_get_targeting_entities.
  • Localized names vary by locale; URNs are stable — key off the URN, not the display name.
  • Version mismatch surfaces VERSION_SUNSET rather than a silent empty result.
  • Expired token -> refresh and retry once.