Skip to content
Proud to collaborate with Microsoft for Startups

linkedin.ads.conversion.rule.create ​

Create a LinkedIn Conversions API rule (POST /rest/conversions) for a pinned ad account. Does not stream events and does not enable spend.

Overview ​

PropertyValue
Workflow typeAtomic
LibraryApp-linkedin-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——
namestringYes—Conversion rule display name
conversion_typestringYes—LEAD, PURCHASE, SIGN_UP, KEY_PAGE_VIEW, …
auto_associate_all_campaignsbooleanNo—When true, pass autoAssociationType=ALL_CAMPAIGNS
post_click_window_daysintegerNo——
view_through_window_daysintegerNo——

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——
namestringYes—Conversion rule display name
conversion_typestringYes—LEAD, PURCHASE, SIGN_UP, KEY_PAGE_VIEW, …
auto_associate_all_campaignsbooleanNo—When true, pass autoAssociationType=ALL_CAMPAIGNS
post_click_window_daysintegerNo——
view_through_window_daysintegerNo——
conversion_idstringNo——
conversion_urnstringNo——
rawjsonNo——
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
completedSUCCESSLinkedIn Ads atom completed successfullycompleted_at
failedFAILURELinkedIn Ads atom failedfailure_reason, error, error_type

API Usage ​

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

{
  "workflow_type": "linkedin.ads.conversion.rule.create",
  "initial_data": {
    "organization_uuid": "value",
    "connection_uuid": "value",
    "name": "value",
    "conversion_type": "value"
  }
}