public abstract class BaseAd
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected AdConfig |
adConfig |
| Modifier | Constructor and Description |
|---|---|
protected |
BaseAd(int slotId,
java.lang.String format) |
| Modifier and Type | Method and Description |
|---|---|
CustomParams |
getCustomParams()
Each Ad object contains custom params.
|
boolean |
isTrackingEnvironmentEnabled() |
boolean |
isTrackingLocationEnabled() |
static void |
setDebugMode(boolean debugMode)
Enable / disable debug mode (default false).
|
void |
setTrackingEnvironmentEnabled(boolean enabled)
Provides the option to disable the collection of Wi-Fi and cell information.
|
void |
setTrackingLocationEnabled(boolean enabled)
Provides the option to disable the collection of location and location-based params.
|
void |
withTestDevices(java.lang.String... testDevices)
Adds test device/s to show test ad.
|
public static void setDebugMode(boolean debugMode)
debugMode - enable or disable debugpublic void setTrackingEnvironmentEnabled(boolean enabled)
enabled - or disable collectionpublic boolean isTrackingEnvironmentEnabled()
public void setTrackingLocationEnabled(boolean enabled)
enabled - enable or disable collectionpublic boolean isTrackingLocationEnabled()
@NonNull public CustomParams getCustomParams()
CustomParamspublic void 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