meta.ads.creative.attach ​
Upload a StorageObject to the ad account image library. Optionally create a PAUSED Ad (requires adset_id + page_id). Never enables spend.
Overview ​
| Property | Value |
|---|---|
| Workflow type | Atomic |
| Library | App-meta-ads |
| Version | 1.0 |
Input Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
workflow_run_id | string | No | — | Parent DAG workflow run id (engine-injected when used as a step) |
organization_uuid | string | Yes | — | — |
connection_uuid | string | Yes | — | — |
ad_account_id | string | No | — | — |
storage_object_uuid | string | Yes | — | Org-scoped StorageObject to upload (bytes stay in action scope) |
adset_id | string | No | — | When set with page_id, create a PAUSED Ad under this ad set |
page_id | string | No | — | Facebook Page id required to build AdCreative object_story_spec |
campaign_id | string | No | — | — |
name | string | No | — | — |
message | string | No | — | — |
link | string | No | — | — |
Output Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
workflow_run_id | string | No | — | Parent DAG workflow run id (engine-injected when used as a step) |
organization_uuid | string | Yes | — | — |
connection_uuid | string | Yes | — | — |
ad_account_id | string | No | — | — |
storage_object_uuid | string | No | — | — |
adset_id | string | No | — | When set with page_id, create a PAUSED Ad under this ad set |
page_id | string | No | — | Facebook Page id required to build AdCreative object_story_spec |
campaign_id | string | No | — | — |
name | string | No | — | — |
message | string | No | — | — |
link | string | No | — | — |
image_hash | string | No | — | — |
creative_id | string | No | — | — |
ad_id | string | No | — | — |
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 |
completed_at | string | No | — | — |
States ​
| State | Initial | Terminal | Success | Auto-advance | Description |
|---|---|---|---|---|---|
pending | Yes | No | — | execute | — |
completed | No | Yes | Yes | — | — |
failed | No | Yes | No | — | — |
State Diagram ​
Transitions ​
| From | Action | To | Description |
|---|---|---|---|
pending | execute | completed | — |
* (any state) | fail | failed | — |
Outcomes ​
| Outcome | Type | Description | State Data Keys |
|---|---|---|---|
completed | SUCCESS | Meta Ads atom completed successfully | completed_at |
failed | FAILURE | Meta Ads atom failed | failure_reason, error, error_type |
API Usage ​
bash
POST /api/workflows/start
Content-Type: application/json
{
"workflow_type": "meta.ads.creative.attach",
"initial_data": {
"organization_uuid": "value",
"connection_uuid": "value",
"storage_object_uuid": "value"
}
}