lads_get_creative
LinkedIn Ads read low risk
Part of the LinkedIn Campaign Manager Agent.
What it does
Fetch a single LinkedIn ad creative by URN from the Creatives API. Returns the full creative object: content (reference URN, or inline spotlight/textAd/documentAd/eventAd), campaign and account URNs, intendedStatus, isServing, review.status (PENDING/APPROVED/REJECTED/NEEDS_REVIEW with rejectionReasons), servingHoldReasons[] explaining why it is not serving (e.g. UNDER_REVIEW, REJECTED, CAMPAIGN_STOPPED, ACCOUNT_TOTAL_BUDGET_HOLD), name, createdAt/lastModifiedAt and createdBy/lastModifiedBy. Use this to read effective serving state and review/rejection detail. Scalix percent-encodes the creative URN for the path. For content.reference creatives the human name lives on the sub-content, so a second call may be needed; the 202410+ name field is returned directly when set. No money/performance metrics are returned here - use the reporting tools (and reconcile to Campaign Manager; cost fields there are strings).
Inputs
| Name | Type | Required | Description |
|---|---|---|---|
ad_account_id | string | yes | Numeric sponsored account ID; strip urn prefix and dashes. Server-derived from bearer scope; reject out-of-scope accounts. |
creative_urn | string | yes | urn:li:sponsoredCreative:{id} or the bare numeric id, plain or already percent-encoded; Scalix encodes it exactly once for the path. |
Safeguards
Policy
Read-only retrieval scoped to the bearer's authorized ad accounts (r_ads). Do not expose any token; do not retain member-level data drawn from referenced member posts beyond this request (profile <=24h / social <=48h limits).
Reminder
Read within the bearer's account scope only; for performance numbers use the reporting tools and reconcile to Campaign Manager.
Errors
| Error class | Means | What to do | Retry |
|---|---|---|---|
CUSTOMER_NOT_FOUND | 404 / INVALID_VALUE_NOT_EXIST - the creative URN does not exist or is not under this account. | Verify the creative URN and account; do not retry blindly. | no |
TOKEN_REVOKED | Access token expired/revoked; member must re-authorize. | Refresh once and retry; else needs_reauth. Never log the token. | yes |
PERMISSION_DENIED | 403 - the bearer lacks r_ads or the account is outside the bearer's scope. | Confirm the account is in scope; do not retry. | no |
INVALID_ARGUMENT | 400 - the creative id or URN is malformed. | Pass urn:li:sponsoredCreative:{id} or the numeric id; Scalix encodes it for the path. | no |
RESOURCE_EXHAUSTED | 429 daily read limit. | Honor X-RateLimit-Reset; backoff 5/10/20s cap 60s; retry once. | yes |
PLATFORM_ERROR | 500/503 transient. | Retry with backoff; report if persistent. | yes |
Edge cases
- A serving creative omits servingHoldReasons entirely (field is null/absent); a non-serving one lists every hold reason - surface all of them.
- review is null while the creative is in DRAFT (review only starts on activation).
- For content.reference creatives the display name lives on the sub-content; use the 202410+ name field or a second sub-content call.
- REMOVED/CANCELED creatives remain fetchable if performance data or the underlying post still exists.
- A bare id, a plain URN or an already percent-encoded URN are all accepted; Scalix encodes it exactly once for the path.
- Expired token -> refresh and retry once.