google_applovin_unity_ads library

Classes

The base class for all ads.
AdapterResponseInfo
Response information for an individual ad network in an ad response.
AdapterStatus
An immutable snapshot of a mediation adapter's initialization status.
AdError
Error information about why an ad operation failed.
AdManagerAdRequest
Targeting info per the Ad Manager API.
AdManagerBannerAd
A banner ad displayed with Google Ad Manager.
AdManagerBannerAdListener
A listener for receiving notifications for the lifecycle of an AdManagerBannerAd.
AdManagerInterstitialAd
A full-screen interstitial ad for use with Ad Manager.
AdManagerInterstitialAdLoadCallback
This class holds callbacks for loading an AdManagerInterstitialAd.
AdRequest
Targeting info per the AdMob API.
AdSize
AdSize represents the size of a banner ad.
AdWidget
Displays an Ad as a Flutter widget.
AdWithoutView
An Ad that is overlaid on top of the UI.
AdWithView
Base class for mobile Ad that has an in-line view.
AdWithViewListener
Shared event callbacks used in Native and Banner ads.
AnchoredAdaptiveBannerAdSize
An AdSize with the given width and a Google-optimized height to create a banner ad.
AppEventListener
Listener for app events.
AppLifecycleReactor
Listens for app foreground events and shows app open ads.
AppLovinAds
Class contains logic that applies to the Google Mobile Ads SDK as a whole.
AppLovinBannerAd
A banner ad displayed with Google Ad Manager.
AppLovinInitializationStatus
The status of the SDK initialization.
AppLovinInterstitialAd
A full-screen interstitial ad for the Google Mobile Ads Plugin.
AppLovinInterstitialAdLoadCallback
This class holds callbacks for loading an InterstitialAd.
AppLovinNativeAd
A AppLovinNativeAd.
AppLovinOpenAd
A full-screen app open ad for the Google Mobile Ads Plugin.
AppLovinOpenAdLoadCallback
This class holds callbacks for loading an AppOpenAd.
AppLovinRewardedAd
An Ad where a user has the option of interacting with in exchange for in-app rewards.
AppLovinRewardedAdLoadCallback
This class holds callbacks for loading a RewardedAd.
AppOpenAd
A full-screen app open ad for the Google Mobile Ads Plugin.
AppOpenAdLoadCallback
This class holds callbacks for loading an AppOpenAd.
AppOpenAdManager
Utility class that manages loading and showing app open ads.
AppStateEventNotifier
Notifies changes in app foreground/background.
BannerAd
A banner ad.
BannerAdListener
A listener for receiving notifications for the lifecycle of a BannerAd.
ConsentDebugSettings
Debug settings to hardcode in test requests.
ConsentForm
A rendered form for collecting consent from a user.
ConsentInformation
Utility methods for collecting consent from users.
ConsentRequestParameters
Parameters sent on updating user consent info.
CustomBannerAd
A banner ad displayed with Google Ad Manager.
CustomInterstitialAd
A full-screen interstitial ad for the Google Mobile Ads Plugin.
CustomInterstitialAdLoadCallback
This class holds callbacks for loading an InterstitialAd.
CustomNativeAd
A CustomNativeAd.
FacebookAds
Class contains logic that applies to the Google Mobile Ads SDK as a whole.
FacebookBannerAd
A banner ad displayed with Google Ad Manager.
FacebookInterstitialAd
A full-screen interstitial ad for the Google Mobile Ads Plugin.
FacebookInterstitialAdLoadCallback
This class holds callbacks for loading an InterstitialAd.
FacebookNativeAd
A AppLovinNativeAd.
FacebookRewardedAd
An Ad where a user has the option of interacting with in exchange for in-app rewards.
FacebookRewardedAdLoadCallback
This class holds callbacks for loading a RewardedAd.
FluidAdManagerBannerAd
An 'AdManagerBannerAd' that has fluid ad size.
FluidAdSize
A dynamically sized banner that matches its parent's width and content height.
FluidAdWidget
A widget for displaying FluidAdManagerBannerAd.
FormError
Error information about why a form operation failed.
FullScreenAdLoadCallback<T>
Generic parent class for ad load callbacks.
FullScreenContentCallback<Ad>
Callback events for for full screen ads, such as Rewarded and Interstitial.
InitializationStatus
The status of the SDK initialization.
InlineAdaptiveSize
A size for inline adaptive banner ads.
InterstitialAd
A full-screen interstitial ad for the Google Mobile Ads Plugin.
InterstitialAdLoadCallback
This class holds callbacks for loading an InterstitialAd.
LoadAdError
Represents errors that occur when loading an ad.
MaxAdContentRating
Values for RequestConfiguration.maxAdContentRating.
MobileAds
Class contains logic that applies to the Google Mobile Ads SDK as a whole.
NativeAd
A NativeAd.
NativeAdListener
A listener for receiving notifications for the lifecycle of a NativeAd.
NativeAdOptions
Used to configure native ad requests.
RequestConfiguration
Contains targeting information that can be applied to all ad requests.
ResponseInfo
Contains information about the loaded ad or ad request.
RewardedAd
An Ad where a user has the option of interacting with in exchange for in-app rewards.
RewardedAdLoadCallback
This class holds callbacks for loading a RewardedAd.
RewardedInterstitialAd
Rewarded interstitials are full screen ads that reward users and can be shown without a user opt in.
RewardedInterstitialAdLoadCallback
This class holds callbacks for loading a RewardedInterstitialAd.
RewardItem
Credit information about a reward received from a RewardedAd or RewardedInterstitialAd.
ServerSideVerificationOptions
Options for RewardedAd server-side verification callbacks.
SmartBannerAdSize
Ad units that render screen-width banner ads on any screen size across different devices in either Orientation.
TagForChildDirectedTreatment
Values for RequestConfiguration.tagForChildDirectedTreatment.
TagForUnderAgeOfConsent
Values for RequestConfiguration.tagForUnderAgeOfConsent.
VideoOptions
Options for controlling video playback in supported ad formats.

