-
public class OxRemoteConfigHelper
-
-
Method Summary
Modifier and Type Method Description static intgetEventLevel()打点等级。 static intgetDepthUserLevel()获取深度用户阈值。 static intgetAllowedKeywordType()允许需要设置给 Applovin 的 Keywords。 static doublegetAdLtvMedium()ltv medium 阈值。 static doublegetAdLtvHigh()ltv high 阈值。 static intgetDaysOfNewUser()应用安装后的 n 天内,视为新增用户。 static StringgetUacCampaign()uac campaign 信息。 static booleanisMemoryLimitReached(String adFormat)是否达到内存限制。 static booleanisEventsBanned(int adFormatIndex)对应广告格式的打点是否被禁用。 static voidsaveGdprTool()static List<String>getKeywords()传给广告平台的关键字。 static StringgetRemoteString(@NonNull() String key, @Nullable() String fallback)static StringgetString(@NonNull() String key, String defaultValue)static doublegetDouble(@NonNull() String key, double defaultValue)static intgetInt(@NonNull() String key, int defaultValue)static booleangetBool(@NonNull() String key, boolean defaultValue)static StringgetDisableInterIds()被禁用插屏广告位ID。 static StringgetDisableRVIds()被禁用激励视频广告位ID。 static StringgetAddInterIds()动态添加插屏广告位ID。 static StringgetAddRVIds()动态添加激励视频广告位ID。 static StringgetNative2InterIds()Max native id 当插屏 ids static intgetParallelTasks(int defaultValue)并行数 static intgetReloadTime()重试时间最大方次数,重试时间一般都是2的n次方,这里是动态获取n,默认是6 static StringgetNative2BannerId()重试时间最大方次数,重试时间一般都是2的n次方,这里是动态获取n,默认是6 static StringgetDisableReload()是否关闭 【加载失败|展示失败 重试】 功能,格式:reward,interstitial,open,native, -1 为关闭,其他数据不关闭,比如: -1,0,0,0 这里只关闭 reward ,其他的不关闭 static StringgetDisableCloseReload()广告关闭之后,是否立刻请求,格式:reward,interstitial, -1 为关闭,其他数据不关闭,比如: -1,0 这里只关闭 reward ,其他的不关闭 static intgetCacheAdSize()广告缓存最大数量设置,等于 0 不生效 static intgetTimeoutMill()是否开启超时任务 static StringgetExploredConfig(String placementName)配置BidExplored功能的ID和跳高百分比,先ID,后百分比,使用英文逗号链接,例如:6edc59f27f01055f,0. static StringgetIsExploredCacheModel()广告缓存模式,High:保留高价,New:保留最新 static intgetIsExploredIsDeleteCache()是否删除RV缓存的无底价广告,0:false,1:true static intgetGeoConsent()-1: 没有配置,0.默认配置,1. -
-
Method Detail
-
getEventLevel
static int getEventLevel()
打点等级。
-
getDepthUserLevel
static int getDepthUserLevel()
获取深度用户阈值。
-
getAllowedKeywordType
@IntRange(from = OxKeywordType.NONE, to = OxKeywordType.ALL) static int getAllowedKeywordType()
允许需要设置给 Applovin 的 Keywords。
-
getAdLtvMedium
static double getAdLtvMedium()
ltv medium 阈值。
-
getAdLtvHigh
static double getAdLtvHigh()
ltv high 阈值。
-
getDaysOfNewUser
static int getDaysOfNewUser()
应用安装后的 n 天内,视为新增用户。
-
getUacCampaign
static String getUacCampaign()
uac campaign 信息。
-
isMemoryLimitReached
static boolean isMemoryLimitReached(String adFormat)
是否达到内存限制。
-
isEventsBanned
static boolean isEventsBanned(int adFormatIndex)
对应广告格式的打点是否被禁用。
-
saveGdprTool
static void saveGdprTool()
-
getKeywords
@NonNull() static List<String> getKeywords()
传给广告平台的关键字。
-
getRemoteString
@Nullable() static String getRemoteString(@NonNull() String key, @Nullable() String fallback)
-
getDisableInterIds
static String getDisableInterIds()
被禁用插屏广告位ID。
-
getDisableRVIds
static String getDisableRVIds()
被禁用激励视频广告位ID。
-
getAddInterIds
static String getAddInterIds()
动态添加插屏广告位ID。
-
getAddRVIds
static String getAddRVIds()
动态添加激励视频广告位ID。
-
getNative2InterIds
static String getNative2InterIds()
Max native id 当插屏 ids
-
getParallelTasks
static int getParallelTasks(int defaultValue)
并行数
-
getReloadTime
static int getReloadTime()
重试时间最大方次数,重试时间一般都是2的n次方,这里是动态获取n,默认是6
-
getNative2BannerId
static String getNative2BannerId()
重试时间最大方次数,重试时间一般都是2的n次方,这里是动态获取n,默认是6
-
getDisableReload
static String getDisableReload()
是否关闭 【加载失败|展示失败 重试】 功能,格式:reward,interstitial,open,native, -1 为关闭,其他数据不关闭,比如: -1,0,0,0 这里只关闭 reward ,其他的不关闭
-
getDisableCloseReload
static String getDisableCloseReload()
广告关闭之后,是否立刻请求,格式:reward,interstitial, -1 为关闭,其他数据不关闭,比如: -1,0 这里只关闭 reward ,其他的不关闭
-
getCacheAdSize
static int getCacheAdSize()
广告缓存最大数量设置,等于 0 不生效
-
getTimeoutMill
static int getTimeoutMill()
是否开启超时任务
-
getExploredConfig
static String getExploredConfig(String placementName)
配置BidExplored功能的ID和跳高百分比,先ID,后百分比,使用英文逗号链接,例如:6edc59f27f01055f,0.2
-
getIsExploredCacheModel
static String getIsExploredCacheModel()
广告缓存模式,High:保留高价,New:保留最新
-
getIsExploredIsDeleteCache
static int getIsExploredIsDeleteCache()
是否删除RV缓存的无底价广告,0:false,1:true
-
getGeoConsent
static int getGeoConsent()
-1: 没有配置,0.默认配置,1. 目标区域配置。
-
-
-
-