Create Meta Custom Conversion
create_meta_custom_conversionCreates a custom conversion on a pixel. Give url_contains (visitors whose page URL contains this, e.g. '/tesekkurler' — the classic thank-you / lead-page conversion), or event (a standard pixel event name), or BOTH (that event fired on that page).
event must be a STANDARD Meta pixel event and is matched case-sensitively; any casing you pass is normalized: PageView, ViewContent, Search, AddToCart, AddToWishlist, InitiateCheckout, AddPaymentInfo, Purchase, Lead, CompleteRegistration, Contact, CustomizeProduct, Donate, FindLocation, Schedule, StartTrial, SubmitApplication, Subscribe.
custom_event_type categorizes it for reporting/optimization (PURCHASE | LEAD | COMPLETE_REGISTRATION | ADD_TO_CART | CONTENT_VIEW | SEARCH | OTHER); leave it out and it is derived from the event. pixel_id from list_meta_pixels. confirm=false = preview.
An EVENT rule always carries a URL condition, because Meta rejects an event-only rule: if you pass no url_contains, an all-pages condition is added so the conversion means "this event anywhere on the site". custom_event_type must match the event, so leave it out and it is set correctly for you.
DELETING IS NOT POSSIBLE THROUGH THE API: Meta refuses custom-conversion deletion for this app (OAuthException 200), so a wrong one can only be removed by the user in Meta Events Manager → Custom conversions. Confirm the name and rule with the user BEFORE calling with confirm=true, and do not create throwaway test conversions.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| event | No | ||
| confirm | No | ||
| pixel_id | Yes | ||
| account_id | Yes | ||
| url_contains | No | ||
| custom_event_type | No | OTHER |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||