> ## Documentation Index
> Fetch the complete documentation index at: https://octanist.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# TikTok Ads

> Send qualified and won leads to TikTok through the Events API, import TikTok Instant Form leads, and import TikTok ad spend.

The TikTok Ads integration sends your qualified and won leads to TikTok through the **Events API**. TikTok uses them to attribute conversions to your campaigns and to optimize on real results.

The same connection can also:

* Import leads from **TikTok Instant Forms** and send their status back to TikTok for Lead Quality Optimization.
* Import your **TikTok ad spend**, so Octanist can show cost per lead and ROAS.

## What you need

* An Octanist **Professional** plan or higher.
* The **admin** or **owner** role in your Octanist organization.
* A TikTok user with **Admin** or **Operator** access to the ad account. Importing Instant Forms needs **Admin** access.
* A **TikTok Pixel** on the ad account.

## Table of Contents

1. [Connect your TikTok account](#1-connect-your-tiktok-account)
2. [Map your events](#2-map-your-events)
3. [Set up lead forms (optional)](#3-set-up-lead-forms-optional)
4. [Finalize setup](#4-finalize-setup)
5. [What happens next](#5-what-happens-next)
6. [Common problems](#6-common-problems)

***

## 1. Connect your TikTok account

1. In Octanist, go to **Integrations** and click **Add integration**.
2. Find **TikTok Ads** and click **Set up**.
3. Sign in with TikTok and give Octanist access. Share the ad accounts you want to use on the TikTok authorization screen.
4. Under **Ad Account**, select the ad account.
5. Click **Next Step**.

> [!NOTE]
>
> Only ad accounts you shared on the TikTok authorization screen are listed. If an account is missing, connect again and share it.

***

## 2. Map your events

1. Under **TikTok Pixel**, select the pixel on your website.
2. Map each Octanist event to a TikTok standard event:
   * **Qualified Lead**: `CompleteRegistration` by default.
   * **Won Conversion Events**: your default won event is set to `Purchase`. Other won events start empty. Leave an event empty to not send it.
3. Click **Next Step**.

> [!TIP]
>
> Use standard events. TikTok can use standard events as an optimization goal, custom events cannot.

***

## 3. Set up lead forms (optional)

Choose one of the two options:

* **Import TikTok Instant Forms**: click **Set up lead import**.
* **Only send conversions to TikTok**: click **Skip this step**.

If you set up lead import:

1. Under **CRM Event Set**, select an event set or click **Create new**. Octanist creates one named `Octanist`.
2. Under **CRM event names**, check the name for each event. The defaults are `qualified` for qualified leads and `won` for your default won event. Octanist sends these names when an Instant Form lead reaches that status.
3. Check the list of published forms. Click **Refresh** if a new form is missing.
4. Click **Save & Continue**.

Octanist subscribes to the whole ad account. Leads from forms you create later are imported too.

Each form appears in **Settings > Forms** with name, email and phone already mapped. Review each form and activate it there. See [Form mapping](https://octanist.com/docs/incoming-integrations/form-mapping.md).

> [!WARNING]
>
> Only leads submitted after setup are imported. In TikTok Events Manager, map the CRM event names to your funnel stages so TikTok can use them.

***

## 4. Finalize setup

1. Enter an **Integration Name**, for example *TikTok Ads - My Account*.
2. Open **Advanced Settings** and review the options:
   * **I want to use enhanced conversions for leads.** Sends the SHA-256 hashed email and phone to TikTok to improve matching. On by default.
   * **Send all leads.** Sends qualified and won leads to the pixel even when they have no TikTok Click ID, using hashed email and phone. On by default.
   * **Backfill existing leads.** Sends qualified and won leads from the last 28 days. Only shown when there are leads to send.
3. Click **Complete Setup**.

Octanist then starts importing your ad spend in the background.

***

## 5. What happens next

**Conversions.** When you mark a lead as qualified or won, Octanist sends the mapped event to TikTok right away. Each event includes:

* The TikTok Click ID (`ttclid`) when the visitor came from a TikTok ad.
* Hashed email and phone, when enhanced conversions are on.
* The value and your organization's currency.
* The page URL, IP address and browser of the visit, when known.

**Instant Form leads.** A lead from a TikTok Instant Form is reported to your CRM Event Set instead of the pixel. Octanist matches it on TikTok's lead ID. A lead from an Instant Form on another TikTok ad account is not reported by this integration.

**Ad spend.** Octanist imports your spend from the past year after you connect. After that it syncs the last few days once a day.

**Activity.** Every send, skip and error is logged in the lead's activity history.

> [!TIP]
>
> To also send a conversion the moment a form or call lead comes in, go to [**Settings > Conversions**](https://octanist.com/docs/settings/conversions.md).

***

## 6. Common problems

**"No TikTok Pixel on this ad account".** Create a pixel in TikTok Events Manager, then go back and select the ad account again.

**"Sync skipped: TikTok only accepts conversions from the last 28 days".** TikTok rejects older events. Backfill also only goes back 28 days.

**"Sync skipped: No TikTok Click ID found and "Send all leads" is disabled".** Turn on **Send all leads** to send leads without a click ID.

**Instant Form leads do not arrive.** Check that the connecting TikTok user has Admin access to the ad account. Then check that the form is activated in **Settings > Forms**.

**The integration shows "Reconnect required".** Go to **Integrations** and click **Reconnect** on the TikTok card.

If you need help, contact [support@octanist.com](mailto:support@octanist.com).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.