GoogleMobileAds Framework Reference

GAMInterstitialAd

 @interface GAMInterstitialAd : GADInterstitialAd 
 

Google Ad Manager interstitial ad, a full-screen advertisement shown at natural transition points in your application such as between game levels or news stories.

  • Optional delegate that is notified when creatives send app events.

    Declaration

    Swift

     weak var appEventDelegate: (any AppEventDelegate)? { get set } 
    

    Objective-C

     @property (nonatomic, weak, nullable) id< GADAppEventDelegate 
    > appEventDelegate; 
    
  • Loads an interstitial ad.

    Declaration

    Swift

     class func load(with adUnitID: String, request: AdManagerRequest?) async throws -> AdManagerInterstitialAd 
    

    Objective-C

     + (void)loadWithAdManagerAdUnitID:(nonnull NSString *)adUnitID
                              request:(nullable GAMRequest 
    *)request
                    completionHandler:
                        (nonnull GAMInterstitialAdLoadCompletionHandler 
    )
                            completionHandler; 
    

    Parameters

    adUnitID

    An ad unit ID created in the Ad Manager UI.

    request

    An ad request object. If nil, a default ad request object is used.

    completionHandler

    A handler to execute when the load operation finishes or times out.

  • Unavailable

    Undocumented

    Declaration

    Objective-C

     + (void)loadWithAdUnitID:(nonnull NSString *)adUnitID
                     request:(nullable GADRequest 
    *)request
           completionHandler:
               (nonnull GADInterstitialAdLoadCompletionHandler 
    )completionHandler; 
    
Design a Mobile Site
View Site in Mobile | Classic
Share by: