You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: kotlin/admanager/BannerExample/app/src/main/kotlin/com/google/android/gms/example/bannerexample/MyActivity.kt
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -146,8 +146,8 @@ class MyActivity : AppCompatActivity() {
146
146
val adView =AdManagerAdView(this)
147
147
adView.adUnitId =AD_UNIT_ID
148
148
// [START set_ad_size]
149
-
// Request an anchored adaptive banner with a width of 360.
Copy file name to clipboardExpand all lines: kotlin/advanced/JetpackComposeDemo/app/src/main/java/com/google/android/gms/example/jetpackcomposedemo/formats/AdManagerBannerScreen.kt
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -52,8 +52,8 @@ fun AdManagerBannerScreen(modifier: Modifier = Modifier) {
Copy file name to clipboardExpand all lines: kotlin/advanced/JetpackComposeDemo/app/src/main/java/com/google/android/gms/example/jetpackcomposedemo/formats/BannerScreen.kt
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -52,8 +52,8 @@ fun BannerScreen(modifier: Modifier = Modifier) {
52
52
adView.adUnitId =BANNER_AD_UNIT_ID
53
53
54
54
// [START set_ad_size]
55
-
// Set the adaptive banner ad size with a given width.
56
-
val adSize =AdSize.getCurrentOrientationAnchoredAdaptiveBannerAdSize(LocalContext.current, 360)
55
+
// Set a large anchored adaptive banner ad size with a given width.
56
+
val adSize =AdSize.getLargeAnchoredAdaptiveBannerAdSize(LocalContext.current, 360)
0 commit comments