# GADMobileAds


    @interface GADMobileAds : NSObject

Google Mobile Ads SDK settings.
- `


  ### [sharedInstance](https://developers.google.com/admob/ios/api/reference/Classes/GADMobileAds#/c:objc(cs)GADMobileAds(cpy)sharedInstance)


  ` Returns the shared GADMobileAds instance.

  #### Declaration

  Swift

      class var shared: MobileAds { get }

  Objective-C

      @property (class, nonatomic, readonly, nonnull) GADMobileAds *sharedInstance;

- `


  ### [versionNumber](https://developers.google.com/admob/ios/api/reference/Classes/GADMobileAds#/c:objc(cs)GADMobileAds(py)versionNumber)


  ` Returns the Google Mobile Ads SDK's version number.

  #### Declaration

  Swift

      var versionNumber: VersionNumber { get }

  Objective-C

      @property (nonatomic, readonly) https://developers.google.com/admob/ios/api/reference/Structs/GADVersionNumber.html versionNumber;

- `


  ### [applicationVolume](https://developers.google.com/admob/ios/api/reference/Classes/GADMobileAds#/c:objc(cs)GADMobileAds(py)applicationVolume)


  ` The application's audio volume. Affects audio volumes of all ads relative to other audio output.
  Valid ad volume values range from 0.0 (silent) to 1.0 (current device volume). Defaults to 1.0.

  Warning: Lowering your app's audio volume reduces video ad eligibility and may reduce your app's
  ad revenue. You should only utilize this API if your app provides custom volume controls to the
  user, and you should reflect the user's volume choice in this API.

  #### Declaration

  Swift

      var applicationVolume: Float { get set }

  Objective-C

      @property (nonatomic) float applicationVolume;

- `


  ### [applicationMuted](https://developers.google.com/admob/ios/api/reference/Classes/GADMobileAds#/c:objc(cs)GADMobileAds(py)applicationMuted)


  ` Indicates whether the application's audio is muted. Affects initial mute state for all ads.
  Defaults to NO.

  Warning: Muting your application reduces video ad eligibility and may reduce your app's ad
  revenue. You should only utilize this API if your app provides a custom mute control to the
  user, and you should reflect the user's mute decision in this API.

  #### Declaration

  Swift

      var isApplicationMuted: Bool { get set }

  Objective-C

      @property (nonatomic, assign, unsafe_unretained, readwrite,
                getter=isApplicationMuted) BOOL applicationMuted;

- `


  ### [audioVideoManager](https://developers.google.com/admob/ios/api/reference/Classes/GADMobileAds#/c:objc(cs)GADMobileAds(py)audioVideoManager)


  ` Manages the Google Mobile Ads SDK's audio and video settings.

  #### Declaration

  Swift

      var audioVideoManager: AudioVideoManager { get }

  Objective-C

      @property (nonatomic, strong, readonly, nonnull) https://developers.google.com/admob/ios/api/reference/Classes/GADAudioVideoManager.html *audioVideoManager;

- `


  ### [requestConfiguration](https://developers.google.com/admob/ios/api/reference/Classes/GADMobileAds#/c:objc(cs)GADMobileAds(py)requestConfiguration)


  ` Request configuration that is common to all requests.

  #### Declaration

  Swift

      var requestConfiguration: RequestConfiguration { get }

  Objective-C

      @property (nonatomic, strong, readonly, nonnull) https://developers.google.com/admob/ios/api/reference/Classes/GADRequestConfiguration.html *requestConfiguration;

- `


  ### [initializationStatus](https://developers.google.com/admob/ios/api/reference/Classes/GADMobileAds#/c:objc(cs)GADMobileAds(py)initializationStatus)


  ` Initialization status of the ad networks available to the Google Mobile Ads SDK.

  #### Declaration

  Swift

      var initializationStatus: InitializationStatus { get }

  Objective-C

      @property (nonatomic, readonly, nonnull) https://developers.google.com/admob/ios/api/reference/Classes/GADInitializationStatus.html *initializationStatus;

- `


  ### [-isSDKVersionAtLeastMajor:minor:patch:](https://developers.google.com/admob/ios/api/reference/Classes/GADMobileAds#/c:objc(cs)GADMobileAds(im)isSDKVersionAtLeastMajor:minor:patch:)


  ` Returns YES if the current SDK version is at least \|major\|.\|minor\|.\|patch\|. This method can be
  used by libraries that depend on a specific minimum version of the Google Mobile Ads SDK to warn
  developers if they have an incompatible version.

  Available in Google Mobile Ads SDK 7.10 and onwards. Before calling this method check if the
  GADMobileAds's shared instance responds to this method. Calling this method on a Google Mobile
  Ads SDK lower than 7.10 can crash the app.

  #### Declaration

  Swift

      func isSDKVersionAtLeast(major: Int, minor: Int, patch: Int) -> Bool

  Objective-C

      - (BOOL)isSDKVersionAtLeastMajor:(NSInteger)major
                                 minor:(NSInteger)minor
                                 patch:(NSInteger)patch;

