Advanced Initialization Options

The following code examples describe how to configure advanced initialization options when you initialize the FairBid SDK for different use cases, such as enabling logs for debugging, disabling auto-requesting for ads or the collection and transmission of AAID, and flagging certain users as children.

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()              // Enable logs for debugging
    .disableAutoRequesting()   // Disable auto-requesting of ads
    .disableAdvertisingId()    // Disable collection and transmission of AAID
    .setUserAChild()           // Flag certain users as children
    .start(context);

App ID

In the initialization code above, you must replace the your_app_id value with your App ID and pass it as a string. To locate the DT App ID, log in to the DT Console, and go to Monetization→App Management. The Apps dashboard displays a list of your apps, and App IDs display below each app name.

Setting User as Child

This API enables publishers to flag certain users as children. The term children refers to individuals under a certain age, as defined under applicable data privacy laws. This API must be called before SDK initialization. For more information about flagging users as children, see Flag End-Users as a Child.

Android iOS Unity
Java
setUserAChild

Back to Top ⇧