Advanced Initialization Options

There may be cases where you want to add additional options when initializing the DT FairBid SDK. Below are some examples:

Android iOS Unity
Kotlin

FairBid.configureForAppId("your_app_id")
    .enableLogs()              // Enables logs for debugging
    .disableAutoRequesting()   // Disables auto-requesting of ads
    .disableAdvertisingId()    // Disables collection and transmission of AAID
    .setUserAChild()           // Flags certain users as children
    .start(context)
Java

FairBid.configureForAppId("your_app_id")
    .enableLogs()              // Enables logs for debugging
    .disableAutoRequesting()   // Disables auto-requesting of ads
    .disableAdvertisingId()    // Disables collection and transmission of AAID
    .setUserAChild()           // Flags certain users as children
    .start(context);

App ID

In the initialization code above, you must replace the your_app_id value with the your App ID. This value is passed as a string.

The DT App ID can be found in the App Management dashboard. For more information on how to obtain your App ID, click here.

Setting User as Child

Android iOS Unity

setUserAChild

The setUserAChild API must be called before initializing the SDK. Click Flag End-Users as a Child for information on flagging users as children. 

Note

This feature is available from DT FairBid SDK v.3.33.1 and higher.

Back to Top ⇧