- `


  ### [-startWithCompletionHandler:](https://developers.google.com/admob/ios/api/reference/Classes/GADMobileAds#/c:objc(cs)GADMobileAds(im)startWithCompletionHandler:)


  ` Starts the Google Mobile Ads SDK. Call this method as early as possible to reduce latency on the
  session's first ad request. Calls completionHandler 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.

  #### Declaration

  Swift

      func start() async -> InitializationStatus

  Objective-C

      - (void)startWithCompletionHandler:
          (nullable https://developers.google.com/admob/ios/api/reference/Type-Definitions.html#/c:GADMobileAds.h@T@GADInitializationCompletionHandler)completionHandler;

- `


  ### [-disableSDKCrashReporting](https://developers.google.com/admob/ios/api/reference/Classes/GADMobileAds#/c:objc(cs)GADMobileAds(im)disableSDKCrashReporting)


  ` 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.

  #### Declaration

  Swift

      func disableSDKCrashReporting()

  Objective-C

      - (void)disableSDKCrashReporting;

- `


  ### [-disableMediationInitialization](https://developers.google.com/admob/ios/api/reference/Classes/GADMobileAds#/c:objc(cs)GADMobileAds(im)disableMediationInitialization)


  ` 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.

  #### Declaration

  Swift

      func disableMediationInitialization()

  Objective-C

      - (void)disableMediationInitialization;

- `


  ### [-presentAdInspectorFromViewController:completionHandler:](https://developers.google.com/admob/ios/api/reference/Classes/GADMobileAds#/c:objc(cs)GADMobileAds(im)presentAdInspectorFromViewController:completionHandler:)


  ` Presents Ad Inspector. The device calling this API must be registered as a test device in order
  to launch Ad Inspector. Set
  GADMobileAds.sharedInstance.requestConfiguration.testDeviceIdentifiers to enable test mode on
  this device.

  Warning: Ad inspector can increase memory usage on test devices.

  #### Declaration

  Swift

      func presentAdInspector(from viewController: UIViewController?) async throws

  Objective-C

      - (void)presentAdInspectorFromViewController:
                  (nullable UIViewController *)viewController
                                 completionHandler:
                                     (nullable https://developers.google.com/admob/ios/api/reference/Type-Definitions.html#/c:GADMobileAds.h@T@GADAdInspectorCompletionHandler)
                                         completionHandler;

  #### Parameters

  |---|---|
  | ` viewController ` | A view controller to present Ad Inspector. If nil, uses the top view controller of the app's main window. |
  | ` completionHandler ` | A handler to execute when Ad Inspector is closed. |

- `


  ### [-registerWebView:](https://developers.google.com/admob/ios/api/reference/Classes/GADMobileAds#/c:objc(cs)GADMobileAds(im)registerWebView:)


  ` Registers a web view with the Google Mobile Ads SDK to improve in-app ad monetization of ads
  within this web view.

  #### Declaration

  Swift

      func register(_ webView: WKWebView)

  Objective-C

      - (void)registerWebView:(nonnull WKWebView *)webView;

- `


  ### [+generateSignal:completionHandler:](https://developers.google.com/admob/ios/api/reference/Classes/GADMobileAds#/c:objc(cs)GADMobileAds(cm)generateSignal:completionHandler:)


  ` Generates a signal that can be used as input in a server-to-server Google request. Calls
  completionHandler asynchronously on the main thread once a signal has been generated or
  when an error occurs.

  #### Declaration

  Swift

      class func generateSignal(_ request: SignalRequest) async throws -> Signal

  Objective-C

      + (void)generateSignal:(nonnull https://developers.google.com/admob/ios/api/reference/Classes/GADSignalRequest.html *)request
           completionHandler:(nonnull https://developers.google.com/admob/ios/api/reference/Type-Definitions.html#/c:GADMobileAds.h@T@GADSignalCompletionHandler)completionHandler;

  #### Parameters

  |---|---|
  | ` request ` | The signal request that will be used to generate the signal. |
  | ` completionHandler ` | A handler to execute when the signal generation is done. |