@@ -47,11 +47,11 @@ public class TNSGA:NSObject {
47
47
48
48
public init ? ( rawValue: String ) {
49
49
switch rawValue {
50
- case GADAdLoaderAdType . customNative . rawValue:
50
+ case AdLoaderAdType . CustomNative . rawValue:
51
51
self = . CustomNative
52
- case GADAdLoaderAdType . gamBanner . rawValue:
52
+ case AdLoaderAdType . GAMBanner . rawValue:
53
53
self = . GAMBanner
54
- case GADAdLoaderAdType . native . rawValue:
54
+ case AdLoaderAdType . Native . rawValue:
55
55
self = . Native
56
56
default :
57
57
return nil
@@ -61,11 +61,11 @@ public class TNSGA:NSObject {
61
61
public var rawValue : RawValue {
62
62
switch self {
63
63
case . CustomNative:
64
- return GADAdLoaderAdType . customNative . rawValue
64
+ return AdLoaderAdType . CustomNative . rawValue
65
65
case . GAMBanner:
66
- return GADAdLoaderAdType . gamBanner . rawValue
66
+ return AdLoaderAdType . GAMBanner . rawValue
67
67
case . Native:
68
- return GADAdLoaderAdType . native . rawValue
68
+ return AdLoaderAdType . Native . rawValue
69
69
}
70
70
}
71
71
}
@@ -74,28 +74,28 @@ public class TNSGA:NSObject {
74
74
return type. rawValue
75
75
}
76
76
77
- public static func createAnchoredAdaptiveBanner( _ width: CGFloat , _ orientation: Orientation ) -> GADAdSize {
77
+ public static func createAnchoredAdaptiveBanner( _ width: CGFloat , _ orientation: Orientation ) -> AdSize {
78
78
switch orientation {
79
79
case . Landscape:
80
- return GADLandscapeAnchoredAdaptiveBannerAdSizeWithWidth ( width)
80
+ return landscapeAnchoredAdaptiveBanner ( width : width)
81
81
case . Portrait:
82
- return GADPortraitAnchoredAdaptiveBannerAdSizeWithWidth ( width)
82
+ return portraitAnchoredAdaptiveBanner ( width : width)
83
83
default :
84
- return GADCurrentOrientationAnchoredAdaptiveBannerAdSizeWithWidth ( width)
84
+ return currentOrientationAnchoredAdaptiveBanner ( width : width)
85
85
}
86
86
}
87
87
88
- public static func createInlineAdaptiveBanner( _ width: CGFloat , _ maxHeight: CGFloat , _ orientation: Orientation ) -> GADAdSize {
88
+ public static func createInlineAdaptiveBanner( _ width: CGFloat , _ maxHeight: CGFloat , _ orientation: Orientation ) -> AdSize {
89
89
if ( maxHeight > 0 ) {
90
- return GADInlineAdaptiveBannerAdSizeWithWidthAndMaxHeight ( width, maxHeight)
90
+ return inlineAdaptiveBanner ( width: width , maxHeight : maxHeight)
91
91
}
92
92
switch orientation {
93
93
case . Landscape:
94
- return GADLandscapeInlineAdaptiveBannerAdSizeWithWidth ( width)
94
+ return landscapeInlineAdaptiveBanner ( width : width)
95
95
case . Portrait:
96
- return GADPortraitInlineAdaptiveBannerAdSizeWithWidth ( width)
96
+ return portraitInlineAdaptiveBanner ( width : width)
97
97
default :
98
- return GADCurrentOrientationInlineAdaptiveBannerAdSizeWithWidth ( width)
98
+ return currentOrientationInlineAdaptiveBanner ( width : width)
99
99
}
100
100
}
101
101
@@ -112,24 +112,24 @@ public class TNSGA:NSObject {
112
112
case Invalid
113
113
}
114
114
115
- public static func createBanner( _ size: NSCGABannersSize ) -> GADAdSize {
115
+ public static func createBanner( _ size: NSCGABannersSize ) -> AdSize {
116
116
switch size {
117
117
case . Banner:
118
- return GADAdSizeBanner
118
+ return AdSizeBanner
119
119
case . FullBanner:
120
- return GADAdSizeFullBanner
120
+ return AdSizeFullBanner
121
121
case . LargeBanner:
122
- return GADAdSizeLargeBanner
122
+ return AdSizeLargeBanner
123
123
case . LeaderBoard:
124
- return GADAdSizeLeaderboard
124
+ return AdSizeLeaderboard
125
125
case . MediumRectangle:
126
- return GADAdSizeMediumRectangle
126
+ return AdSizeMediumRectangle
127
127
case . Fluid:
128
- return GADAdSizeFluid
128
+ return AdSizeFluid
129
129
case . WideSkyScraper:
130
- return GADAdSizeSkyscraper
130
+ return AdSizeSkyscraper
131
131
case . Invalid:
132
- return GADAdSizeInvalid
132
+ return AdSizeInvalid
133
133
}
134
134
}
135
135
}
0 commit comments