Skip to content
Proud to collaborate with Microsoft for Startups

meta.ads.adset.create-paused ​

Create a Marketing API ad set with status=PAUSED only. Never sets ACTIVE (SOCIAL-004).

Overview ​

PropertyValue
Workflow typeAtomic
LibraryApp-meta-ads
Version1.0

Input Schema ​

FieldTypeRequiredDefaultDescription
workflow_run_idstringNo—Parent DAG workflow run id (engine-injected when used as a step)
organization_uuidstringYes——
connection_uuidstringYes——
ad_account_idstringNo——
campaign_idstringYes—Parent campaign id (prefer a PAUSED create-paused campaign)
namestringYes—Ad set name
daily_budgetintegerNo—Daily budget in account currency minor units (default 1000)
optimization_goalstringNo—Default LINK_CLICKS
billing_eventstringNo—Default IMPRESSIONS
countriesjsonNo—ISO country codes for targeting (default ['BR'])
page_idstringNo—Optional Facebook Page id for promoted_object (needed for many traffic creatives)

Output Schema ​

FieldTypeRequiredDefaultDescription
workflow_run_idstringNo—Parent DAG workflow run id (engine-injected when used as a step)
organization_uuidstringYes——
connection_uuidstringYes——
ad_account_idstringNo——
campaign_idstringNo——
namestringYes—Ad set name
daily_budgetintegerNo——
optimization_goalstringNo——
billing_eventstringNo—Default IMPRESSIONS
countriesjsonNo—ISO country codes for targeting (default ['BR'])
page_idstringNo—Optional Facebook Page id for promoted_object (needed for many traffic creatives)
adset_idstringNo——
statusstringNo——
enabledbooleanNo——
failure_reasonstringNo—Engine-stamped human-readable failure reason
failed_atstringNo—ISO timestamp when the workflow failed
failed_at_statestringNo—Engine-stamped state when the workflow failed
failed_stepstringNo—Engine-stamped step name (DAG path)
failed_layerintegerNo—Engine-stamped layer index (DAG path)
errorstringNo—Engine-stamped exception message
error_typestringNo—Engine-stamped exception class name
completed_atstringNo——

States ​

StateInitialTerminalSuccessAuto-advanceDescription
pendingYesNo—execute—
completedNoYesYes——
failedNoYesNo——

State Diagram ​

Transitions ​

FromActionToDescription
pendingexecutecompleted—
* (any state)failfailed—

Outcomes ​

OutcomeTypeDescriptionState Data Keys
completedSUCCESSMeta Ads atom completed successfullycompleted_at
failedFAILUREMeta Ads atom failedfailure_reason, error, error_type

API Usage ​

bash
POST /api/workflows/start
Content-Type: application/json

{
  "workflow_type": "meta.ads.adset.create-paused",
  "initial_data": {
    "organization_uuid": "value",
    "connection_uuid": "value",
    "campaign_id": "value",
    "name": "value"
  }
}