Platforms to show: All Mac Windows Linux Cross-Platform

Back to GADMobileAdsMBS class.

GADMobileAdsMBS.Constructor

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Mobile Ads MBS iOS Plugin 22.5 ❌ No ❌ No ❌ No ✅ Yes iOS only
The constructor.

GADMobileAdsMBS.Destructor

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Mobile Ads MBS iOS Plugin 22.5 ❌ No ❌ No ❌ No ✅ Yes iOS only
The destructor.

GADMobileAdsMBS.disableMediationInitialization

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Mobile Ads MBS iOS Plugin 22.5 ❌ No ❌ No ❌ No ✅ Yes iOS only
Disables mediation adapter initialization during initialization of the GMA SDK.

Calling this method may negatively impact your ad performance and should only be called if you will not use GMA SDK controlled mediation during this app session. This method must be called before initializing the GMA SDK or loading ads and has no effect once the SDK has been initialized.

GADMobileAdsMBS.disableSDKCrashReporting

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Mobile Ads MBS iOS Plugin 22.5 ❌ No ❌ No ❌ No ✅ Yes iOS only
Disables automated SDK crash reporting.

If not called, the SDK records the original exception handler if available and registers a new exception handler. The new exception handler only reports SDK related exceptions and calls the recorded original exception handler.

GADMobileAdsMBS.registerWebView(WKWebViewPtr as Ptr)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Mobile Ads MBS iOS Plugin 22.5 ❌ No ❌ No ❌ No ✅ Yes iOS only
Registers a web view with the Google Mobile Ads SDK to improve in-app ad monetization of ads within this web view.

Please pass handle of HTMLViewer controls or WKWebViewMBS.
If needed, cast from Integer to Ptr.

GADMobileAdsMBS.requestTrackingAuthorization

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Mobile Ads MBS iOS Plugin 22.5 ❌ No ❌ No ❌ No ✅ Yes iOS only
The request for user authorization to access app-related data.

The requestTrackingAuthorization: is a one-time request to authorize or deny access to app-related data that can be used for tracking the user or the device. The system remembers the user’s choice and doesn’t prompt again unless a user uninstalls and then reinstalls the app on the device.

Calls to the API only prompt when the application state is UIApplicationStateActive. The authorization prompt doesn’t display if another permission request is pending user confirmation. Concurrent requests aren’t preserved by iOS, and calls to the API through an app extension don’t prompt. Check the trackingAuthorizationStatus for a status of TrackingManagerAuthorizationStatusNotDetermined to determine if you need to make an additional call.

Some examples using this method:

GADMobileAdsMBS.start

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Mobile Ads MBS iOS Plugin 22.5 ❌ No ❌ No ❌ No ✅ Yes iOS only
Starts the Google Mobile Ads SDK.

Call this method as early as possible to reduce latency on the session's first ad request. Calls startCompleted event when the GMA SDK and all mediation networks are fully set up or if set-up times out. The Google Mobile Ads SDK starts on the first ad request if this method is not called.

The items on this page are in the following plugins: MBS iOS Plugin.


The biggest plugin in space...