MobileAds class

Class contains logic that applies to the Google Mobile Ads SDK as a whole.

Right now, the only methods in it are used for initialization.

See instance.

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

disableMediationInitialization() Future<void>
Disables mediation adapter initialization during initialization of the GMA SDK.
disableSDKCrashReporting() Future<void>
Disables automated SDK crash reporting (iOS only).
getRequestConfiguration() Future<RequestConfiguration>
Get the current RequestConfiguration.
getVersionString() Future<String>
Gets the version string of Google Mobile Ads SDK.
initialize() Future<InitializationStatus>
Initializes the Google Mobile Ads SDK.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
openAdInspector(OnAdInspectorClosedListener listener) → void
Open the ad inspector.
openDebugMenu(String adUnitId) Future<void>
Opens the debug menu for the adUnitId.
registerWebView(WebViewController webViewController) Future<void>
Registers a WebViewController with the Google Mobile Ads SDK.
setAppMuted(bool muted) Future<void>
Sets whether the app is muted.
setAppVolume(double volume) Future<void>
Sets the current app volume.
setSameAppKeyEnabled(bool isEnabled) Future<void>
Set whether the Google Mobile Ads SDK Same App Key is enabled (iOS only).
toString() String
A string representation of this object.
inherited
updateRequestConfiguration(RequestConfiguration requestConfiguration) Future<void>
Update the RequestConfiguration to apply for future ad requests.

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Properties

instance MobileAds
Shared instance to initialize the AdMob SDK.
no setter