public class AdColonyAppOptions
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ADMARVEL |
static java.lang.String |
ADMOB |
static java.lang.String |
ADOBEAIR |
static java.lang.String |
AERSERVE |
static int |
ALL
Deprecated.
|
static java.lang.String |
APPODEAL |
static java.lang.String |
CCPA |
static java.lang.String |
COCOS2DX |
static java.lang.String |
COPPA |
static java.lang.String |
CORONA |
static java.lang.String |
FUSEPOWERED |
static java.lang.String |
FYBER |
static java.lang.String |
GDPR |
static java.lang.String |
IRONSOURCE |
static int |
LANDSCAPE
Deprecated.
|
static java.lang.String |
MOPUB |
static int |
PORTRAIT
Deprecated.
|
static int |
SENSOR
Deprecated.
|
static java.lang.String |
UNITY |
| Constructor and Description |
|---|
AdColonyAppOptions() |
| Modifier and Type | Method and Description |
|---|---|
int |
getAppOrientation()
Used to retrieve the app orientation set in the app options.
|
java.lang.String |
getAppVersion()
Used to retrieve the app version set in the app options.
|
java.lang.String |
getGDPRConsentString()
Deprecated.
|
boolean |
getGDPRRequired()
Deprecated.
|
boolean |
getKeepScreenOn()
Used to retrieve the current setting for keepScreenOn.
|
JSONObject |
getMediationInfo()
Used to retrieve the currently set mediation info.
|
static AdColonyAppOptions |
getMoPubAppOptions(java.lang.String clientOptions)
Used to return app options when configuring the origin store and app version via MoPub's
dashboard
|
boolean |
getMultiWindowEnabled()
Used to retrieve the multi-window enabled flag
|
java.lang.Object |
getOption(java.lang.String key)
Used to retrieve an arbitrary option with the given key.
|
java.lang.String |
getOriginStore()
Used to retrieve the origin store set in the app options.
|
JSONObject |
getPluginInfo()
Used to retrieve the currently set plugin info.
|
java.lang.String |
getPrivacyConsentString(java.lang.String type)
Used to retrieve the specified privacy consent string set in the app options.
|
boolean |
getPrivacyFrameworkRequired(java.lang.String type)
Used to retrieve the specified privacy framework required value set in the app options.
|
int |
getRequestedAdOrientation()
Deprecated.
|
boolean |
getTestModeEnabled()
Used to retrieve the test mode enabled flag
|
java.lang.String |
getUserID()
Used to retrieve the unique user id set in the app options.
|
AdColonyUserMetadata |
getUserMetadata()
Deprecated.
|
AdColonyAppOptions |
setAppOrientation(int orientation)
Optionally send a constant representing the orientation of your app.
|
AdColonyAppOptions |
setAppVersion(java.lang.String app_version)
Optionally set an app version to be reported to AdColony.
|
AdColonyAppOptions |
setGDPRConsentString(java.lang.String consentString)
Deprecated.
|
AdColonyAppOptions |
setGDPRRequired(boolean required)
Deprecated.
|
AdColonyAppOptions |
setKeepScreenOn(boolean keepScreenOn)
Used to programmatically set a flag on our Activity's window to keep the display from going
to sleep.
|
AdColonyAppOptions |
setMediationNetwork(java.lang.String name,
java.lang.String version)
Used to send information about the mediation network that has implemented AdColony
|
AdColonyAppOptions |
setMultiWindowEnabled(boolean enabled)
Used to alert AdColony that multi-window is enabled for your app, allowing us to adjust
our interstitial layout as necessary.
|
AdColonyAppOptions |
setOption(java.lang.String key,
boolean value)
Optionally set an arbitrary key/value definition
|
AdColonyAppOptions |
setOption(java.lang.String key,
double value)
Optionally set an arbitrary key/value definition
|
AdColonyAppOptions |
setOption(java.lang.String key,
java.lang.String value)
Optionally set an arbitrary key/value definition
|
AdColonyAppOptions |
setOriginStore(java.lang.String origin_store)
Optionally set the origin store for this app (default: 'google').
|
AdColonyAppOptions |
setPlugin(java.lang.String name,
java.lang.String version)
Used to send information about the plugin AdColony wrapper.
|
AdColonyAppOptions |
setPrivacyConsentString(java.lang.String type,
java.lang.String consentString)
This is to provide AdColony with the user's consent string of the specified type if applicable.
|
AdColonyAppOptions |
setPrivacyFrameworkRequired(java.lang.String type,
boolean required)
This is to provide AdColony about whether or not the specified privacy framework is applicable.
|
AdColonyAppOptions |
setRequestedAdOrientation(int orientation)
Deprecated.
|
AdColonyAppOptions |
setTestModeEnabled(boolean enabled)
Used to enable test ads for your application without changing dashboard settings.
|
AdColonyAppOptions |
setUserID(java.lang.String user_id)
Optionally set a unique id for this specific app session to be reported to AdColony.
|
AdColonyAppOptions |
setUserMetadata(AdColonyUserMetadata metadata)
Deprecated.
|
public static final java.lang.String ADMOB
public static final java.lang.String MOPUB
public static final java.lang.String IRONSOURCE
public static final java.lang.String APPODEAL
public static final java.lang.String FUSEPOWERED
public static final java.lang.String AERSERVE
public static final java.lang.String ADMARVEL
public static final java.lang.String FYBER
public static final java.lang.String UNITY
public static final java.lang.String ADOBEAIR
public static final java.lang.String COCOS2DX
public static final java.lang.String CORONA
public static final java.lang.String CCPA
public static final java.lang.String GDPR
public static final java.lang.String COPPA
@Deprecated public static final int SENSOR
@Deprecated public static final int PORTRAIT
@Deprecated public static final int LANDSCAPE
@Deprecated public static final int ALL
public AdColonyAppOptions setPrivacyConsentString(java.lang.String type, java.lang.String consentString)
type - one of the applicable constants defined in this class: "GDPR" or "CCPA".consentString - the user's consent string of the specified type.
For GDPR, this should either be "0" or "1" (representing do not consent, or consent), or the IAB standard consent String.
For CCPA, this should either be a "0", or "1" (representing do not sell = true, or do not sell = false), or the IAB standard consent String.public AdColonyAppOptions setPrivacyFrameworkRequired(java.lang.String type, boolean required)
public java.lang.String getPrivacyConsentString(java.lang.String type)
public boolean getPrivacyFrameworkRequired(java.lang.String type)
@Deprecated public AdColonyAppOptions setGDPRRequired(boolean required)
required - whether or not we need consider GDPR for this user.@Deprecated public boolean getGDPRRequired()
@Deprecated public AdColonyAppOptions setGDPRConsentString(java.lang.String consentString)
consentString - the user's GDPR consent String.@Deprecated public java.lang.String getGDPRConsentString()
public AdColonyAppOptions setAppVersion(java.lang.String app_version)
app_version - the version of your app.public java.lang.String getAppVersion()
public AdColonyAppOptions setUserID(java.lang.String user_id)
user_id - the unique id for this user.public java.lang.String getUserID()
public AdColonyAppOptions setOption(java.lang.String key, boolean value)
key - the key for this option mapping.value - the value for this option mapping.public java.lang.Object getOption(java.lang.String key)
key - the key of the option you wish to retrieve.public AdColonyAppOptions setOption(java.lang.String key, double value)
key - the key for this option mapping.value - the value for this option mapping.public AdColonyAppOptions setOption(java.lang.String key, java.lang.String value)
key - the key for ths option mapping.value - the value for this option mapping.public AdColonyAppOptions setOriginStore(java.lang.String origin_store)
origin_store - the origin store for this device.public java.lang.String getOriginStore()
@Deprecated public AdColonyAppOptions setRequestedAdOrientation(int orientation)
orientation - one of the orientation constants defined in this class.@Deprecated public int getRequestedAdOrientation()
public AdColonyAppOptions setAppOrientation(int orientation)
orientation - one of the orientation constants defined in this class.public int getAppOrientation()
@Deprecated public AdColonyAppOptions setUserMetadata(AdColonyUserMetadata metadata)
metadata - the AdColonyUserMetadata object to send.AdColonyUserMetadatapublic AdColonyAppOptions setTestModeEnabled(boolean enabled)
enabled - represents whether or not to enable test ads for your application.public boolean getTestModeEnabled()
public AdColonyAppOptions setMultiWindowEnabled(boolean enabled)
enabled - represents whether or not multi window is enabled for your app.public boolean getMultiWindowEnabled()
@Deprecated public AdColonyUserMetadata getUserMetadata()
AdColonyUserMetadatapublic AdColonyAppOptions setMediationNetwork(java.lang.String name, java.lang.String version)
name - the name of the networkversion - the version of the adapterpublic JSONObject getMediationInfo()
setMediationNetwork(String, String). Will be mapped to empty Strings if this
option has not been set.public AdColonyAppOptions setPlugin(java.lang.String name, java.lang.String version)
name - the name of the pluginversion - the version of the plugin wrapperpublic JSONObject getPluginInfo()
setPlugin(String, String). Will be mapped to empty Strings if this option has not
been set.public AdColonyAppOptions setKeepScreenOn(boolean keepScreenOn)
keepScreenOn - whether or not to keep the screen onpublic boolean getKeepScreenOn()
public static AdColonyAppOptions getMoPubAppOptions(java.lang.String clientOptions)
AdColonyAppOptions