Skip to content

Commit 6489aec

Browse files
Merge pull request #259 from teads/update-admob
Update admob
2 parents 2c8f35b + 048ad6d commit 6489aec

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class InReadAdmobTableViewController: TeadsViewController {
2828
super.viewDidLoad()
2929

3030
// Be sure to use DFPBannerView instead of GADBannerView
31-
admobAdView = AdManagerBannerView(adSize: GADAdSizeMediumRectangle)
31+
admobAdView = AdManagerBannerView(adSize: AdSizeMediumRectangle)
3232

3333
// 2. Attach Delegate (will include Teads events)
3434
// FIXME: This id below should be replaced by your own AdMob application and ad block/unit ids
@@ -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: 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/InRead/Admob/WebView/InReadAdmobWebViewController.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ class InReadAdmobWebViewController: TeadsViewController {
3131

3232
webView.loadHTMLString(contentStringWithIntegrationType, baseURL: Bundle.main.bundleURL)
3333

34-
bannerView = AdManagerBannerView(adSize: GADAdSizeMediumRectangle)
34+
bannerView = AdManagerBannerView(adSize: AdSizeMediumRectangle)
3535
// FIXME: This id below should be replaced by your own AdMob application and ad block/unit ids
3636
bannerView.adUnitID = pid
3737
bannerView.rootViewController = self

0 commit comments

Comments
 (0)