Airbridge
Overview
Airbridge identifies each install by a device UUID. setAirbridgeDeviceID stores it on the BillDog customer under the reserved attribution key airbridgeId, and the value comes back in the customer’s attribution data (customer info). Setting it never clears another provider’s ID.
Storage only. BillDog doesn’t send purchases or revenue to Airbridge, and it doesn’t join BillDog revenue to Airbridge campaigns. Storing the UUID lets your own backend make that join when it reads customer info back.
Link the device UUID
Airbridge resolves the device UUID asynchronously, so fetch it with a callback and set it once resolved. BillDog must have loaded customer info first: with no current customer the setter fails (iOS throws, Android returns a failed Result, React Native drops it silently). Use fetchDeviceUUID — the older AirBridge.deviceUUID property is deprecated.
// iOS — setter is async throws
import BillDogFull
import Airbridge
Airbridge.fetchDeviceUUID { deviceUUID in
Task { try? await BillDog.shared.setAirbridgeDeviceID(deviceUUID) }
}// Android — suspend function returning Result<Unit>
import io.billdog.core.BillDog
import co.ab180.airbridge.Airbridge
Airbridge.fetchDeviceUUID(
onSuccess = { deviceUUID ->
scope.launch { BillDog.getInstance().setAirbridgeDeviceID(deviceUUID) }
},
onFailure = { /* leave attribution unset — do not send a placeholder */ }
)// React Native — fire-and-forget, returns void
import { BillDog } from '@billdog.io/react-native';
const deviceUUID = await Airbridge.fetchDeviceUUID();
BillDog.setAirbridgeDeviceID(deviceUUID);On failure, leave the value unset rather than sending a placeholder — an empty or synthetic ID stores a value that can never be matched to an Airbridge device.
Device identifiers (IDFA / GAID)
Airbridge derives its device UUID from platform identifiers — IDFA or IDFV on iOS, GAID or App Set ID on Android. BillDog’s own device-identifier calls (collectDeviceIdentifiers() and setDeviceIdentifiers) are separate and have no effect on Airbridge; see Attribution Integrations.
Note that on iOS the UUID falls back to IDFV when the user declines ATT, and on Android it is fixed to an all-zero value when Limit Ad Tracking is enabled — so a shared UUID across installs is expected behaviour, not a bug.
Consent gating
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 it again after setConsentGiven(true).
Related
Was this page helpful?
Or rate this page: