Skip to main content

Running App Campaigns on TikTok with Swaarm

How to set up a TikTok Ads campaign using Swaarm tracking - connect your TikTok Ads account, create a dataset in TikTok Events Manager, and configure the integration.

This guide walks you through connecting TikTok Ads with Swaarm - from creating a dataset in TikTok Events Manager to configuring your TikTok Partner in Swaarm.


Step 1 - Connect your TikTok Ads account to Swaarm

  1. In Swaarm, go to Marketplace → Partners

  2. Find TikTok and click Connect with TikTok

  3. You will be redirected to TikTok to sign in (if not already signed in). Enter your credentials and log in

  4. The next screen shows the details of the integration.

    Do not change anything here - click Confirm

  5. Once authorization is approved, the TikTok Partner will be automatically created under your Partners tab and you will be redirected to the partner page

    No further action is needed on this page.

  6. Here you will add the Test Event Code from Step 2 (point 12) and test the event

    You will generate the Test Event Code in Step 2 below - complete Step 2 first, then return here.

  7. Next, go to the Store App page → Edit → Integration → SAN Attribution → TikTok, and add the TikTok Pixel ID and Access Token

    ℹ️ You will generate these values in Step 2 below (point 10) - complete Step 2 first, then return here to fill them in.


Step 2 - Create a dataset in TikTok Ads Manager

Follow the steps below to add the dataset to your TikTok Ads Manager account.

  1. Go to TikTok Ads Manager

  2. Open Events Manager under Tools from the top menu

  3. Click Connect Data Source in the top right of the Events Manager overview page

  4. From the Connect data source menu, select Web and click Next

  5. You can skip the step to add a website URL - click Next to continue

  6. Set the data connection method to Manual

  7. Set the connection method to Events API

  8. Name your pixel — use the format Swaarm_<YOUR COMPANY NAME> (e.g. Swaarm_YourCompany) - and click Create

  9. On the Set Up Your Business Funnel page, select the Pre-order Submission template, then configure the event parameters as follows:

    • On the left side of the Funnels, events, and parameters table, select Complete Registration as the conversion event

    • On the right side of the table, select the following fields:

      • General - currency, event_id, value

      • Events API Only - event_time

      • Customer Information Parameters - external_id

      • Events API Only - ttclid, ip, user_agent

    Click Next

  10. On the Implement Events API page:

    • Copy the Pixel ID and add it to the TikTok integration field in the last action of Step 1 (point 7)

    • Click Generate Access Token, copy the token, and add it to the TikTok integration field in Step 1 (point 7)

      ❗ Copy and save the Access Token immediately after generating it - it will not be shown again.

    • Click Next

  11. On the Testing page, click Finish to complete the setup

  12. On the overview page of the data source you just created, go to the Test Events section:

    • Copy the Test Event Code from under Test server-side events (Events API) and add it to the field in Step 1 (point 6)

    • Test the event

    ❗As per TikTok, it may take up to 30 minutes for your event to show up.


Step 3 - Create a SAN Campaign in Swaarm

  1. Go to the store app page for your app in Swaarm

  2. Scroll down to the Offers section

  3. Select the TikTok account you connected in Step 2 and click Create

  4. On the next screen, copy the link that appears - you will need this in Step 4 (point 4)


Step 4 - Create the ad campaign in TikTok Ads Manager

Now you are ready to create the campaign.

  1. In TikTok Ads Manager, create a new campaign and select Lead Generation as the advertising objective

  2. Configure the remaining campaign settings (name, budgets) as needed and click Continue on to the Ad group

  3. At the Ad group level:

    • Name the ad group

    • Set Optimization and bidding location to Website and Optimization goal to Leads

    • Under Data connection, select the data source created in Step 2

      ❗ If the data source is not available to select, send a few standard events to TikTok from the Swaarm panel first, then wait up to 30 minutes for TikTok to activate the data source.

    • Set the Optimization event to Complete Registration and set a Target CPA

    • Configure the remaining ad group settings - bid strategy, schedule, targeting, and placements, as needed

    • Click Continue to proceed to the Ad level

  4. At the Ad level:

    • Set the destination to Website

    • Under Website URL, paste the link copied from Step 3 (point 4)

    • Add the remaining creative assets and details as needed, then publish the campaign


What happens next?

Once Swaarm starts receiving data from TikTok:

  • An offer is created automatically in Swaarm for each TikTok campaign

  • All stats - installs, events, and cost - are recorded under the respective offer in Swaarm

Did this answer your question?