Page Summary
-
GADAdChoicesView is used to display AdChoices content within a GADNativeAdView.
-
GADAdLoader is the class used for loading various types of ads.
-
GADAdReward provides information about the reward earned from an ad.
-
GADAppOpenAd is a full-screen ad type for app load screens.
-
GADBannerView is a view designed to display banner ads.
Classes
The following classes are available globally.
-
Displays AdChoices content.
If a GADAdChoicesView is set on GADNativeAdView prior to calling -setNativeAd:, AdChoices content will render inside the GADAdChoicesView. By default, AdChoices is placed in the top right corner of GADNativeAdView.
Declaration
Swift
class AdChoicesView : UIViewObjective-C
@interface GADAdChoicesView : UIView -
Loads ads. See GADAdLoaderAdTypes.h for available ad types.
Declaration
Swift
class AdLoader : NSObjectObjective-C
@interface GADAdLoader : NSObject -
Ad loader options base class. See each ad type’s header for available GADAdLoaderOptions subclasses.
Declaration
Swift
class GADAdLoaderOptions : NSObjectObjective-C
@interface GADAdLoaderOptions : NSObject -
Ad reward information.
Declaration
Swift
class AdReward : NSObjectObjective-C
@interface GADAdReward : NSObject -
The monetary value earned from an ad.
Declaration
Swift
class AdValue : NSObject, NSCopyingObjective-C
@interface GADAdValue : NSObject <NSCopying>
-
An app open ad. Used to monetize app load screens.
Declaration
Swift
class AppOpenAd : NSObject, FullScreenPresentingAdObjective-C
@interface GADAppOpenAd : NSObject <GADFullScreenPresentingAd> -
Provides audio and video notifications and configurations management.
Don’t create an instance of this class and use the one available from GADMobileAds sharedInstance’s audioVideoManager.
Declaration
Swift
class AudioVideoManager : NSObjectObjective-C
@interface GADAudioVideoManager : NSObject -
A view that displays banner ads. See https://developers.google.com/admob/ios/banner to get started.
Declaration
Swift
class BannerView : UIViewObjective-C
@interface GADBannerView : UIView -
Create an instance of this class to set additional parameters for each custom event object. The additional parameters for a custom event are keyed by the custom event label. These extras are passed to your implementation of GADCustomEventBanner or GADCustomEventInterstitial.
Declaration
Swift
class CustomEventExtras : NSObject, AdNetworkExtrasObjective-C
@interface GADCustomEventExtras : NSObject <GADAdNetworkExtras> -
Specifies optional ad request targeting parameters that are provided by the publisher and are forwarded to custom events for purposes of populating an ad request to a 3rd party ad network.
Declaration
Swift
class CustomEventRequest : NSObjectObjective-C
@interface GADCustomEventRequest : NSObject -
Custom native ad. To request this ad type, you need to pass GADAdLoaderAdTypeCustomNative (see GADAdLoaderAdTypes.h) to the |adTypes| parameter in GADAdLoader’s initializer method. If you request this ad type, your delegate must conform to the GADCustomNativeAdLoaderDelegate protocol.
Declaration
Swift
class CustomNativeAd : NSObjectObjective-C
@interface GADCustomNativeAd : NSObject -
Displays debug options to the user.
Declaration
Swift
class DebugOptionsViewController : UIViewControllerObjective-C
@interface GADDebugOptionsViewController : UIViewController -
Measurement used for display custom native ad formats.
Declaration
Swift
class DisplayAdMeasurement : NSObjectObjective-C
@interface GADDisplayAdMeasurement : NSObject -
Ad network extras sent to Google networks.
Declaration
Swift
class Extras : NSObject, AdNetworkExtrasObjective-C
@interface GADExtras : NSObject <GADAdNetworkExtras> -
An immutable snapshot of a mediation adapter’s initialization status.
Declaration
Swift
class AdapterStatus : NSObject, NSCopyingObjective-C
@interface GADAdapterStatus : NSObject <NSCopying> -
An immutable snapshot of the Google Mobile Ads SDK’s initialization status, categorized by mediation adapter.
Declaration
Swift
class InitializationStatus : NSObject, NSCopyingObjective-C
@interface GADInitializationStatus : NSObject <NSCopying> -
An interstitial ad. This is a full-screen advertisement shown at natural transition points in your application such as between game levels or news stories. See https://developers.google.com/admob/ios/interstitial to get started.
Declaration
Swift
class InterstitialAd : NSObject, FullScreenPresentingAdObjective-C
@interface GADInterstitialAd : NSObject <GADFullScreenPresentingAd> -
Provides media content information. Interact with instances of this class on the main queue only.
Declaration
Swift
class MediaContent : NSObjectObjective-C
@interface GADMediaContent : NSObject -
Displays native ad media content.
To display media content in GADNativeAdView instances, add a GADMediaView subview, assign the native ad view’s mediaView property, and set the native ad’s mediaContent property to the media view.
If the native ad contains video content, the media view displays the video content.
If the native ad doesn’t have video content and image loading is enabled, the media view displays the first image from the native ad’s |images| property.
If the native ad doesn’t have video content and image loading is disabled, the media view is empty.
Declaration
Swift
class MediaView : UIViewObjective-C
@interface GADMediaView : UIView -
Google Mobile Ads SDK settings.
Declaration
Swift
class MobileAds : NSObjectObjective-C
@interface GADMobileAds : NSObject -
Ad loader options for requesting multiple ads. Requesting multiple ads in a single request is currently only available for native app install ads and native content ads.
Declaration
Swift
class MultipleAdsAdLoaderOptions : GADAdLoaderOptionsObjective-C
@interface GADMultipleAdsAdLoaderOptions : GADAdLoaderOptions -
Reason for muting the ad.
Declaration
Swift
class MuteThisAdReason : NSObjectObjective-C
@interface GADMuteThisAdReason : NSObject -
Native ad. To request this ad type, pass GADAdLoaderAdTypeNative (see GADAdLoaderAdTypes.h) to the |adTypes| parameter in GADAdLoader’s initializer method. If you request this ad type, your delegate must conform to the GADNativeAdLoaderDelegate protocol.
Declaration
Swift
class NativeAd : NSObjectObjective-C
@interface GADNativeAd : NSObject
-
Base class for native ad views. Your native ad view must be a subclass of this class and must call superclass methods for all overridden methods.
Declaration
Swift
class NativeAdView : UIViewObjective-C
@interface GADNativeAdView : UIView -