Skip to content

Commit 7a8c3fa

Browse files
Nicholas Ventimigliacopybara-github
authored andcommitted
Updated preloading code snippets.
PiperOrigin-RevId: 875299734
1 parent cb817bd commit 7a8c3fa

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

java/advanced/APIDemo/app/src/main/java/com/google/android/gms/snippets/InterstitialAdPreloaderSnippets.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2025 Google LLC
2+
* Copyright 2026 Google LLC
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* 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
7575

7676
private void bufferSize() {
7777
// [START set_buffer_size]
78-
// Define a PreloadConfiguration and buffer up to 5 preloaded ads.
78+
// Define a PreloadConfiguration and buffer up to 3 preloaded ads.
7979
PreloadConfiguration configuration =
80-
new PreloadConfiguration.Builder(AD_UNIT_ID).setBufferSize(5).build();
80+
new PreloadConfiguration.Builder(AD_UNIT_ID).setBufferSize(3).build();
8181
// [END set_buffer_size]
8282
}
8383

kotlin/advanced/APIDemo/app/src/main/java/com/google/android/gms/snippets/InterstitialAdPreloaderSnippets.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2025 Google LLC
2+
* Copyright 2026 Google LLC
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -66,8 +66,8 @@ private class InterstitialAdPreloaderSnippets {
6666

6767
private fun bufferSize() {
6868
// [START set_buffer_size]
69-
// Define a PreloadConfiguration and buffer up to 5 preloaded ads.
70-
val configuration = PreloadConfiguration.Builder(AD_UNIT_ID).setBufferSize(5).build()
69+
// Define a PreloadConfiguration and buffer up to 3 preloaded ads.
70+
val configuration = PreloadConfiguration.Builder(AD_UNIT_ID).setBufferSize(3).build()
7171
// [END set_buffer_size]
7272
}
7373

0 commit comments

Comments
 (0)