You've already forked Commercialization.tapadn
Add TapADN smart preload attribution
This commit is contained in:
@@ -39,6 +39,10 @@ public sealed class TapadnControllerOptions
|
||||
public const string SplashMaxLoadAttemptsKey = "tapadn.splash_max_load_attempts";
|
||||
public const string SplashLoadRetryDelayMsKey = "tapadn.splash_load_retry_delay_ms";
|
||||
public const string SplashShowTimeoutMsKey = "tapadn.splash_show_timeout_ms";
|
||||
public const string SmartPreloadEnabledKey = "tapadn.smart_preload_enabled";
|
||||
public const string SmartPreloadConfigJsonKey = "tapadn.smart_preload_config_json";
|
||||
public const string SmartPreloadConfigAssetPathKey = "tapadn.smart_preload_config_asset_path";
|
||||
public const string SmartPreloadRemoteConfigJsonKey = "tapadn.smart_preload_remote_json";
|
||||
public const string ExpressWidthKey = "tapadn.express_width";
|
||||
public const string ExpressHeightKey = "tapadn.express_height";
|
||||
|
||||
@@ -55,23 +59,27 @@ public sealed class TapadnControllerOptions
|
||||
public string ATags { get; set; }
|
||||
public bool AllowIDFAAccess { get; set; } = true;
|
||||
public bool RequestPermissionOnInit { get; set; }
|
||||
public bool RewardedAutoLoad { get; set; } = true;
|
||||
public bool RewardedAutoLoad { get; set; } = false;
|
||||
public bool RewardedPrewarmOnInit { get; set; }
|
||||
public int RewardedMaxLoadAttempts { get; set; } = 1;
|
||||
public int RewardedLoadRetryDelayMs { get; set; } = 500;
|
||||
public int RewardedShowTimeoutMs { get; set; } = 20000;
|
||||
public string RewardName { get; set; } = "reward";
|
||||
public int RewardAmount { get; set; } = 1;
|
||||
public bool InterstitialAutoLoad { get; set; } = true;
|
||||
public bool InterstitialAutoLoad { get; set; } = false;
|
||||
public bool InterstitialPrewarmOnInit { get; set; }
|
||||
public int InterstitialMaxLoadAttempts { get; set; } = 1;
|
||||
public int InterstitialLoadRetryDelayMs { get; set; } = 500;
|
||||
public int InterstitialShowTimeoutMs { get; set; } = 20000;
|
||||
public bool SplashAutoLoad { get; set; } = true;
|
||||
public bool SplashAutoLoad { get; set; } = false;
|
||||
public bool SplashPrewarmOnInit { get; set; }
|
||||
public int SplashMaxLoadAttempts { get; set; } = 1;
|
||||
public int SplashLoadRetryDelayMs { get; set; } = 500;
|
||||
public int SplashShowTimeoutMs { get; set; } = 20000;
|
||||
public bool SmartPreloadEnabled { get; set; } = false;
|
||||
public string SmartPreloadConfigAssetPath { get; set; } = "TapadnSmartLoadPolicy_Default";
|
||||
public string SmartPreloadConfigJson { get; set; }
|
||||
public string SmartPreloadRemoteConfigJson { get; set; }
|
||||
public int? ExpressWidth { get; set; }
|
||||
public int? ExpressHeight { get; set; }
|
||||
|
||||
@@ -209,6 +217,10 @@ public sealed class TapadnControllerOptions
|
||||
SplashMaxLoadAttempts = incoming.SplashMaxLoadAttempts;
|
||||
SplashLoadRetryDelayMs = incoming.SplashLoadRetryDelayMs;
|
||||
SplashShowTimeoutMs = incoming.SplashShowTimeoutMs;
|
||||
SmartPreloadEnabled = incoming.SmartPreloadEnabled;
|
||||
SmartPreloadConfigAssetPath = incoming.SmartPreloadConfigAssetPath ?? SmartPreloadConfigAssetPath;
|
||||
SmartPreloadConfigJson = incoming.SmartPreloadConfigJson;
|
||||
SmartPreloadRemoteConfigJson = incoming.SmartPreloadRemoteConfigJson;
|
||||
ExpressWidth = incoming.ExpressWidth ?? ExpressWidth;
|
||||
ExpressHeight = incoming.ExpressHeight ?? ExpressHeight;
|
||||
}
|
||||
@@ -266,6 +278,10 @@ public sealed class TapadnControllerOptions
|
||||
SplashMaxLoadAttempts = GetInt(map, SplashMaxLoadAttemptsKey) ?? SplashMaxLoadAttempts;
|
||||
SplashLoadRetryDelayMs = GetInt(map, SplashLoadRetryDelayMsKey) ?? SplashLoadRetryDelayMs;
|
||||
SplashShowTimeoutMs = GetInt(map, SplashShowTimeoutMsKey) ?? SplashShowTimeoutMs;
|
||||
SmartPreloadEnabled = GetBool(map, SmartPreloadEnabledKey) ?? SmartPreloadEnabled;
|
||||
SmartPreloadConfigAssetPath = GetString(map, SmartPreloadConfigAssetPathKey) ?? SmartPreloadConfigAssetPath;
|
||||
SmartPreloadConfigJson = GetString(map, SmartPreloadConfigJsonKey) ?? SmartPreloadConfigJson;
|
||||
SmartPreloadRemoteConfigJson = GetString(map, SmartPreloadRemoteConfigJsonKey) ?? SmartPreloadRemoteConfigJson;
|
||||
ExpressWidth = GetInt(map, ExpressWidthKey) ?? ExpressWidth;
|
||||
ExpressHeight = GetInt(map, ExpressHeightKey) ?? ExpressHeight;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user