@@ -12,8 +12,8 @@ namespace VirtueSky.Ads
12
12
[ Serializable ]
13
13
public class AdmobBannerAdUnit : AdUnit
14
14
{
15
- public BannerSize size = BannerSize . Adaptive ;
16
- public BannerPosition position = BannerPosition . Bottom ;
15
+ public AdsSize size = AdsSize . Adaptive ;
16
+ public AdsPosition position = AdsPosition . Bottom ;
17
17
public bool useCollapsible ;
18
18
public bool useTestId ;
19
19
#if VIRTUESKY_ADS && VIRTUESKY_ADMOB
@@ -136,12 +136,12 @@ public AdSize ConvertSize()
136
136
{
137
137
switch ( size )
138
138
{
139
- case BannerSize . Adaptive :
139
+ case AdsSize . Adaptive :
140
140
return AdSize . GetCurrentOrientationAnchoredAdaptiveBannerAdSizeWithWidth (
141
141
AdSize . FullWidth ) ;
142
- case BannerSize . MediumRectangle : return AdSize . MediumRectangle ;
143
- case BannerSize . Leaderboard : return AdSize . Leaderboard ;
144
- case BannerSize . IABBanner : return AdSize . IABBanner ;
142
+ case AdsSize . MediumRectangle : return AdSize . MediumRectangle ;
143
+ case AdsSize . Leaderboard : return AdSize . Leaderboard ;
144
+ case AdsSize . IABBanner : return AdSize . IABBanner ;
145
145
//case BannerSize.SmartBanner: return AdSize.SmartBanner;
146
146
default : return AdSize . Banner ;
147
147
}
@@ -157,23 +157,23 @@ public AdPosition ConvertPosition()
157
157
{
158
158
switch ( position )
159
159
{
160
- case BannerPosition . Top : return AdPosition . Top ;
161
- case BannerPosition . Bottom : return AdPosition . Bottom ;
162
- case BannerPosition . TopLeft : return AdPosition . TopLeft ;
163
- case BannerPosition . TopRight : return AdPosition . TopRight ;
164
- case BannerPosition . BottomLeft : return AdPosition . BottomLeft ;
165
- case BannerPosition . BottomRight : return AdPosition . BottomRight ;
160
+ case AdsPosition . Top : return AdPosition . Top ;
161
+ case AdsPosition . Bottom : return AdPosition . Bottom ;
162
+ case AdsPosition . TopLeft : return AdPosition . TopLeft ;
163
+ case AdsPosition . TopRight : return AdPosition . TopRight ;
164
+ case AdsPosition . BottomLeft : return AdPosition . BottomLeft ;
165
+ case AdsPosition . BottomRight : return AdPosition . BottomRight ;
166
166
default : return AdPosition . Bottom ;
167
167
}
168
168
}
169
169
170
170
public string ConvertPlacementCollapsible ( )
171
171
{
172
- if ( position == BannerPosition . Top )
172
+ if ( position == AdsPosition . Top )
173
173
{
174
174
return "top" ;
175
175
}
176
- else if ( position == BannerPosition . Bottom )
176
+ else if ( position == AdsPosition . Bottom )
177
177
{
178
178
return "bottom" ;
179
179
}
0 commit comments