MobileAds class

Entry point for the GMA Next-Gen SDK.

Call initialize exactly once (ideally at app startup) before loading any ads. The native side performs initialization on a background thread, so it is safe to await this from the UI isolate.

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

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 Methods

getVersion() Future<String>
Returns the underlying GMA Next-Gen SDK version string.
initialize({String? appId}) Future<InitializationStatus>
Initialize the SDK.
setRequestConfiguration(RequestConfiguration config) Future<void>
Apply a global RequestConfiguration to every subsequent ad request.