@@ -47,11 +47,11 @@ public class TNSGA:NSObject {
4747
4848 public init ? ( rawValue: String ) {
4949 switch rawValue {
50- case GADAdLoaderAdType . customNative . rawValue:
50+ case AdLoaderAdType . CustomNative . rawValue:
5151 self = . CustomNative
52- case GADAdLoaderAdType . gamBanner . rawValue:
52+ case AdLoaderAdType . GAMBanner . rawValue:
5353 self = . GAMBanner
54- case GADAdLoaderAdType . native . rawValue:
54+ case AdLoaderAdType . Native . rawValue:
5555 self = . Native
5656 default :
5757 return nil
@@ -61,11 +61,11 @@ public class TNSGA:NSObject {
6161 public var rawValue : RawValue {
6262 switch self {
6363 case . CustomNative:
64- return GADAdLoaderAdType . customNative . rawValue
64+ return AdLoaderAdType . CustomNative . rawValue
6565 case . GAMBanner:
66- return GADAdLoaderAdType . gamBanner . rawValue
66+ return AdLoaderAdType . GAMBanner . rawValue
6767 case . Native:
68- return GADAdLoaderAdType . native . rawValue
68+ return AdLoaderAdType . Native . rawValue
6969 }
7070 }
7171 }
@@ -74,28 +74,28 @@ public class TNSGA:NSObject {
7474 return type. rawValue
7575 }
7676
77- public static func createAnchoredAdaptiveBanner( _ width: CGFloat , _ orientation: Orientation ) -> GADAdSize {
77+ public static func createAnchoredAdaptiveBanner( _ width: CGFloat , _ orientation: Orientation ) -> AdSize {
7878 switch orientation {
7979 case . Landscape:
80- return GADLandscapeAnchoredAdaptiveBannerAdSizeWithWidth ( width)
80+ return landscapeAnchoredAdaptiveBanner ( width : width)
8181 case . Portrait:
82- return GADPortraitAnchoredAdaptiveBannerAdSizeWithWidth ( width)
82+ return portraitAnchoredAdaptiveBanner ( width : width)
8383 default :
84- return GADCurrentOrientationAnchoredAdaptiveBannerAdSizeWithWidth ( width)
84+ return currentOrientationAnchoredAdaptiveBanner ( width : width)
8585 }
8686 }
8787
88- public static func createInlineAdaptiveBanner( _ width: CGFloat , _ maxHeight: CGFloat , _ orientation: Orientation ) -> GADAdSize {
88+ public static func createInlineAdaptiveBanner( _ width: CGFloat , _ maxHeight: CGFloat , _ orientation: Orientation ) -> AdSize {
8989 if ( maxHeight > 0 ) {
90- return GADInlineAdaptiveBannerAdSizeWithWidthAndMaxHeight ( width, maxHeight)
90+ return inlineAdaptiveBanner ( width: width , maxHeight : maxHeight)
9191 }
9292 switch orientation {
9393 case . Landscape:
94- return GADLandscapeInlineAdaptiveBannerAdSizeWithWidth ( width)
94+ return landscapeInlineAdaptiveBanner ( width : width)
9595 case . Portrait:
96- return GADPortraitInlineAdaptiveBannerAdSizeWithWidth ( width)
96+ return portraitInlineAdaptiveBanner ( width : width)
9797 default :
98- return GADCurrentOrientationInlineAdaptiveBannerAdSizeWithWidth ( width)
98+ return currentOrientationInlineAdaptiveBanner ( width : width)
9999 }
100100 }
101101
@@ -112,24 +112,24 @@ public class TNSGA:NSObject {
112112 case Invalid
113113 }
114114
115- public static func createBanner( _ size: NSCGABannersSize ) -> GADAdSize {
115+ public static func createBanner( _ size: NSCGABannersSize ) -> AdSize {
116116 switch size {
117117 case . Banner:
118- return GADAdSizeBanner
118+ return AdSizeBanner
119119 case . FullBanner:
120- return GADAdSizeFullBanner
120+ return AdSizeFullBanner
121121 case . LargeBanner:
122- return GADAdSizeLargeBanner
122+ return AdSizeLargeBanner
123123 case . LeaderBoard:
124- return GADAdSizeLeaderboard
124+ return AdSizeLeaderboard
125125 case . MediumRectangle:
126- return GADAdSizeMediumRectangle
126+ return AdSizeMediumRectangle
127127 case . Fluid:
128- return GADAdSizeFluid
128+ return AdSizeFluid
129129 case . WideSkyScraper:
130- return GADAdSizeSkyscraper
130+ return AdSizeSkyscraper
131131 case . Invalid:
132- return GADAdSizeInvalid
132+ return AdSizeInvalid
133133 }
134134 }
135135}
0 commit comments