PreloadCallback
Stay organized with collections
Save and categorize content based on your preferences.
Interface definition for a callback to be invoked when the ad availability changes for a
preload configuration.
Public Method Summary
abstract void |
|
abstract void |
|
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-10-31 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-10-31 UTC."],[[["`PreloadCallback` is an interface used to get notified about ad availability changes for preloaded ads."],["It provides two methods: `onAdsAvailable`, triggered when ads are ready to be used, and `onAdsExhausted`, triggered when the preloaded ad pool is depleted."],["Both methods receive a `PreloadConfiguration` object providing details about the preload request."]]],["The `PreloadCallback` interface defines callbacks for ad availability changes related to a `PreloadConfiguration`. It features two key methods: `onAdsAvailable`, invoked when ads become available for a given `PreloadConfiguration`, and `onAdsExhausted`, triggered when ads are exhausted for a specified `PreloadConfiguration`. These callbacks allow for reactions to ad availability states, providing updates regarding whether there is or not any ads to display.\n"]]