GoogleMobileAds Framework Reference
Stay organized with collections
Save and categorize content based on your preferences.
GADAppEventDelegate
@protocol GADAppEventDelegate <NSObject>
Implement your app event within these methods. The delegate will be notified when the SDK
receives an app event message from the ad.
-
Called when the banner receives an app event.
Declaration
Swift
optional func adView(_ banner: GADBannerView, didReceiveAppEvent name: String, with info: String?)
Objective-C
- (void)adView:(nonnull GADBannerView *)banner
didReceiveAppEvent:(nonnull NSString *)name
withInfo:(nullable NSString *)info;
-
Called when the interstitial receives an app event.
Declaration
Swift
optional func adView(_ interstitialAd: GADInterstitialAd, didReceiveAppEvent name: String, with info: String?)
Objective-C
- (void)interstitialAd:(nonnull GADInterstitialAd *)interstitialAd
didReceiveAppEvent:(nonnull NSString *)name
withInfo:(nullable NSString *)info;
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-08-20 UTC.
[null,null,["Last updated 2025-08-20 UTC."],[[["\u003cp\u003eThe \u003ccode\u003eGADAppEventDelegate\u003c/code\u003e protocol enables your app to respond to app events sent from Google Mobile Ads SDK.\u003c/p\u003e\n"],["\u003cp\u003eIt provides methods that are called when banners or interstitials receive app events, delivering the event name and optional information.\u003c/p\u003e\n"],["\u003cp\u003eThese methods allow developers to implement custom logic based on specific app events triggered within their ads.\u003c/p\u003e\n"]]],[],null,["# GoogleMobileAds Framework Reference\n\nGADAppEventDelegate\n===================\n\n @protocol GADAppEventDelegate \u003cNSObject\u003e\n\nImplement your app event within these methods. The delegate will be notified when the SDK\nreceives an app event message from the ad.\n- `\n ``\n ``\n `\n\n ### [-adView:didReceiveAppEvent:withInfo:](#/c:objc(pl)GADAppEventDelegate(im)adView:didReceiveAppEvent:withInfo:)\n\n `\n ` \n Called when the banner receives an app event. \n\n #### Declaration\n\n Swift \n\n optional func adView(_ banner: ../Classes/GADBannerView.html, didReceiveAppEvent name: String, with info: String?)\n\n Objective-C \n\n - (void)adView:(nonnull ../Classes/GADBannerView.html *)banner\n didReceiveAppEvent:(nonnull NSString *)name\n withInfo:(nullable NSString *)info;\n\n- `\n ``\n ``\n `\n\n ### [-interstitialAd:didReceiveAppEvent:withInfo:](#/c:objc(pl)GADAppEventDelegate(im)interstitialAd:didReceiveAppEvent:withInfo:)\n\n `\n ` \n Called when the interstitial receives an app event. \n\n #### Declaration\n\n Swift \n\n optional func adView(_ interstitialAd: ../Classes/GADInterstitialAd.html, didReceiveAppEvent name: String, with info: String?)\n\n Objective-C \n\n - (void)interstitialAd:(nonnull ../Classes/GADInterstitialAd.html *)interstitialAd\n didReceiveAppEvent:(nonnull NSString *)name\n withInfo:(nullable NSString *)info;"]]