Skip to content

Commit 2c8f35b

Browse files
Merge pull request #258 from teads/update-admob
Update admob
2 parents eda9750 + abd91cc commit 2c8f35b

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

TeadsSampleApp/Controllers/InRead/Admob/ScrollView/InReadAdmobScrollViewController.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ class InReadAdmobScrollViewController: TeadsViewController {
8080

8181
private func resizeAd(height: CGFloat) {
8282
slotViewHeightConstraint.constant = height
83-
bannerView.resize(adSizeFor(CGSize(width: slotView.frame.width, height: height)))
83+
bannerView.resize(adSizeFor(cgSize: CGSize(width: slotView.frame.width, height: height)))
8484
}
8585
}
8686

TeadsSampleApp/Controllers/InRead/Admob/TableView/InReadAdmobTableViewController.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ extension InReadAdmobTableViewController: UITableViewDelegate, UITableViewDataSo
111111
cellAd.addSubview(admobAdView)
112112
admobAdView.frame.origin = CGPoint(x: 10, y: 0)
113113
// Be sure to call the DFPBannerView resize method to prevent admob from reloading a new ad experience
114-
admobAdView.resize(adSizeFor(CGSize(width: tableViewAdCellWidth, height: adHeight ?? 250)))
114+
admobAdView.resize(adSizeFor(cgSize: CGSize(width: tableViewAdCellWidth, height: adHeight ?? 250)))
115115
}
116116
return cellAd
117117
default:

TeadsSampleApp/Controllers/Native/AppLovin/TableView/NativeAppLovinTableViewController.swift

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,11 @@ class NativeAppLovinTableViewController: TeadsViewController {
2929
elements.append(nil)
3030
}
3131

32-
ALSdk.shared().mediationProvider = ALMediationProviderMAX
33-
ALSdk.shared().settings.isVerboseLoggingEnabled = true
34-
ALSdk.shared().initializeSdk { [weak self] (_: ALSdkConfiguration) in
35-
self?.loadAd()
36-
}
32+
// ALSdk.shared().mediationProvider = ALMediationProviderMAX
33+
// ALSdk.shared().settings.isVerboseLoggingEnabled = true
34+
// ALSdk.shared().initializeSdk { [weak self] (_: ALSdkConfiguration) in
35+
// self?.loadAd()
36+
// }
3737
}
3838

3939
override func viewDidAppear(_ animated: Bool) {

0 commit comments

Comments
 (0)