Skip to main content

Custom Conversions

Intro

Custom Conversions enable granular measurement, reporting, and now optimization (open beta) by filtering standard events based on specific parameter values. By defining rules (e.g., Price > 50 or Item Category = 'Premium'), developers can segment standard Pixel or App events into distinct conversion actions without requiring additional code changes on the client side. Custom Conversion Rules should be created within Ads Manager first before sending events.

Base URL: https://adsapi.snapchat.com/v1

Endpoints

Pixel CC Endpoint

Using a Pixel ID

{base_url}/pixels/{pixel_id}/custom_conversions

App CC Endpoint

Using a Snap App ID

{base_url}/mobile_apps/{app_id}/custom_conversions

Custom Conversion Endpoint

{base_url}/custom_conversions/{custom_conversion_id}

Custom Conversion Object

Each Custom Conversion object contains a name, description, event type, and the rules that need to be met.

{
"name": "Some Conversion Name",
"description": "Conversion from Landing Page A",
"event_type": "PURCHASE",
"rules": [
{...},
{...}
]
}

Rule Object

Each rule object contains a key, the values, and the operator.

{
"key": "EVENT_TAG",
"values": ["tag-1", "tag-7"],
"operator": "I_CONTAINS"
}

Custom Conversion Rule Keys

KeyTypeKeyType
event_tagstringitem_idstring
item_categorystringcurrencystring
search_stringstringsign_up_methodstring
page_urlstringcategorystring
category_idstringbrandstring
delivery_moethodstringcustomer_statusstring
pricenumbernumber_itemsnuber

Custom Conversion Rule Operators

I_* indicates case insensitivity

RuleTypeRuleType
EQUAL_TOstring or numberNOT_EQUAL_TOstring or number
I_CONTAINSstringI_NOT_CONTAINSstring
CONTAINSstringNOT_CONTAINSstring
STARTS_WITHstringI_STARTS_WITHstring
I_EQUAL_TOstringI_NOT_EQUAL_TOstring
LESS_THANnumberLESS_THAN_OR_EQUALSnumber
GREATER_THANnumberGREATER_THAN_OR_EQUALSnumber

Examples

Custom Conversions API Examples

Get Pixel Custom Conversions

Method: GET
Endpoint: {base_url}/pixels/{pixel_id}/custom_conversions

Create A Pixel Custom Conversion

Method: POST
Endpoint: {base_url}/pixels/{pixel_id}/custom_conversions

Get App Custom Conversions

Method: GET
Endpoint: {base_url}/mobile_apps/{app_id}/custom_conversions

Create an App Custom Conversion

Method: POST
Endpoint: {base_url}/mobile_apps/{app_id}/custom_conversions

Get A Custom Conversions

Method: GET
Endpoint: {base_url}/custom_conversions/{custom_conversion_id}

Delete A Custom Conversions

Method: DELETE
Endpoint: {base_url}/custom_conversions/{custom_conversion_id}
Was this page helpful?
Yes
No