lads_pause_creative
LinkedIn Ads write medium risk
Part of the LinkedIn Campaign Manager Agent.
What it does
Pause (or resume) a LinkedIn creative by setting intendedStatus via partial update (POST X-RestLi-Method: PARTIAL_UPDATE, {patch:{$set:{intendedStatus:PAUSED}}}). Pausing stops serving while keeping the creative current and editable-to-resume; resume sets it back to ACTIVE (which re-enters review if content changed). This is a convenience wrapper over lads_update_creative for the common status toggle. Confirm and log the reason for the change. LinkedIn pauses a creative only once its review is APPROVED, so at preview, and again at commit, Scalix refuses to pause a DRAFT creative (a draft is not reviewed and never serves: activate it with lads_update_creative intended_status=ACTIVE, or delete it with lads_delete_creative) or one whose review is PENDING, REJECTED or NEEDS_REVIEW (pause it once lads_get_creative shows review.status APPROVED); nothing is sent. A creative already in the target status gets changed: false and no preview_id. One creative per call. Returns 204 No Content (no body - re-GET to confirm). Inputs: creative URN, target status (PAUSED/ACTIVE/ARCHIVED), reason. Two-phase (parity with Google, ADR-028/029): the first call (no preview_id) reads the creative from LinkedIn (a nonexistent id is refused), builds the request locally and returns a preview_id — nothing is changed on LinkedIn; re-call with that preview_id and identical arguments to COMMIT (single-use, 30-min; a changed/forged/replayed token fails closed).
When to use it
Use to immediately stop a serving creative (e.g. fatigue, budget, policy concern, or a Thought Leader consent revocation) or to resume a paused one. Confirm the action and capture a reason. If the creative is in review, tell the user it must finish review before it can be paused.
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. One creative per call. |
intended_status | string | yes | PAUSED to pause, ACTIVE to resume, or ARCHIVED (it also stops serving but separates the creative in UI); upper-cased, and any other value is refused at preview (set DRAFT or CANCELED with lads_update_creative; delete with lads_delete_creative, which asks for confirm). |
reason | string | no | Reason for the pause/resume, recorded in the immutable audit log. |
preview_id | string | no | Omit it to preview: nothing is applied, and the call returns a preview_id bound to this exact request. Pass it only after the user approves that preview in a later message, with the same arguments (leave out validate_only, and add any confirmation flag the preview names). Single-use, expires in 30 minutes; changed arguments need a fresh preview. |
Safeguards
A change in two steps. The first call previews and changes nothing; Claude shows you the preview and applies it only after you approve, within 30 minutes and with the same arguments. Every applied change goes to the audit log. How changes are approved.
Policy
Status changes require user confirmation and an audit-log reason (no silent toggles). An in-review creative cannot be set to PAUSED (400). Pausing only changes intendedStatus - the effective serving state is still gated by the parent campaign/account status.
Reminder
Confirm the pause/resume and log the reason; draft and in-review creatives can't be paused; strict per-account isolation.
Errors
| Error class | Means | What to do | Retry |
|---|---|---|---|
IN_REVIEW_PAUSE_BLOCKED | 400 - cannot set an in-review creative to PAUSED. | Wait for review to finish, then pause; do not retry immediately. | no |
TRANSITION_NOT_ALLOWED | 400 TRANSITION_NOT_ALLOWED / CANNOT_UPDATE_CANCELED_CREATIVE - invalid transition (e.g. from CANCELED/REMOVED). | Surface that the current state can't transition; do not retry. | no |
CUSTOMER_NOT_FOUND | 404 INVALID_VALUE_NOT_EXIST - the creative is not found under this account. | Verify the 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 - missing rw_ads / write role / out-of-scope account. | Confirm scope and roles; do not retry until corrected. | no |
RESOURCE_EXHAUSTED | 429 daily app/member 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
- Pausing an in-review creative is rejected with 400 - surface clearly.
- Pausing the creative does not pause the campaign; resuming under a paused campaign still won't serve.
- Resuming (ACTIVE) after a content edit re-enters review.
- One creative per call (this tool sends no batch).
- ARCHIVED also stops serving but hides the creative from default UI lists - use only if the user wants it archived, not merely paused.
- 204 returns no body - re-GET to confirm intendedStatus.
- Expired token -> refresh and retry once.