public class POBSDKConfig
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
void |
addExternalUserId(POBExternalUserId userId)
Adds the External user id /Data Partner ids which helps publisher in better user targeting
|
void |
allowAdvertisingId(boolean allow)
Indicates whether Advertisement ID should be sent in the request.
|
void |
allowLocationAccess(boolean allow)
Enables or disable SDK location detection.
|
POBApplicationInfo |
getApplicationInfo() |
java.lang.String |
getCCPA()
Get the CCPA complaint string set by publisher
|
java.util.Map<java.lang.String,java.util.List<POBExternalUserId>> |
getExternalUserIds()
Get the map of User defined data partner ids
|
java.lang.String |
getGdprConsent()
Method to get GDPR consent string if publisher is granted GDPR consent
|
POBHTMLMeasurementProvider |
getHtmlMeasurementProvider()
Method to get HTML measurement provider instance
|
POBLocation |
getLocation() |
long |
getLocationDetectionDurationInMillis()
Returns time interval used to get the two consecutive location
|
POBUserInfo |
getUserInfo() |
POBVideoMeasurementProvider |
getVideoMeasurementProvider()
Method to get video measurement provider instance
|
boolean |
isAllowAdvertisingId() |
java.lang.Boolean |
isCoppa() |
java.lang.Boolean |
isGdprEnabled()
Method to check whether publisher is GDPR regulated or not
|
boolean |
isLocationAccessAllowed()
Determines if location detection is enabled.
|
boolean |
isRequestSecureCreative() |
boolean |
isUseInternalBrowser()
Returns true if landing page for an ad would opened in internal browser else returns false
|
void |
removeAllExternalUserIds()
removes all data partner ids
|
void |
removeExternalUserIds(java.lang.String source)
removes the Data partner ids of a particular source
|
void |
setApplicationInfo(POBApplicationInfo applicationInfo)
Sets the application information.
|
void |
setCCPA(java.lang.String ccpa)
Set the CCPA compliant string.
|
void |
setCoppa(boolean coppaState)
Sets COPPA state.
|
void |
setGdprConsent(java.lang.String gdprConsent)
Method to set GDPR consent string if publisher is granted GDPR consent
|
void |
setGdprEnabled(java.lang.Boolean gdprEnabled)
Method to set GDPR regulation value
By default GDPR value is set to false
|
void |
setLocation(POBLocation location) |
void |
setLocationDetectionDurationInMillis(long durationInMillis)
Sets the duration for retrieving the location of user.
|
void |
setRequestSecureCreative(boolean requestSecureCreative)
Requests secure ads from ad server using https protocol.
|
void |
setUseInternalBrowser(boolean internalBrowserState)
Set to true if landing page for an ad should be opened in internal browser else set to false.
|
void |
setUserInfo(POBUserInfo userInfo)
Sets the user's information.
|
public boolean isLocationAccessAllowed()
public void allowLocationAccess(boolean allow)
Permissions for coarse or fine location detection may be required.
allow - enable or disable auto location detectionpublic long getLocationDetectionDurationInMillis()
public void setLocationDetectionDurationInMillis(long durationInMillis)
durationInMillis - time in milli secondpublic boolean isUseInternalBrowser()
public void setUseInternalBrowser(boolean internalBrowserState)
internalBrowserState - value of boolean type@Nullable public POBLocation getLocation()
public void setLocation(@Nullable
POBLocation location)
@Nullable public java.lang.Boolean isCoppa()
public void setCoppa(boolean coppaState)
coppaState - Coppa statepublic boolean isRequestSecureCreative()
public void setRequestSecureCreative(boolean requestSecureCreative)
requestSecureCreative - true for enable secure creative mode. Default is set to false.public boolean isAllowAdvertisingId()
public void allowAdvertisingId(boolean allow)
allow - state of advertisement id usage@Nullable public POBUserInfo getUserInfo()
public void setUserInfo(@Nullable
POBUserInfo userInfo)
userInfo - value of POBUserInfo type@Nullable public POBApplicationInfo getApplicationInfo()
public void setApplicationInfo(@Nullable
POBApplicationInfo applicationInfo)
applicationInfo - value of POBApplicationInfo type@Nullable public java.lang.Boolean isGdprEnabled()
public void setGdprEnabled(@Nullable
java.lang.Boolean gdprEnabled)
gdprEnabled - provide true, if publisher want to grant GDPR regulations else provide false@Nullable public java.lang.String getGdprConsent()
public void setGdprConsent(@Nullable
java.lang.String gdprConsent)
gdprConsent - provide GDPR consent string@Nullable public POBHTMLMeasurementProvider getHtmlMeasurementProvider()
@Nullable public POBVideoMeasurementProvider getVideoMeasurementProvider()
@Nullable public java.lang.String getCCPA()
public void setCCPA(@Nullable
java.lang.String ccpa)
OpenWrapSDK.setCCPA(String)ccpa - is the CCPA compliant stringpublic void addExternalUserId(@NonNull
POBExternalUserId userId)
userId - instance of POBExternalUserId class@NonNull public java.util.Map<java.lang.String,java.util.List<POBExternalUserId>> getExternalUserIds()
public void removeExternalUserIds(@NonNull
java.lang.String source)
source - name of sourcepublic void removeAllExternalUserIds()