Setup Singular for mobile attribution showing SDK integration, cost aggregation, and ad network connections

How to Set Up Singular for Mobile Attribution: Best Complete Guide (2026)

A late SDK start, a missing revenue parameter or a mismatched measurement partner on an ad network can quietly break your attribution data. This guide shows how to set up Singular for iOS and Android: the SDK keys, installation and initialization, ATT, events and revenue, SKAdNetwork, server-side events, ad network connections and testing.The details below follow Singular’s documentation as checked in October 2026, which describes SDK 12 for both platforms. Several patterns in older tutorials no longer apply, and I point those out as they come up. If you are new to the topic, read what mobile attribution is first.

What Singular Does

Singular is a Mobile Measurement Partner (MMP). Like other MMPs, it attributes installs and events to campaigns. It also pulls cost data from ad networks, so you can see spend next to return in one view. For a vendor comparison, read Singular vs AppsFlyer.

Singular Pricing

Singular does not publish a full price list in the sources I could check, and third-party price trackers disagree with each other about its plans. Treat any number you read in a blog post as unconfirmed, and ask Singular for a written quote that lists conversion limits, overages and add-ons before you commit.

Before You Set Up Singular

It is easier to set up Singular when the basics are ready first:
  • A Singular account with permission to add apps.
  • Access to your app’s source code on each platform.
  • App Store Connect and Google Play Console access.
  • The ad networks you plan to run.

Step 1: Create Your Account and Get Your SDK Keys

Create your Singular account and add your apps with their bundle ID or package name. Your SDK Key and SDK Secret are in the Singular platform under Developer Tools, then SDK Integration. The SDK Key and Secret are meant to live inside the app. The Reporting API key is a different credential and must never be placed in an app. Singular’s server-to-server endpoint also rejects requests that use the Reporting API key.

Step 2: iOS SDK Setup

Install the SDK

Singular’s iOS integration guide recommends CocoaPods and also supports Swift Package Manager:
pod 'Singular-SDK'
https://github.com/singular-labs/Singular-iOS-SDK
The guide lists iOS 12 as the platform target and several frameworks to link, including AdSupport, WebKit and StoreKit, with AdServices optional. Use the repository above, not the older URL from earlier tutorials.

Add the ATT Usage Description

If your app will show the ATT prompt, add Apple’s usage description key to Info.plist with a clear reason:
<key>NSUserTrackingUsageDescription</key>
<string>We use this to measure which ads brought you to the app.</string>

Initialize the SDK

Create a SingularConfig from your key and secret, then call Singular.start. The initializer returns an optional, so unwrap it:
import Singular

func startSingular() {
    guard let config = SingularConfig(apiKey: "YOUR_SDK_KEY", andSecret: "YOUR_SDK_SECRET") else { return }
    // Only if you show the ATT prompt (see below)
    config.waitForTrackingAuthorizationWithTimeoutInterval = 300
    Singular.start(config)
}
Where you call it matters. Singular says to start the SDK at every app entry point, not only once in an initializer. In a SceneDelegate app, that means willConnectTo, the user activity callback for Universal Links and the URL contexts callback. In a SwiftUI app, use .onOpenURL, .onContinueUserActivity and an .onChange(of: scenePhase) handler that starts the SDK on first activation only when no deep link has already started it. Putting a single call inside the App initializer, as many older posts do, misses deep link data. Follow the exact patterns in Singular’s guide.

Handle ATT

If you show the ATT prompt, set the waiting interval above. The SDK then queues events, sends them with the IDFA if the user allows tracking, and sends them anyway after the timeout. Singular’s SKAdNetwork documentation recommends a timeout between 30 and 300 seconds, and shows the prompt early to improve IDFA availability. Do not request tracking permission repeatedly from users who said no.

SKAdNetwork on iOS

