You've already forked Commercialization.tapadn
Add TapADN smart preload attribution
This commit is contained in:
@@ -33,7 +33,7 @@ MonoBehaviour:
|
||||
- key: tapadn.sub_channel
|
||||
value: debug
|
||||
- key: tapadn.rewarded_auto_load
|
||||
value: true
|
||||
value: false
|
||||
- key: tapadn.rewarded_prewarm_on_init
|
||||
value: false
|
||||
- key: tapadn.rewarded_max_load_attempts
|
||||
@@ -47,7 +47,7 @@ MonoBehaviour:
|
||||
- key: tapadn.reward_amount
|
||||
value: 1
|
||||
- key: tapadn.interstitial_auto_load
|
||||
value: true
|
||||
value: false
|
||||
- key: tapadn.interstitial_prewarm_on_init
|
||||
value: false
|
||||
- key: tapadn.interstitial_max_load_attempts
|
||||
@@ -57,7 +57,7 @@ MonoBehaviour:
|
||||
- key: tapadn.interstitial_show_timeout_ms
|
||||
value: 20000
|
||||
- key: tapadn.splash_auto_load
|
||||
value: true
|
||||
value: false
|
||||
- key: tapadn.splash_prewarm_on_init
|
||||
value: false
|
||||
- key: tapadn.splash_max_load_attempts
|
||||
@@ -66,3 +66,10 @@ MonoBehaviour:
|
||||
value: 500
|
||||
- key: tapadn.splash_show_timeout_ms
|
||||
value: 20000
|
||||
- key: tapadn.smart_preload_enabled
|
||||
value: true
|
||||
- key: tapadn.smart_preload_config_asset_path
|
||||
value: TapadnSmartLoadPolicy_Default
|
||||
- key: tapadn.smart_preload_config_json
|
||||
value: >-
|
||||
{"GlobalDefault":{"AdType":-1,"Scene":"__default__","BaseProbability":0.08,"PreloadThreshold":0.75,"CooldownSeconds":120,"MinSamplesForConfidence":8,"DecayHalfLifeHours":72},"ScenePolicies":[{"AdType":1,"Scene":"splash_debug","BaseProbability":0.25,"PreloadThreshold":0.7,"CooldownSeconds":120,"MinSamplesForConfidence":6,"DecayHalfLifeHours":48},{"AdType":0,"Scene":"reward_debug","BaseProbability":0.6,"PreloadThreshold":0.5,"CooldownSeconds":60,"MinSamplesForConfidence":4,"DecayHalfLifeHours":48},{"AdType":2,"Scene":"interstitial_debug","BaseProbability":0.45,"PreloadThreshold":0.65,"CooldownSeconds":90,"MinSamplesForConfidence":5,"DecayHalfLifeHours":48}]}
|
||||
|
||||
@@ -183,6 +183,8 @@ public sealed class TapadnIAAAdDebugSampleGui : MonoBehaviour
|
||||
GUILayout.Label(
|
||||
$"Channel/SubChannel/Debug: {DisplayValue(options.Channel)}/{DisplayValue(options.SubChannel)}/{options.Debug}",
|
||||
_textStyle);
|
||||
GUILayout.Label($"Smart Preload: enabled={options.SmartPreloadEnabled}, asset={DisplayValue(options.SmartPreloadConfigAssetPath)}", _textStyle);
|
||||
GUILayout.Label($"Smart Policy Snapshot: {TapadnSmartLoadOrchestrator.GetDebugStateDump()}", _textStyle);
|
||||
}
|
||||
|
||||
if (showVerboseState && GUILayout.Button("Refresh Status Snapshot", _buttonStyle, GUILayout.Height(64f)))
|
||||
@@ -191,6 +193,12 @@ public sealed class TapadnIAAAdDebugSampleGui : MonoBehaviour
|
||||
AppendLog("Manual status snapshot refreshed.");
|
||||
}
|
||||
|
||||
if (GUILayout.Button("Reset SmartLoad Learning State", _buttonStyle, GUILayout.Height(64f)))
|
||||
{
|
||||
TapadnSmartLoadOrchestrator.ResetLearningState();
|
||||
AppendLog("TapADN SmartLoad learning state reset.");
|
||||
}
|
||||
|
||||
GUILayout.Space(10f);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user