Singular attribution
Overview
A marketing analytics platform combining attribution with cost aggregation across ad networks.
setSingularInstallID stores Singular’s identifier on the BillDog customer under the attribution key singularId. It comes back in the customer’s attribution data (customer info). BillDog doesn’t send it to Singular, and no BillDog report or connector reads it today.
Storing the Singular ID keeps it next to the customer's subscription state, so your own backend can join Singular's attribution and spend data to BillDog revenue when it reads customer info back.
The setter
| SDK method | Attribution key |
|---|---|
| setSingularInstallID | singularId |
The method name is identical on iOS, Android and React Native. On iOS it is async throws; on Android a suspend function returning Result<Unit>; on React Native it is fire-and-forget and returns void.
Singular's SDID is generated at first app open and is enabled by default for newer accounts. Retrieve it via the SDID bridge in your Singular SDK version.
Wiring it up
Obtain the identifier from Singular's own SDK — consult their documentation for the current accessor, since it varies by SDK major version — then pass it to BillDog:
// iOS — setter is async throws
Task { try? await BillDog.shared.setSingularInstallID(theId) }// Android — suspend function returning Result<Unit>
scope.launch { BillDog.getInstance().setSingularInstallID(theId) }// React Native — fire-and-forget, returns void
BillDog.setSingularInstallID(theId);Two things that catch people out
The SDK needs a customer first. The setter attaches the identifier to the SDK’s current customer. On a first launch there isn’t one until customer info has loaded, and then the setter fails: iOS throws, Android returns a failed Result, and React Native drops it without reporting anything. Call configure, wait for customer info (for example try await BillDog.shared.getCustomerInfo() on iOS or BillDog.getCustomerInfo() on Android), and set the identifier after that.
Values merge, they do not replace. Setting Singular’s identifier never clears another provider’s. You can call setters independently and in any order as each vendor’s SDK becomes ready.
Consent
The setter is gated by the SDK’s consent flag. If your app has called setConsentRequired(true) and consent hasn’t been given, the setter fails (iOS throws; Android returns a failed Result). Nothing is queued and nothing leaves the device. Call the setter again after setConsentGiven(true).
Related
- Attribution Integrations — all 20 providers, the full setter table, and device identifiers (IDFA / GAID)
- Analytics & Attribution Pipeline
- Identifier Best Practices
Was this page helpful?
Or rate this page: