Skip to content
Proud to collaborate with Microsoft for Startups

connection.meta-ads.sync-assets ​

Refresh Meta Ads ad accounts for a connection via /me/adaccounts using the stored Marketing API token

Refresh Meta Ads ad-account cache without OAuth reconnect.

Overview ​

PropertyValue
Workflow typeAtomic
LibraryApp-connection
Version1.0

Input Schema ​

FieldTypeRequiredDefaultDescription
organization_uuiduuidYes——
connection_uuiduuidYes——
ad_account_refstringNo—Optional act_… ad account ID to pin as default after sync

Output Schema ​

FieldTypeRequiredDefaultDescription
organization_uuiduuidNo——
connection_uuiduuidNo——
ad_account_refstringNo——
ad_accountsjsonNo——
countintegerNo——
completed_atstringNo——
failure_reasonstringNo——
errorstringNo——
error_typestringNo——
failed_atstringNo——
failed_at_statestringNo——
failed_layerintegerNo——
failed_stepstringNo——

States ​

StateInitialTerminalSuccessAuto-advanceDescription
pendingYesNo—executeSync requested
completedNoYesYes—Assets refreshed
failedNoYesNo—Sync failed

State Diagram ​

Transitions ​

FromActionToDescription
pendingexecutecompleted—
pendingfailfailed—

Outcomes ​

OutcomeTypeDescriptionState Data Keys
completedSUCCESSAssets refreshed—
failedFAILUREAsset sync failed—

Business Errors ​

CodeMessage Template
META_ADS_SYNC_ASSETS_FAILED

API Usage ​

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

{
  "workflow_type": "connection.meta-ads.sync-assets",
  "initial_data": {
    "organization_uuid": "value",
    "connection_uuid": "value"
  }
}