Enums

AdapterInitializationState
The initialization state of the mediation adapter.
AdChoicesPlacement
Indicates preferred location of AdChoices icon.
AppState
The app foreground/background state.
ConsentStatus
Consent status values.
DebugGeography
Debug values for testing geography.
GradientOrientation
MediaAspectRatio
Media aspect ratio for native ads.
PrecisionType
Allowed constants for precision type in OnPaidEventCallback.

Properties

appVersionCode int
getter/setter pair

Functions

convertAdsSettings({required int appVersionCode, required String jsonData, String? keyName}) Future<Settings?>
currentBannerSequence(int pos) Future<int>
currentIntraAdsCustomImpression() int
currentIntraSequence(int pos) Future<int>
currentNativeSequence(int pos) Future<int>
currentRewardSequence(int pos) Future<int>
destroyAd() → void
fetchAdsSettings({required int appVersionCode, required String settingsUrl, String? keyName}) Future<Settings?>
getAdManagerInterstitialAd() AdManagerInterstitialAd?
getAdsSettings() Settings?
getAdsSettingsJson() Map<String, dynamic>?
getAppLifecycleReactor() AppLifecycleReactor?
getAppLovinInterestitialAd() AppLovinInterstitialAd?
getAppLovinRewardedAd() AppLovinRewardedAd?
getAppVersionCode() int
getCustomInterestitialAd() CustomInterstitialAd?
getFacebookInterestitialAd() FacebookInterstitialAd?
getFacebookRewardedAd() FacebookRewardedAd?
getInterestialAdTimeInterval() int
getInterestitialAd() InterstitialAd?
getOpenProgressDialogWidget() Widget
getProgressDialogWidget() Widget
getRewardedAd() RewardedAd?
incrementBannerSequence() Future<void>
incrementCounter() → void
incrementIntraAdsCustomImpressionCount(bool isCompression) → dynamic
incrementIntraSequence() → dynamic
incrementNativeSequence() Future<void>
incrementRewardCounter() → void
incrementRewardSequence() → dynamic
initOpenAds({Function? onOpenAdLoaded, Function? onOpenAdFailedLoaded, required BuildContext context}) → dynamic
IsFullIntraAds({required BuildContext context, Function? callback}) → dynamic
IsIntraCustomImpression() bool
IsRewardShowCompleted() bool
launchURL(String url) → void
loadIntraAds({int pos = 0, int retry = 0, bool isCompulsory = false, dynamic onAdLoadedCallback(bool)?}) → void
loadRewardAds({int pos = 0, int retry = 0, bool isCompulsory = false, Function? onAdLoadedCallback, Function? onAdFailedCallback}) → void
resetTimerDelayed() → void
setAdManagerInterstitialAd(AdManagerInterstitialAd? admanagerIntraAd) → void
setAppLifecycleReactor(AppLifecycleReactor? lifecycle) → void
setAppLovinInterestitialAd(AppLovinInterstitialAd? _intraAd) → void
setAppLovinRewardedAd(AppLovinRewardedAd? reward) → void
setCustomInterestitialAd(CustomInterstitialAd? _intraAd) → void
setFacebookInterestitialAd(FacebookInterstitialAd? _intraAd) → void
setFacebookRewardedAd(FacebookRewardedAd? reward) → void
setInterestialAdTimeInterval(int timeInterval) → void
setInterestitialAd(InterstitialAd? _intraAd) → void
setIntraCustomImpression(bool intraCustomImpression) → void
setOpenProgressWidget(Widget? wdt) → void
setProgressDialogWidget(Widget? wdt) → void
setProgressWidget(Widget? wdt) → void
setRewardedAd(RewardedAd? reward) → void
setRewardShowCompleted(bool isrewardComplted) → void
setTimerDelayed() → void
showBannerAds({int pos = 0, int retry = 0, AdSize size = AdSize.banner, EdgeInsetsGeometry? margin, Decoration? decoration, dynamic onAdLoadedCallback(Widget)?, Function? onAdFailedToLoadCallback}) → dynamic
showFullMediumNativeAds({Size? size, Color backgroundColor = const Color(0xFFFFFFFF), Color borderColor = const Color(0xFFFFFFFF), double borderwidth = 1.0, EdgeInsetsGeometry? widgetMargin, BorderStyle borderstyle = BorderStyle.solid, double borderRadius = 12, Map<String, Object>? customOptions, dynamic onAdLoadedCallback(Widget)?, Function? onAdFailedToLoadCallback}) → dynamic
showFullNativeAds({Size? size, Color backgroundColor = const Color(0xFFFFFFFF), Color borderColor = const Color(0xFFFFFFFF), double borderwidth = 1.0, BorderStyle borderstyle = BorderStyle.solid, double borderRadius = 12, EdgeInsetsGeometry? widgetMargin, Map<String, Object>? customOptions, dynamic onAdLoadedCallback(Widget)?, Function? onAdFailedToLoadCallback}) → dynamic
showIntraAds({required BuildContext context, Function? callback, bool isCompulsory = false}) → dynamic
showMediumNativeAds({Size size = const Size(double.infinity, 160), Color backgroundColor = const Color(0xFFFFFFFF), Color borderColor = const Color(0xFFFFFFFF), double borderwidth = 1.0, BorderStyle borderstyle = BorderStyle.solid, double borderRadius = 12, EdgeInsetsGeometry? widgetMargin, Map<String, Object>? customOptions, dynamic onAdLoadedCallback(Widget)?, Function? onAdFailedToLoadCallback}) → dynamic
showNativeAds({int pos = 0, int retry = 0, bool isMediumNativeAds = false, bool isSequenceIgnore = false, Color backgroundColor = const Color(0xFFFFFFFF), Color borderColor = const Color(0xFFFFFFFF), double borderwidth = 1.0, BorderStyle borderstyle = BorderStyle.solid, EdgeInsetsGeometry? widgetMargin, double borderRadius = 12, Size size = const Size(double.infinity, 350), Map<String, Object>? customOptions, dynamic onAdLoadedCallback(Widget)?, Function? onAdFailedToLoadCallback}) → dynamic
showNativeAppLovinAds({Size size = const Size(double.infinity, 160), Color backgroundColor = const Color(0xFFFFFFFF), Color borderColor = const Color(0xFFFFFFFF), double borderwidth = 1.0, bool isMediumNativeAds = false, bool defaultOtherNativeAds = false, BorderStyle borderstyle = BorderStyle.solid, double borderRadius = 12, EdgeInsetsGeometry? widgetMargin, Map<String, Object>? customOptions, dynamic onAdLoadedCallback(Widget)?, Function? onAdFailedToLoadCallback}) → dynamic
showNativeCustomAds({Size size = const Size(double.infinity, 160), Color backgroundColor = const Color(0xFFFFFFFF), Color borderColor = const Color(0xFFFFFFFF), double borderwidth = 1.0, bool isMediumNativeAds = false, bool defaultOtherNativeAds = false, BorderStyle borderstyle = BorderStyle.solid, double borderRadius = 12, EdgeInsetsGeometry? widgetMargin, Map<String, Object>? customOptions, dynamic onAdLoadedCallback(Widget)?, Function? onAdFailedToLoadCallback}) → dynamic
showNativeFacebookAds({Size size = const Size(double.infinity, 160), Color backgroundColor = const Color(0xFFFFFFFF), Color borderColor = const Color(0xFFFFFFFF), double borderwidth = 1.0, bool isMediumNativeAds = false, bool defaultOtherNativeAds = false, BorderStyle borderstyle = BorderStyle.solid, double borderRadius = 12, EdgeInsetsGeometry? widgetMargin, Map<String, Object>? customOptions, dynamic onAdLoadedCallback(Widget)?, Function? onAdFailedToLoadCallback}) → dynamic
showNativeGoogleAds({Size size = const Size(double.infinity, 160), Color backgroundColor = const Color(0xFFFFFFFF), Color borderColor = const Color(0xFFFFFFFF), double borderwidth = 1.0, bool isMediumNativeAds = false, bool defaultOtherNativeAds = false, BorderStyle borderstyle = BorderStyle.solid, double borderRadius = 12, Map<String, Object>? customOptions, EdgeInsetsGeometry? widgetMargin, dynamic onAdLoadedCallback(Widget)?, Function? onAdFailedToLoadCallback}) → dynamic
showOpenAds(BuildContext context) → dynamic
showOpenProgressbarDialog(BuildContext context) → void
showProgressbarDialog(BuildContext context) → void
showRewardAds({required BuildContext context, Function? callback, bool isCompulsory = false, Function? onFailedCallback, Function? onSkippedCallback}) → dynamic

