public static final class MyTargetConfig.Builder
extends java.lang.Object
| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
MyTargetConfig |
build() |
MyTargetConfig.Builder |
from(MyTargetConfig myTargetConfig)
Copies all settings from previous config, it can be used for changing only certain
fields of config
|
MyTargetConfig.Builder |
withTestDevices(java.lang.String... testDevices)
Adds test device/s to show test ad.
|
MyTargetConfig.Builder |
withTrackingEnvironment(boolean enabled)
Provides the option to disable the collection of environment params.
|
MyTargetConfig.Builder |
withTrackingLocation(boolean enabled)
Provides the option to disable the collection of location and location-based params.
|
@NonNull public MyTargetConfig build()
@NonNull public MyTargetConfig.Builder from(@NonNull MyTargetConfig myTargetConfig)
myTargetConfig - previous config@NonNull public MyTargetConfig.Builder withTrackingEnvironment(boolean enabled)
enabled - enable or disable collection@NonNull public MyTargetConfig.Builder withTrackingLocation(boolean enabled)
enabled - enable or disable collection@NonNull public MyTargetConfig.Builder withTestDevices(@Nullable java.lang.String... testDevices)
D/[myTarget]: Device instanceId is {INSTANCE_ID}. Use this value in adInstance.withTestDevices() to enable test mode on this device.
this value should be put here. Multiple, if code needs to run on several test devices.
Method must be called before loading AdtestDevices - instanceId from the Logcat