File tree Expand file tree Collapse file tree 4 files changed +10
-6
lines changed Expand file tree Collapse file tree 4 files changed +10
-6
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,6 @@ public class AdSettingsEditor : Editor
1414 private SerializedProperty _adNetwork ;
1515
1616 private SerializedProperty _sdkKey ;
17- private SerializedProperty _applovinEnableAgeRestrictedUser ;
1817 private SerializedProperty _maxBannerAdUnit ;
1918 private SerializedProperty _maxInterstitialAdUnit ;
2019 private SerializedProperty _maxRewardAdUnit ;
@@ -47,7 +46,6 @@ void Initialize()
4746 _adLoadingInterval = serializedObject . FindProperty ( "adLoadingInterval" ) ;
4847 _adNetwork = serializedObject . FindProperty ( "adNetwork" ) ;
4948 _sdkKey = serializedObject . FindProperty ( "sdkKey" ) ;
50- _applovinEnableAgeRestrictedUser = serializedObject . FindProperty ( "applovinEnableAgeRestrictedUser" ) ;
5149 _maxBannerAdUnit = serializedObject . FindProperty ( "maxBannerAdUnit" ) ;
5250 _maxInterstitialAdUnit = serializedObject . FindProperty ( "maxInterstitialAdUnit" ) ;
5351 _maxRewardAdUnit = serializedObject . FindProperty ( "maxRewardAdUnit" ) ;
@@ -113,7 +111,6 @@ void DrawMax()
113111 GUILayout . Space ( 5 ) ;
114112 EditorGUILayout . PropertyField ( _sdkKey ) ;
115113 GUILayout . Space ( 5 ) ;
116- EditorGUILayout . PropertyField ( _applovinEnableAgeRestrictedUser ) ;
117114 EditorGUILayout . PropertyField ( _maxBannerAdUnit ) ;
118115 EditorGUILayout . PropertyField ( _maxInterstitialAdUnit ) ;
119116 EditorGUILayout . PropertyField ( _maxRewardAdUnit ) ;
Original file line number Diff line number Diff line change @@ -59,6 +59,16 @@ public override void Load()
5959#endif
6060 }
6161
62+ public bool IsCollapsible ( )
63+ {
64+ #if VIRTUESKY_ADS && VIRTUESKY_ADMOB
65+ if ( _bannerView == null ) return false ;
66+ return _bannerView . IsCollapsible ( ) ;
67+ #else
68+ return false ;
69+ #endif
70+ }
71+
6272 void OnWaitAppOpenClosed ( )
6373 {
6474 if ( _previousBannerShowStatus )
Original file line number Diff line number Diff line change @@ -31,15 +31,13 @@ public static AdSettings Instance
3131 #region Max
3232
3333 [ TextArea , SerializeField ] private string sdkKey ;
34- [ SerializeField ] private bool applovinEnableAgeRestrictedUser ;
3534 [ SerializeField ] private MaxBannerAdUnit maxBannerAdUnit ;
3635 [ SerializeField ] private MaxInterstitialAdUnit maxInterstitialAdUnit ;
3736 [ SerializeField ] private MaxRewardAdUnit maxRewardAdUnit ;
3837 [ SerializeField ] private MaxRewardedInterstitialAdUnit maxRewardedInterstitialAdUnit ;
3938 [ SerializeField ] private MaxAppOpenAdUnit maxAppOpenAdUnit ;
4039
4140 public string SdkKey => Instance . sdkKey ;
42- public bool ApplovinEnableAgeRestrictedUser => Instance . applovinEnableAgeRestrictedUser ;
4341 public MaxBannerAdUnit MaxBannerAdUnit => Instance . maxBannerAdUnit ;
4442 public MaxInterstitialAdUnit MaxInterstitialAdUnit => Instance . maxInterstitialAdUnit ;
4543 public MaxRewardAdUnit MaxRewardAdUnit => Instance . maxRewardAdUnit ;
Original file line number Diff line number Diff line change @@ -9,7 +9,6 @@ public override void Initialize()
99#if VIRTUESKY_ADS && VIRTUESKY_APPLOVIN
1010 MaxSdk . SetSdkKey ( adSettings . SdkKey ) ;
1111 MaxSdk . InitializeSdk ( ) ;
12- MaxSdk . SetIsAgeRestrictedUser ( adSettings . ApplovinEnableAgeRestrictedUser ) ;
1312 adSettings . MaxBannerAdUnit . Init ( ) ;
1413 adSettings . MaxInterstitialAdUnit . Init ( ) ;
1514 adSettings . MaxRewardAdUnit . Init ( ) ;
You can’t perform that action at this time.
0 commit comments