Typedefs

AdEventCallback = void Function(Ad ad)
The callback type to handle an event occurring for an Ad.
AdLoadErrorCallback = void Function(Ad ad, LoadAdError error)
The callback type to handle an error loading an Ad.
FullScreenAdLoadErrorCallback = void Function(LoadAdError error)
A callback type for when an error occurs loading a full screen ad.
GenericAdEventCallback<Ad> = void Function(Ad ad)
Generic callback type for an event occurring on an Ad.
OnConsentFormDismissedListener = void Function(FormError? formError)
Callback to be invoked when a consent form is dismissed.
OnConsentFormLoadFailureListener = void Function(FormError formError)
Callback to be invoked when a consent form failed to load.
OnConsentFormLoadSuccessListener = void Function(ConsentForm consentForm)
Callback to be invoked when a consent form loads successfully
OnConsentInfoUpdateFailureListener = void Function(FormError error)
Callback to be invoked when consent info failed to update.
OnConsentInfoUpdateSuccessListener = void Function()
Callback to be invoked when consent info is successfully updated.
OnFluidAdHeightChangedListener = void Function(FluidAdManagerBannerAd ad, double height)
The callback type for when a fluid ad's height changes.
OnPaidEventCallback = void Function(Ad ad, double valueMicros, PrecisionType precision, String currencyCode)
The callback type for when an ad receives revenue value.
OnUserEarnedRewardCallback = void Function(AdWithoutView ad, RewardItem reward)
The callback type for when a user earns a reward.