Documentation

Android Implementation

The client user id is an optional string that can be set for the SDK to enrich analytics.

Set the client id during SDK initialisation

MochaApplicationExtensions.init(
    context = this,
    monetizationConfig = MochaSdkConfig(
        campaignId = "<your campaign id>",
        testVariant = TestVariant.CONTROL,
        admobConfig = null,
        clientUserId = "my-client-user-id"
        )
    )
)

Change the client id or set it at a later stage

MochaSdk.setUserId("my-new-user-client-id")

Reset or clear the client id

Simply set the value to null.

MochaSdk.setUserId(null)