diff --git a/java/advanced/APIDemo/app/src/main/java/com/google/android/gms/snippets/InterstitialAdPreloaderSnippets.java b/java/advanced/APIDemo/app/src/main/java/com/google/android/gms/snippets/InterstitialAdPreloaderSnippets.java index a409c316..c41ff956 100644 --- a/java/advanced/APIDemo/app/src/main/java/com/google/android/gms/snippets/InterstitialAdPreloaderSnippets.java +++ b/java/advanced/APIDemo/app/src/main/java/com/google/android/gms/snippets/InterstitialAdPreloaderSnippets.java @@ -1,5 +1,5 @@ /* - * Copyright 2025 Google LLC + * Copyright 2026 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -75,9 +75,9 @@ public void onAdFailedToPreload(@NonNull String preloadId, @NonNull AdError adEr private void bufferSize() { // [START set_buffer_size] - // Define a PreloadConfiguration and buffer up to 5 preloaded ads. + // Define a PreloadConfiguration and buffer up to 3 preloaded ads. PreloadConfiguration configuration = - new PreloadConfiguration.Builder(AD_UNIT_ID).setBufferSize(5).build(); + new PreloadConfiguration.Builder(AD_UNIT_ID).setBufferSize(3).build(); // [END set_buffer_size] } diff --git a/kotlin/advanced/APIDemo/app/src/main/java/com/google/android/gms/snippets/InterstitialAdPreloaderSnippets.kt b/kotlin/advanced/APIDemo/app/src/main/java/com/google/android/gms/snippets/InterstitialAdPreloaderSnippets.kt index 8a53d6e1..206fd631 100644 --- a/kotlin/advanced/APIDemo/app/src/main/java/com/google/android/gms/snippets/InterstitialAdPreloaderSnippets.kt +++ b/kotlin/advanced/APIDemo/app/src/main/java/com/google/android/gms/snippets/InterstitialAdPreloaderSnippets.kt @@ -1,5 +1,5 @@ /* - * Copyright 2025 Google LLC + * Copyright 2026 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -66,8 +66,8 @@ private class InterstitialAdPreloaderSnippets { private fun bufferSize() { // [START set_buffer_size] - // Define a PreloadConfiguration and buffer up to 5 preloaded ads. - val configuration = PreloadConfiguration.Builder(AD_UNIT_ID).setBufferSize(5).build() + // Define a PreloadConfiguration and buffer up to 3 preloaded ads. + val configuration = PreloadConfiguration.Builder(AD_UNIT_ID).setBufferSize(3).build() // [END set_buffer_size] }