Skip to content

Commit 1e7019d

Browse files
malandr2copybara-github
authored andcommitted
Update samples to use large ad size
PiperOrigin-RevId: 866176820
1 parent 40d7693 commit 1e7019d

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Objective-C/advanced/APIDemo/APIDemo/CollapsibleBannerViewController.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ - (void)viewDidAppear:(BOOL)animated {
5454
// view has been laid out.
5555
CGRect frame = UIEdgeInsetsInsetRect(self.view.frame, self.view.safeAreaInsets);
5656
CGFloat viewWidth = frame.size.width;
57-
GADAdSize adSize = GADCurrentOrientationAnchoredAdaptiveBannerAdSizeWithWidth(viewWidth);
57+
GADAdSize adSize = GADLargeAnchoredAdaptiveBannerAdSizeWithWidth(viewWidth);
5858
_bannerView.adSize = adSize;
5959

6060
[self loadAd];

Swift/advanced/APIDemo/APIDemo/CollapsibleBannerViewController.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ class CollapsibleBannerViewController: UIViewController, BannerViewDelegate {
4848
return view.frame.inset(by: view.safeAreaInsets)
4949
}()
5050
let viewWidth = frame.size.width
51-
bannerView.adSize = currentOrientationAnchoredAdaptiveBanner(width: viewWidth)
51+
bannerView.adSize = largeAnchoredAdaptiveBanner(width: viewWidth)
5252

5353
loadAd()
5454
}

Swift/advanced/SwiftUIDemo/SwiftUIDemo/Banner/BannerContentView.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ struct BannerContentView: View {
88
var body: some View {
99
Spacer()
1010
// Request an anchored adaptive banner with a width of 375.
11-
let adSize = currentOrientationAnchoredAdaptiveBanner(width: 375)
11+
let adSize = largeAnchoredAdaptiveBanner(width: 375)
1212
BannerViewContainer(adSize)
1313
.frame(width: adSize.size.width, height: adSize.size.height)
1414
// [START_EXCLUDE silent]

0 commit comments

Comments
 (0)