CustomEventBannerListener
Stay organized with collections
Save and categorize content based on your preferences.
Public Method Summary
abstract void |
onAdLoaded( View view)
Indicates that a view has been requested and successfully received.
|
Public Methods
public abstract void onAdLoaded (View view)
Indicates that a view has been requested and successfully received. This view may be
displayed after this method has been called.
Once an ad view is requested, the custom event must report either
onAdLoaded
or
CustomEventListener.onAdFailedToLoad(AdError)
. If no response is received
within a time limit, the mediation library may move on to another adapter, resulting in
the custom event's view not being shown.
Parameters
view |
The view to be displayed. |
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."],[[["The `CustomEventBannerListener` interface is deprecated and developers should use `Adapter` and `MediationAdLoadCallback` instead."],["This listener is used by custom events implementing `CustomEventBanner` to manage ad flow and communicate with the Google Mobile Ads SDK."],["`onAdLoaded()` is called when an ad view has been successfully requested and received, signaling that the view can be displayed."],["Custom events must report either `onAdLoaded` or `onAdFailedToLoad` after an ad request to ensure proper ad handling within the mediation library."]]],["`CustomEventBannerListener` is a deprecated interface; `Adapter` and `MediationAdLoadCallback` should be used instead. Custom events should use this listener to send callbacks. Key actions include `onAdLoaded`, which reports when a view is received and ready for display. From `CustomEventListener` it inherits events like `onAdClicked`, `onAdClosed`, `onAdFailedToLoad` (with an `AdError` parameter), `onAdLeftApplication`, and `onAdOpened`. `onAdLoaded` or `onAdFailedToLoad` must be reported.\n"]]