There may be cases where you want to add additional options when initializing the DT FairBid SDK. Below are some examples:
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);
let options = FYBStartOptions()
options.logLevel = .verbose
options.autoRequestingEnabled = false
options.isChild = true
FairBid.start(withAppId: "1234", options: options)
Objective-C
#import
FYBStartOptions *options = [[FYBStartOptions alloc] init];
options.logLevel = FYBLoggingLevelVerbose;
options.autoRequestingEnabled = NO;
options.isChild = YES;
[FairBid startWithAppId:@"1234" options:options];
FairBid.ConfigureForAppId("your_app_id")
.EnableLogs()
.DisableAutoRequesting()
.DisableAdvertisingId()
.SetIsChild(true)
.Start();
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
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.
isChild
The isChild
API must be called before initializing the SDK. Click Flag End-Users as a Child for information on flagging users as children.
setIsChild
The setIsChild
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.