Skip to content

Commit eab6f6b

Browse files
Nicholas Ventimigliacopybara-github
authored andcommitted
Updated comments within the code sample.
PiperOrigin-RevId: 862911137
1 parent 8eb9cdc commit eab6f6b

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

java/NextGenExample/app/src/main/java/com/example/snippets/InterstitialAdSnippets.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ public void onAdFailedToPreload(String preloadId, LoadAdError adError) {
6868
@Override
6969
public void onAdsExhausted(String preloadId) {
7070
Log.i(TAG, "Interstitial preload ad " + preloadId + " is not available");
71+
// [Important] Don't call ad preloader start() or pollAd() from onAdsExhausted.
7172
}
7273

7374
@Override

kotlin/NextGenExample/app/src/main/java/com/example/snippets/InterstitialAdSnippets.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ private class InterstitialAdSnippets {
6262

6363
override fun onAdsExhausted(preloadId: String) {
6464
Log.i(TAG, "Interstitial preload ad $preloadId is not available")
65+
// [Important] Don't call ad preloader start() or pollAd() from onAdsExhausted.
6566
}
6667

6768
override fun onAdPreloaded(preloadId: String, responseInfo: ResponseInfo) {

0 commit comments

Comments
 (0)