MobileAds
The MobileAds class provides global configurations and initialization entry points for the Google Mobile Ads SDK.
Static Methods
initialize / Initialize
Initializes the Google Mobile Ads SDK. Takes an optional OnInitializationCompleteListener to be notified when initialization finishes.
set_request_configuration / SetRequestConfiguration
Sets global request configurations (such as test device IDs and targeting restrictions) applied to every ad request.
get_initialization_status / GetInitializationStatus
Returns the initialization status of the SDK and its mediation adapters.
set_ios_app_pause_on_background / SetIosAppPauseOnBackground
(iOS Only) Sets whether the iOS application should pause when running in the background.
set_app_volume / SetAppVolume
Sets the global audio volume for all ads (from 0.0 to 1.0).
set_app_muted / SetAppMuted
Mutes or unmutes all ads globally.
set_publisher_first_party_id_enabled / SetPublisherFirstPartyIDEnabled
Enables or disables publisher first-party ID.
set_gad_has_consent_for_cookies / SetGadHasConsentForCookies
Informs the SDK whether the user has consented to cookies usage.
get_gad_has_consent_for_cookies / GetGadHasConsentForCookies
Returns whether consent for cookies has been declared.
disable_sdk_crash_reporting / DisableSdkCrashReporting
(iOS Only) Disables the built-in crash reporting within the Google Mobile Ads SDK.
open_ad_inspector / OpenAdInspector
Opens the in-app Ad Inspector overlay to verify ad sources and troubleshoot mediation. Takes an optional AdInspectorClosedListener to be notified when the inspector is dismissed.
get_version / GetVersion
Returns the Godot AdMob Editor Plugin version string.
get_platform_version / GetPlatformVersion
Returns the underlying native Mobile Ads SDK version (Android/iOS).