Launch offer for the first 500 accounts: $10K MTR free for 24 months + $100 credit →
    .io

    Adjust attribution

    Overview

    A mobile measurement partner (MMP) that attributes installs to campaigns, networks and creatives.

    setAdjustId stores Adjust’s identifier on the BillDog customer under the attribution key adjustId. It comes back in the customer’s attribution data (customer info). BillDog's Adjust connector reads it and sends it to Adjust with each event it forwards (see the note below).

    Storing the Adjust ID keeps it next to the customer's subscription state, so your own backend can join Adjust's install data to BillDog revenue when it reads customer info back.

    The setter

    SDK methodAttribution key
    setAdjustIdadjustId

    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.

    BillDog's Adjust connector (Dashboard → Integrations) sends revenue events to Adjust server-to-server. It sends this Adjust ID as adid, plus any device identifiers uploaded with setDeviceIdentifiers; an event is skipped when the customer has none of them, or when no Adjust event token is mapped for it. See Attribution Integrations.

    Wiring it up

    Read the identifier from Adjust's SDK and hand it to BillDog once it resolves:

    // iOS
    Adjust.adid { adid in
        guard let adid else { return }
        Task { try? await BillDog.shared.setAdjustId(adid) }
    }
    // Android
    Adjust.getAdid { adid ->
        scope.launch { BillDog.getInstance().setAdjustId(adid) }
    }
    // React Native — fire-and-forget, returns void
    BillDog.setAdjustId(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 Adjust’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

    Was this page helpful?

    Or rate this page:

    We use cookies and process your data to provide our services. By continuing, you agree to our Terms and Privacy Policy.