File tree 4 files changed +10
-6
lines changed
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
14
14
private SerializedProperty _adNetwork ;
15
15
16
16
private SerializedProperty _sdkKey ;
17
- private SerializedProperty _applovinEnableAgeRestrictedUser ;
18
17
private SerializedProperty _maxBannerAdUnit ;
19
18
private SerializedProperty _maxInterstitialAdUnit ;
20
19
private SerializedProperty _maxRewardAdUnit ;
@@ -47,7 +46,6 @@ void Initialize()
47
46
_adLoadingInterval = serializedObject . FindProperty ( "adLoadingInterval" ) ;
48
47
_adNetwork = serializedObject . FindProperty ( "adNetwork" ) ;
49
48
_sdkKey = serializedObject . FindProperty ( "sdkKey" ) ;
50
- _applovinEnableAgeRestrictedUser = serializedObject . FindProperty ( "applovinEnableAgeRestrictedUser" ) ;
51
49
_maxBannerAdUnit = serializedObject . FindProperty ( "maxBannerAdUnit" ) ;
52
50
_maxInterstitialAdUnit = serializedObject . FindProperty ( "maxInterstitialAdUnit" ) ;
53
51
_maxRewardAdUnit = serializedObject . FindProperty ( "maxRewardAdUnit" ) ;
@@ -113,7 +111,6 @@ void DrawMax()
113
111
GUILayout . Space ( 5 ) ;
114
112
EditorGUILayout . PropertyField ( _sdkKey ) ;
115
113
GUILayout . Space ( 5 ) ;
116
- EditorGUILayout . PropertyField ( _applovinEnableAgeRestrictedUser ) ;
117
114
EditorGUILayout . PropertyField ( _maxBannerAdUnit ) ;
118
115
EditorGUILayout . PropertyField ( _maxInterstitialAdUnit ) ;
119
116
EditorGUILayout . PropertyField ( _maxRewardAdUnit ) ;
Original file line number Diff line number Diff line change @@ -59,6 +59,16 @@ public override void Load()
59
59
#endif
60
60
}
61
61
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
+
62
72
void OnWaitAppOpenClosed ( )
63
73
{
64
74
if ( _previousBannerShowStatus )
Original file line number Diff line number Diff line change @@ -31,15 +31,13 @@ public static AdSettings Instance
31
31
#region Max
32
32
33
33
[ TextArea , SerializeField ] private string sdkKey ;
34
- [ SerializeField ] private bool applovinEnableAgeRestrictedUser ;
35
34
[ SerializeField ] private MaxBannerAdUnit maxBannerAdUnit ;
36
35
[ SerializeField ] private MaxInterstitialAdUnit maxInterstitialAdUnit ;
37
36
[ SerializeField ] private MaxRewardAdUnit maxRewardAdUnit ;
38
37
[ SerializeField ] private MaxRewardedInterstitialAdUnit maxRewardedInterstitialAdUnit ;
39
38
[ SerializeField ] private MaxAppOpenAdUnit maxAppOpenAdUnit ;
40
39
41
40
public string SdkKey => Instance . sdkKey ;
42
- public bool ApplovinEnableAgeRestrictedUser => Instance . applovinEnableAgeRestrictedUser ;
43
41
public MaxBannerAdUnit MaxBannerAdUnit => Instance . maxBannerAdUnit ;
44
42
public MaxInterstitialAdUnit MaxInterstitialAdUnit => Instance . maxInterstitialAdUnit ;
45
43
public MaxRewardAdUnit MaxRewardAdUnit => Instance . maxRewardAdUnit ;
Original file line number Diff line number Diff line change @@ -9,7 +9,6 @@ public override void Initialize()
9
9
#if VIRTUESKY_ADS && VIRTUESKY_APPLOVIN
10
10
MaxSdk . SetSdkKey ( adSettings . SdkKey ) ;
11
11
MaxSdk . InitializeSdk ( ) ;
12
- MaxSdk . SetIsAgeRestrictedUser ( adSettings . ApplovinEnableAgeRestrictedUser ) ;
13
12
adSettings . MaxBannerAdUnit . Init ( ) ;
14
13
adSettings . MaxInterstitialAdUnit . Init ( ) ;
15
14
adSettings . MaxRewardAdUnit . Init ( ) ;
You can’t perform that action at this time.
0 commit comments