Skip to content

Commit c7bd445

Browse files
Nicholas Ventimigliacopybara-github
authored andcommitted
Updated Banner to use the Large Anchored Adaptive AdSize.
PiperOrigin-RevId: 856337663
1 parent f5d131e commit c7bd445

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Objective-C/admob/BannerExample/BannerExample/ViewController.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ - (void)startGoogleMobileAdsSDK {
129129
- (void)loadBannerAd {
130130
// [START ad_size]
131131
// Request an anchored adaptive banner with a width of 375.
132-
self.bannerView.adSize = GADCurrentOrientationAnchoredAdaptiveBannerAdSizeWithWidth(375);
132+
self.bannerView.adSize = GADLargeAnchoredAdaptiveBannerAdSizeWithWidth(375);
133133
// [END ad_size]
134134

135135
// [START load_ad]

Swift/admob/BannerExample/BannerExample/ViewController.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ class ViewController: UIViewController, BannerViewDelegate {
106106
func loadBannerAd() {
107107
// [START ad_size]
108108
// Request an anchored adaptive banner with a width of 375.
109-
bannerView.adSize = currentOrientationAnchoredAdaptiveBanner(width: 375)
109+
bannerView.adSize = largeAnchoredAdaptiveBanner(width: 375)
110110
// [END ad_size]
111111

112112
// [START load_ad]

0 commit comments

Comments
 (0)