account | DynamicAccount | Yes | - | Select Meta Ads account, ask the user for it if not provided |
name | string | Yes | - | Name for the custom conversion |
description | string | No | - | Optional description |
event_source_id | string | No | - | Pixel ID or offline event set ID the conversion listens to, e.g. from meta_list_account_pixels. Required in practice for pixel-based conversions. |
rule | object or string | No | - | Conversion rule sent to Meta as-is: JSON filtering on url or event with operators like i_contains, contains, eq, gt, lt, regex_match. Example (purchase page): {“and”: [{“event”: {“eq”: “PageView”}}, {“or”: [{“URL”: {“i_contains”: “thank-you”}}]}]}. Provide rule or advanced_rule to define when the conversion fires. |
advanced_rule | object or string | No | - | Advanced ruleset supporting multiple event sources, sent to Meta as-is. Use rule for simple cases. |
custom_event_type | string or SelectableOption | No | - | Standard event category the conversion is optimized as, e.g. PURCHASE, LEAD, OTHER |
action_source_type | string or SelectableOption | No | - | Where the conversion happens, e.g. website, physical_store, phone_call |
default_conversion_value | number | No | - | Default monetary value assigned to each conversion, in the account currency |