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 11#if VIRTUESKY_ADS && ADS_ADMOB
22using GoogleMobileAds . Api ;
33#endif
4+ using Sirenix . OdinInspector ;
5+ using UnityEngine ;
46using VirtueSky . Global ;
57
68namespace VirtueSky . Ads
79{
810 public class AdmobAdClient : AdClient
911 {
12+ [ ReadOnly ] [ SerializeField ] [ TextArea ] string appIdTest = "ca-app-pub-3940256099942544~3347511713" ;
13+
1014 public override void Initialize ( )
1115 {
1216#if VIRTUESKY_ADS && ADS_ADMOB
Original file line number Diff line number Diff line change @@ -75,7 +75,12 @@ public AdSize ConvertSize()
7575 {
7676 switch ( size )
7777 {
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;
7984 default : return AdSize . Banner ;
8085 }
8186 }
Original file line number Diff line number Diff line change @@ -313,6 +313,10 @@ public enum BannerPosition
313313 public enum BannerSize
314314 {
315315 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,
317321 }
318322}
You can’t perform that action at this time.
0 commit comments