diff --git a/java/admob/BannerExample/app/src/main/java/com/google/android/gms/example/bannerexample/MyActivity.java b/java/admob/BannerExample/app/src/main/java/com/google/android/gms/example/bannerexample/MyActivity.java index 415d7fc8..117a48bd 100644 --- a/java/admob/BannerExample/app/src/main/java/com/google/android/gms/example/bannerexample/MyActivity.java +++ b/java/admob/BannerExample/app/src/main/java/com/google/android/gms/example/bannerexample/MyActivity.java @@ -178,8 +178,8 @@ private void loadBanner() { adView = new AdView(this); adView.setAdUnitId(AD_UNIT_ID); // [START set_ad_size] - // Request an anchored adaptive banner with a width of 360. - adView.setAdSize(AdSize.getCurrentOrientationAnchoredAdaptiveBannerAdSize(this, 360)); + // Request a large anchored adaptive banner with a width of 360. + adView.setAdSize(AdSize.getLargeAnchoredAdaptiveBannerAdSize(this, 360)); // [END set_ad_size] // Replace ad container with new ad view. diff --git a/kotlin/admanager/BannerExample/app/src/main/kotlin/com/google/android/gms/example/bannerexample/MyActivity.kt b/kotlin/admanager/BannerExample/app/src/main/kotlin/com/google/android/gms/example/bannerexample/MyActivity.kt index 0e054b96..85f596a5 100644 --- a/kotlin/admanager/BannerExample/app/src/main/kotlin/com/google/android/gms/example/bannerexample/MyActivity.kt +++ b/kotlin/admanager/BannerExample/app/src/main/kotlin/com/google/android/gms/example/bannerexample/MyActivity.kt @@ -146,8 +146,8 @@ class MyActivity : AppCompatActivity() { val adView = AdManagerAdView(this) adView.adUnitId = AD_UNIT_ID // [START set_ad_size] - // Request an anchored adaptive banner with a width of 360. - adView.setAdSize(AdSize.getCurrentOrientationAnchoredAdaptiveBannerAdSize(this, 360)) + // Request a large anchored adaptive banner with a width of 360. + adView.setAdSize(AdSize.getLargeAnchoredAdaptiveBannerAdSize(this, 360)) // [END set_ad_size] this.adView = adView diff --git a/kotlin/admob/BannerExample/app/src/main/java/com/google/android/gms/example/bannerexample/MainActivity.kt b/kotlin/admob/BannerExample/app/src/main/java/com/google/android/gms/example/bannerexample/MainActivity.kt index f37f93c9..18c245bd 100644 --- a/kotlin/admob/BannerExample/app/src/main/java/com/google/android/gms/example/bannerexample/MainActivity.kt +++ b/kotlin/admob/BannerExample/app/src/main/java/com/google/android/gms/example/bannerexample/MainActivity.kt @@ -148,8 +148,8 @@ class MainActivity : AppCompatActivity() { val adView = AdView(this) adView.adUnitId = AD_UNIT_ID // [START set_ad_size] - // Request an anchored adaptive banner with a width of 360. - adView.setAdSize(AdSize.getCurrentOrientationAnchoredAdaptiveBannerAdSize(this, 360)) + // Request a large anchored adaptive banner with a width of 360. + adView.setAdSize(AdSize.getLargeAnchoredAdaptiveBannerAdSize(this, 360)) // [END set_ad_size] this.adView = adView diff --git a/kotlin/advanced/JetpackComposeDemo/app/src/main/java/com/google/android/gms/example/jetpackcomposedemo/formats/AdManagerBannerScreen.kt b/kotlin/advanced/JetpackComposeDemo/app/src/main/java/com/google/android/gms/example/jetpackcomposedemo/formats/AdManagerBannerScreen.kt index 1bade00d..a4ad8c1d 100644 --- a/kotlin/advanced/JetpackComposeDemo/app/src/main/java/com/google/android/gms/example/jetpackcomposedemo/formats/AdManagerBannerScreen.kt +++ b/kotlin/advanced/JetpackComposeDemo/app/src/main/java/com/google/android/gms/example/jetpackcomposedemo/formats/AdManagerBannerScreen.kt @@ -52,8 +52,8 @@ fun AdManagerBannerScreen(modifier: Modifier = Modifier) { adView.adUnitId = ADMANAGER_ADAPTIVE_BANNER_AD_UNIT_ID // [START set_ad_size] - // Set the adaptive banner ad size with a given width. - val adSize = AdSize.getCurrentOrientationAnchoredAdaptiveBannerAdSize(LocalContext.current, 360) + // Set a large anchored adaptive banner ad size with a given width. + val adSize = AdSize.getLargeAnchoredAdaptiveBannerAdSize(LocalContext.current, 360) adView.setAdSize(adSize) // [END set_ad_size] diff --git a/kotlin/advanced/JetpackComposeDemo/app/src/main/java/com/google/android/gms/example/jetpackcomposedemo/formats/BannerScreen.kt b/kotlin/advanced/JetpackComposeDemo/app/src/main/java/com/google/android/gms/example/jetpackcomposedemo/formats/BannerScreen.kt index 6e02d4b2..572f7d85 100644 --- a/kotlin/advanced/JetpackComposeDemo/app/src/main/java/com/google/android/gms/example/jetpackcomposedemo/formats/BannerScreen.kt +++ b/kotlin/advanced/JetpackComposeDemo/app/src/main/java/com/google/android/gms/example/jetpackcomposedemo/formats/BannerScreen.kt @@ -52,8 +52,8 @@ fun BannerScreen(modifier: Modifier = Modifier) { adView.adUnitId = BANNER_AD_UNIT_ID // [START set_ad_size] - // Set the adaptive banner ad size with a given width. - val adSize = AdSize.getCurrentOrientationAnchoredAdaptiveBannerAdSize(LocalContext.current, 360) + // Set a large anchored adaptive banner ad size with a given width. + val adSize = AdSize.getLargeAnchoredAdaptiveBannerAdSize(LocalContext.current, 360) adView.setAdSize(adSize) // [END set_ad_size]