File tree Expand file tree Collapse file tree 3 files changed +15
-2
lines changed Expand file tree Collapse file tree 3 files changed +15
-2
lines changed Original file line number Diff line number Diff line change 1
1
#if VIRTUESKY_ADS && ADS_ADMOB
2
2
using GoogleMobileAds . Api ;
3
3
#endif
4
+ using Sirenix . OdinInspector ;
5
+ using UnityEngine ;
4
6
using VirtueSky . Global ;
5
7
6
8
namespace VirtueSky . Ads
7
9
{
8
10
public class AdmobAdClient : AdClient
9
11
{
12
+ [ ReadOnly ] [ SerializeField ] [ TextArea ] string appIdTest = "ca-app-pub-3940256099942544~3347511713" ;
13
+
10
14
public override void Initialize ( )
11
15
{
12
16
#if VIRTUESKY_ADS && ADS_ADMOB
Original file line number Diff line number Diff line change @@ -75,7 +75,12 @@ public AdSize ConvertSize()
75
75
{
76
76
switch ( size )
77
77
{
78
- case BannerSize . Adaptive : return AdSize . GetCurrentOrientationAnchoredAdaptiveBannerAdSizeWithWidth ( AdSize . FullWidth ) ;
78
+ case BannerSize . Adaptive :
79
+ return AdSize . GetCurrentOrientationAnchoredAdaptiveBannerAdSizeWithWidth ( AdSize . FullWidth ) ;
80
+ case BannerSize . MediumRectangle : return AdSize . MediumRectangle ;
81
+ case BannerSize . Leaderboard : return AdSize . Leaderboard ;
82
+ case BannerSize . IABBanner : return AdSize . IABBanner ;
83
+ //case BannerSize.SmartBanner: return AdSize.SmartBanner;
79
84
default : return AdSize . Banner ;
80
85
}
81
86
}
Original file line number Diff line number Diff line change @@ -313,6 +313,10 @@ public enum BannerPosition
313
313
public enum BannerSize
314
314
{
315
315
Banner = 0 , // 320x50
316
- Adaptive = 5 // full width
316
+ Adaptive = 5 , // full width
317
+ MediumRectangle = 1 , // 300x250
318
+ IABBanner = 2 , // 468x60
319
+ Leaderboard = 3 , // 728x90
320
+ // SmartBanner = 4,
317
321
}
318
322
}
You can’t perform that action at this time.
0 commit comments