Singular states that SKAdNetwork tracking is enabled by default, and from iOS SDK 12.0.6 onward no extra configuration is needed. In the default Managed Mode, Singular updates conversion values for you based on the conversion model you set in the dashboard, with no code changes. A Manual Mode exists, where you set manualSkanConversionManagement and update values yourself, but it only makes sense if you have a clear reason.The SKAdNetworkItems list from older tutorials is for apps that display ads. For an app that only advertises itself, Singular’s page does not call for it, and neither does Apple’s advertised app guide. For the wider picture, see the SKAdNetwork setup guide.

Step 3: Android SDK Setup

Add the Dependency and Permissions

Singular’s Android guide lists SDK 12.16.1 as current, so older 11.+ snippets are outdated. Add Singular’s Maven repository as the guide describes, then the dependency:
implementation("com.singular.sdk:singular_sdk:12.16.1")
The guide requires these permissions: INTERNET, ACCESS_NETWORK_STATE, BIND_GET_INSTALL_REFERRER_SERVICE, CHECK_LICENSE and AD_ID. If you integrate Singular’s Kids SDK, remove the AD_ID permission.

Initialize the SDK

This is another place where the old advice is wrong. Singular’s guide places initialization in your MainActivity so that session tracking works correctly, not in the Application class. Call it from onCreate after setContentView, wrap it in try and catch so invalid credentials are logged instead of crashing the app, and run it on every app launch.
override fun onCreate(savedInstanceState: Bundle?) {
    super.onCreate(savedInstanceState)
    setContentView(R.layout.activity_main)

    try {
        val config = SingularConfig("YOUR_SDK_KEY", "YOUR_SDK_SECRET")
        Singular.init(applicationContext, config)
    } catch (e: Exception) {
        Log.e("Singular", "Initialization failed", e)
    }
}
For deep links, the guide points to withSingularLink, which also handles deferred deep links, and withOpenURI for links that do not come from Singular.

Step 4: Track Events and Revenue

Use Singular’s standard event names where they fit. Custom event names are limited to 32 ASCII characters, and names and attributes should be in English, with attribute values limited to 500 characters.

iOS

// Custom event
Singular.event("signup")

// Custom event with attributes
Singular.event("Bonus Points Earned", withArgs: ["Points": 500])

// Purchase with a StoreKit 1 transaction (allows validation)
Singular.iapComplete(transaction)

// Manual revenue (cannot be validated)
Singular.customRevenue("MyCustomRevenue", currency: "USD", amount: 1.99)

Android

// Custom event with an attribute
Singular.event("Bonus Points Earned", "Points", 500)

// Purchase with the Google Billing Purchase object (allows validation)
Singular.revenue("USD", 5.50, purchase)
Pass the real purchase object whenever you can. Singular says the iOS transaction or the Android Purchase object enables validation and fraud prevention, and revenue sent without it cannot be validated. Send currency as an uppercase three-letter ISO 4217 code and only send revenue events with a non-zero amount. Singular’s documentation does not describe an order ID based deduplication option for these methods, so do not assume one exists. Details are in Singular’s event tracking guide.

Step 5: Add Server-Side Events (Optional)

Server-to-server events are useful when an action happens on your backend, such as a verified renewal. Many older tutorials show an invented endpoint and a request body that includes the SDK secret, which is wrong. Singular’s event endpoint reference describes this:
  • Requests are POST requests with form-encoded parameters, not a JSON body.
  • The endpoint is https://s2s.singular.net/api/v2/evt for accounts created on or after July 15, 2026, and https://s2s.singular.net/api/v1/evt for existing V1 customers.
  • Authentication is the SDK Key in parameter a. Do not use the Reporting API key.
  • V2 identifies the device with the Singular device ID (sdid) from the SDK. V1 uses platform identifiers such as the IDFV, GAID or app set ID.
  • Other required fields include the platform (p), the app identifier (i), an IP address and OS and device details, plus the event name (n).
  • For revenue, send amt and cur, and optionally purchase details that allow validation.
Singular’s documentation says malformed receipt data makes it block the revenue and generate an __iapinvalid__ event. Because required fields differ by version and platform, copy the full parameter list from the reference instead of building it from memory.

Step 6: Connect Your Ad Networks

