SCALIX help

← All tools

lads_list_creatives

LinkedIn Ads read low risk

Part of the LinkedIn Campaign Manager Agent.

What it does

List/search creatives under a LinkedIn ad account via the Creatives finder (q=criteria, X-RestLi-Method: FINDER). Filter by campaigns[], creatives[] (IDs), contentReferences[] (share/ugcPost URNs), intendedStatuses[] (DRAFT/ACTIVE/PAUSED/ARCHIVED/CANCELED/PENDING_DELETION/REMOVED), leadgenCreativeCallToActionDestinations[] and isTestAccount; values within a field are ORed, across fields ANDed. Uses CURSOR-based pagination (202401+): pageSize (max 100) + pageToken, where metadata.nextPageToken from each response drives the next page (null when exhausted). Returns elements[] of full creative objects plus metadata.nextPageToken while more remain (the last page has none, and may carry a start/count paging block, which is not a cursor). Use to inventory or audit creatives, find all ACTIVE creatives in a campaign, or locate creatives by sponsored post. No money/performance metrics - use the reporting tools (reconcile to Campaign Manager; cost fields are strings).

When to use it

During a full account audit, start with lads_audit_account — it defines the checks, benchmarks, and severity rules this tool's data feeds.

Inputs

NameTypeRequiredDescription
ad_account_idstringyesNumeric sponsored account ID; strip urn prefix and dashes. Server-derived from bearer scope; reject out-of-scope accounts.
campaignsarraynoList of urn:li:sponsoredCampaign:{id} to filter by, plain or already percent-encoded (Scalix encodes each exactly once).
creativesarraynoList of urn:li:sponsoredCreative:{id} to fetch specific creatives, plain or already percent-encoded (Scalix encodes each exactly once).
content_referencesarraynoList of share/ugcPost URNs to find creatives sponsoring those posts, plain or already percent-encoded (Scalix encodes each exactly once).
intended_statusesarraynoEnum list DRAFT|ACTIVE|PAUSED|ARCHIVED|CANCELED|PENDING_DELETION|REMOVED to filter by status, upper-cased and checked before sending (any other value is refused, naming them).
leadgen_cta_destinationsarraynoList of adForm URNs to find lead-gen creatives pointing to those forms, plain or already percent-encoded (Scalix encodes each exactly once).
is_test_accountbooleannotrue = only test-account creatives; false = only non-test; omit/null = both.
page_sizeintegernoEntities per page; default and max 100 (cursor pagination); larger values are clamped to 100.
page_tokenstringnometadata.nextPageToken from the previous response; omit for the first page. A stale token after the result set changed can error - restart from page 1.
sort_orderstringnoASCENDING|DESCENDING by creative ID; default ASCENDING; enum-normalize upper-case.

Safeguards

Policy

Read-only enumeration scoped to the bearer's authorized accounts (r_ads). Never enumerate or pool creatives across accounts the bearer is not scoped to; do not retain member-level data from referenced member posts beyond this request.

Reminder

Read within the bearer's account scope only; paginate with nextPageToken; reconcile any later metrics to Campaign Manager.

Errors

Error classMeansWhat to doRetry
TOKEN_REVOKEDAccess token expired/revoked; member must re-authorize.Refresh once and retry; else needs_reauth. Never log the token.yes
PERMISSION_DENIED403 - the bearer lacks r_ads or the account is out of scope.Confirm scope; do not retry.no
INVALID_ARGUMENTAn intended status or sort_order outside LinkedIn's values is refused before the call, naming them; LinkedIn answers 400 for a malformed filter value (e.g. an id where a URN is expected) or a bad/stale pageToken.Pass the URNs as the lads_list_* tools return them and the exact nextPageToken returned (or restart from page 1); do not guess.no
RESOURCE_EXHAUSTED429 daily read limit.Honor X-RateLimit-Reset; backoff 5/10/20s cap 60s; retry once.yes
PLATFORM_ERROR500/503 transient.Retry with backoff; report if persistent.yes

Edge cases

  • No matches -> success with an empty elements[] and a note that the account has none (matching these filters); not an error.
  • Cursor pagination only (202401+) - there is no start/count offset paging; loop on nextPageToken until it is null.
  • pageSize is capped at 100; larger requests are clamped.
  • If fewer than pageSize elements return, nextPageToken is null (end of results).
  • Filters within a field are ORed and across fields ANDed - over-filtering yields empty results.
  • Reusing a stale pageToken after the result set changed can error - restart from page 1.
  • Expired token -> refresh and retry once.