SCALIX help

← All tools

lads_list_geo_locations

LinkedIn Ads read low risk

Part of the LinkedIn Audience Agent.

What it does

Convenience helper that searches LinkedIn geo targeting entities (countries, regions, metro/cities) via GET /rest/adTargetingEntities, returning urn:li:geo:{id} URNs + names for the locations field of targetingCriteria. Typeahead by place name (e.g. 'Berlin', 'United Kingdom'). Read-only reference data.

Inputs

NameTypeRequiredDescription
querystring|array<string>yesPlace-name typeahead, e.g. 'London'. 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.
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.
startintegernoThe 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.
countintegernoResults per page of a keyword search (LinkedIn's default is 10; it answered 1,000 in one call, probe 1 Oct 2026).

Safeguards

Policy

Geo targeting is permitted in all served regions. NOTE: the prior EU geo block on Message/Conversation Ads was LIFTED (~Oct 2024) and is NOT enforced as a geo block; instead, EU-targeted campaigns must be declared NOT_POLITICAL, confirmed by the user against LinkedIn's EU statement, at create/edit time (EU TTPA); political ads are not allowed. Do not silently exclude EU geos.

Reminder

EU geos are allowed (no messaging geo-block); EU-targeted campaigns declare politicalIntent at create time, they are not geo-blocked here.

Errors

Error classMeansWhat to doRetry
MISSING_QUERYGeo typeahead requires a query string.Provide a place-name query.no
INVALID_FACETLocations 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

  • Ambiguous place names (e.g. 'Springfield') return multiple geo URNs at different granularities (country/region/city) — surface all with hierarchy context.
  • No match -> success, count:0.
  • Returns urn:li:geo URNs distinct from generic targeting-entity URNs — use the geo URN in locations.
  • Do NOT auto-exclude EU geos for messaging formats; the geo block is retired (politicalIntent applies at campaign level instead).
  • Match by URN, not display name.
  • Expired token -> refresh and retry once.