Skip to main content

Appsflyer Audience Integration

How to integrate Appsflyer Audience with Swaarm - automate retargeting audience file syncing so Appsflyer can push device lists directly to your offers.

Updated today

The Appsflyer Audience Integration allows Appsflyer to sync audience files (lists of IDFA/GAID identifiers) directly to Swaarm via API - removing the need to manually upload CSV files for each retargeting campaign.

Appsflyer calls the following Swaarm endpoints to manage audience files:


Setup

Step 1 - Add your Appsflyer Audience API key in Swaarm

  1. Go to Organization → Settings → Connections → Appsflyer → Audience

  2. Enter the API key - contact Appsflyer to obtain the API key for your partner account

  3. Click Save

Step 2 - Find the offer's Audience API key

Each offer has its own Audience API key that the advertiser uses to link their Appsflyer audience to the correct offer in Swaarm.

  1. Go to the Offer Details page

  2. Click Show More (the expand arrows)

  3. Copy the Appsflyer Audience API key

⚠️ The Audience API key is offer-specific - it cannot be universal. You need to share a separate key with the advertiser for each offer they want to sync audiences to. The advertiser enters this key in their Appsflyer account to select your network as the provider for that offer.

Step 3 - Test the integration

Before going live, test the integration to confirm Appsflyer can successfully reach Swaarm's endpoints:

  1. Use a test offer in Swaarm (e.g. Offer id 2) and copy its Audience API key from Show More

  2. Share the following with the Appsflyer team:

    • The three integration endpoints above (with your domain)

    • The test API key from the test offer

    • A preferred email address to receive the PARTNER_PULL_KEY from Appsflyer

  3. Appsflyer will run a test sync using the provided details

  4. If the test is successful, the audience file will appear in Offer → Retargeting tab of the test offer

ℹ️ Once Appsflyer confirms the test is successful, they will send a PARTNER_PULL_KEY to the email address you provided. Keep this for reference.

Step 4 - Enable the Invalid User Identifier optimization rule in Swaarm

Configure a click optimization rule so that only users on the retargeting list can pass through. Without this rule, the retargeting list has no effect.

  1. Go to Automation → Optimizations

  2. Create a rule for Click: Invalid User Identifier

  3. Scope it to the specific offer — do not set this rule globally

⚠️ Do not set this rule globally - it will block all traffic on any offer that does not have a retargeting list configured. Instead select specific offer/advertiser this rule should be applied to.

Did this answer your question?