MobileAdsManager class
Used to interact with the MobileAds SDK, initialize and retrieve managed versions of of App Open, Banner, Interstitial and Rewarded ads, as well as dispose them.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- initializationComplete ↔ bool
-
Public flag that can be checked against to determine whether the initializeSDK
method has (fully) successfully completed or not
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
getAllManagedBannerAds(
) → List< ManagedBannerAd> - Used to retrieve every initialized instance of ManagedBannerAd declared using MobileAdsManager
-
getAllManagedInterstitialAdQueues(
) → List< ManagedInterstitialAdQueue> - Used to retrieve every initialized instance of ManagedInterstitialAdQueue declared using MobileAdsManager
-
getAllManagedRewardedAdQueues(
) → List< ManagedRewardedAdQueue> - Used to retrieve every initialized instance of ManagedRewardedAdQueue declared using MobileAdsManager
-
getManagedAppOpenAd(
) → ManagedAppOpenAd? - Used to retrieve the ManagedAppOpenAd, which may or may not be null, depending on whether it was initialized, or whether it was initialized, showed, and then disposed. A method is used instead of a getter for API consistency's sake
-
getManagedBannerAd(
{required String adUnitId}) → ManagedBannerAd? - Used to retrieve the particular instance of ManagedBannerAd associated with a particular Ad Unit ID
-
getManagedInterstitialAdQueue(
{required String adUnitId}) → ManagedInterstitialAdQueue? - Used to retrieve the particular instance of ManagedInterstitialAdQueue associated with a particular Ad Unit ID
-
getManagedRewardedAdQueue(
{required String adUnitId}) → ManagedRewardedAdQueue? - Used to retrieve the particular instance of ManagedRewardedAdQueue associated with a particular Ad Unit ID
-
initializeBannerAds(
{required BannerAdInitializer bannerAdInitializer}) → Future< ManagedBannerAd> -
initializeInterstitialAds(
{required InterstitialAdInitializer interstitialAdInitializer}) → Future< ManagedInterstitialAdQueue> -
Used internally and publicly to initialize a fully managed queue of
InterstitialAd
s -
initializeRewardedAds(
{required RewardedAdInitializer rewardedAdInitializer}) → Future< ManagedRewardedAdQueue> -
Used internally and publicly to initialize a fully managed queue of
RewardedAd
s -
initializeSDK(
{LoadingStrategy loadingStrategy = LoadingStrategy.balancedLoading, AppOpenAdInitializer? appOpenAd, List< InterstitialAdInitializer> ? interstitialAds, List<RewardedAdInitializer> ? rewardedAds, List<BannerAdInitializer> ? bannerAds, void onSDKInitializationError(Object? error, StackTrace stackTrace)?, void onAdsInitializationError(Object? error, StackTrace stackTrace)?}) → Future<void> - Initializes the AdMob SDK, along with fully managed queues for all ads provided
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- instance → MobileAdsManager
-
Getter for static instance
no setter