For each network you run, set up its integration in Singular, which pulls in cost data, and make sure the network itself lists Singular as its measurement partner. A common and expensive mistake is a network that still points at a different MMP, which causes attribution loss for that channel. Menu names change over time, so look for the data connectors or integrations section rather than relying on a fixed path.For Meta on iOS, make sure the events you send match your Aggregated Event Measurement priorities. For Google Ads, confirm that conversion imports work after you map events.

Step 7: Test Your Singular Setup

Do not assume it works. Singular’s testing guide uses the Testing Console. In short:
  1. Register your device under Developer Tools, Testing Console, using the GAID on Android, or the IDFA on iOS if ATT is authorized and the IDFV otherwise.
  2. Select the device in the Events Log with Live turned on, then open the app and confirm a session event appears. Without it, attribution will not work.
  3. Trigger each event and check its name, attributes and, for revenue, the currency and amount.
  4. Test deep links and deferred deep links, using a fresh ad identifier for the deferred case.
  5. Run the SDK Audit and fix every error before release.
Two limits matter. The Testing Console has no historical reports, so events must be triggered while the device is selected with Live on, and TestFlight builds are not supported. The free mobile app attribution debugger checks a payload against documented rules, the mobile attribution audit covers a wider checklist, and the iOS attribution fix guide helps if iOS numbers still look wrong.

Common Mistakes When You Set Up Singular

  • Starting the SDK only once. Start it at every app entry point on iOS and on every launch on Android.
  • Initializing Android in the Application class. Singular’s guide places it in MainActivity.
  • Using outdated SDK versions. Check the version in Singular’s guide instead of copying 11.+ from older posts.
  • Sending revenue without the purchase object. It cannot be validated and may be flagged.
  • Using the wrong key. The SDK Key goes in the app and the S2S request. The Reporting API key does not.
  • Pointing an ad network at another MMP. Check the measurement partner setting on every platform.
  • Testing with TestFlight builds in the Testing Console. They are not supported, so use a development build.

Flutter, React Native and Other Frameworks

Singular publishes separate SDK guides for Flutter, React Native, Unity and others. They wrap the native SDK and their method names differ, so I left framework code out on purpose. Follow the guide for your framework.

FAQ

What is Singular used for in mobile attribution?

Singular is a mobile measurement partner. It attributes installs and in-app events to campaigns and combines that with ad network cost data, so you can compare spend and return across channels in one place.

Do I need to add SKAdNetwork IDs to Info.plist for Singular?

Not for an app that only advertises itself. Singular’s documentation states that SKAdNetwork tracking is enabled by default in the SDK and does not mention an ID list. The SKAdNetworkItems list is for apps that display ads.

How do I track purchases in Singular?

On iOS with StoreKit 1, pass the completed transaction to Singular.iapComplete. On Android, pass the Google Billing Purchase object together with the currency and amount to Singular.revenue. Passing the purchase object allows Singular to validate it. Revenue sent without it cannot be validated.

What causes iapinvalid events in Singular?

Singular’s server-to-server documentation says malformed purchase receipt data makes Singular block the revenue and generate an __iapinvalid__ event. Check that the receipt or purchase object you send is complete and unmodified.

How does server-to-server event tracking work in Singular?

You send a form-encoded POST request to Singular’s event endpoint with your SDK key, the platform, the app identifier, device identifiers, the event name and any revenue fields. New accounts created on or after July 15, 2026 use the V2 endpoint, which identifies devices with the Singular device ID.

How do I test my Singular SDK integration?

Register a test device in the Testing Console, open the app, and confirm a session event appears, then trigger each event and check its name, attributes and revenue fields. Run the SDK Audit before release. TestFlight builds are not supported in the Testing Console.

Can Singular replace Firebase Analytics?

No. Singular handles install attribution and ad cost data, while Firebase Analytics measures what users do inside the app. Many apps use both because they answer different questions.If you want help getting your Singular setup right, send your platform and a short description to contact@alfahadhridoy.com and I will reply by email.