linkedin.ads.campaign.enable-with-approval
Open a Staff inbox envelope to enable a paused LinkedIn Ads campaign. Does not unpause or spend. Call linkedin.ads.campaign.enable separately with the approved envelope (v1 still will not set ACTIVE).
Overview
| Property | Value |
|---|---|
| Workflow type | Dag |
| Library | App-linkedin-ads |
| Version | 1.0 |
Input Schema
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
organization_uuid | string | Yes | — | — |
actor_uuid | string | Yes | — | — |
connection_uuid | string | No | — | — |
campaign_id | string | No | — | — |
ad_account_id | string | No | — | — |
reason | string | No | — | — |
suppress_dispatch | boolean | No | — | — |
Output Schema
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
failure_reason | string | No | — | Engine-stamped human-readable failure reason |
failed_at | string | No | — | ISO timestamp when the workflow failed |
failed_at_state | string | No | — | Engine-stamped state when the workflow failed |
failed_step | string | No | — | Engine-stamped step name (DAG path) |
failed_layer | integer | No | — | Engine-stamped layer index (DAG path) |
error | string | No | — | Engine-stamped exception message |
error_type | string | No | — | Engine-stamped exception class name |
approval_envelope_uuid | string | No | — | — |
approval_envelope_id | string | No | — | — |
campaign_id | string | No | — | — |
request_review | json | No | — | — |
DAG Layers
| # | Layer | Steps | Compensation |
|---|---|---|---|
| 1 | request_review | linkedin.ads.campaign.request-review | linkedin_ads.compensation.noop |
Execution Flow
Compensation
When any layer fails, its compensation steps run in reverse order to roll back the work completed so far.
Sub-workflows
| Sub-workflow | Step name |
|---|---|
linkedin.ads.campaign.request-review | request_review |
linkedin_ads.compensation.noop | abandon_review |
Outcomes
| Outcome | Type | Description | State Data Keys |
|---|---|---|---|
review_requested | SUCCESS | Inbox review envelope opened; campaign remains paused | approval_envelope_uuid |
failed | FAILURE | LinkedIn Ads enable-with-approval DAG failed | failure_reason |
API Usage
bash
POST /api/workflows/start
Content-Type: application/json
{
"workflow_type": "linkedin.ads.campaign.enable-with-approval",
"initial_data": {
"organization_uuid": "value",
"actor_uuid": "value"
}
}