GoogleMobileAds Framework Reference
Stay organized with collections
Save and categorize content based on your preferences.
@protocol GADMediationAdEventDelegate <NSObject>
Reports information to the Google Mobile Ads SDK from the adapter. Adapters receive an ad event
delegate when they provide a GADMediationAd by calling a render completion handler.
-
Notifies Google Mobile Ads SDK that an impression occurred on the GADMediationAd.
Declaration
Swift
func reportImpression()
Objective-C
- (void)reportImpression;
-
Notifies Google Mobile Ads SDK that a click occurred on the GADMediationAd.
Declaration
Objective-C
- (void)reportClick;
-
Notifies Google Mobile Ads SDK that the GADMediationAd will present a full screen modal view.
Maps to adWillPresentFullScreenContent: for full screen ads.
Declaration
Swift
func willPresentFullScreenView()
Objective-C
- (void)willPresentFullScreenView;
-
Notifies Google Mobile Ads SDK that the GADMediationAd failed to present with an error.
Declaration
Swift
func didFailToPresentWithError(_ error: any Error)
Objective-C
- (void)didFailToPresentWithError:(nonnull NSError *)error;
-
Notifies Google Mobile Ads SDK that the GADMediationAd will dismiss a full screen modal view.
Declaration
Swift
func willDismissFullScreenView()
Objective-C
- (void)willDismissFullScreenView;
-
Notifies Google Mobile Ads SDK that the GADMediationAd finished dismissing a full screen modal
view.
Declaration
Swift
func didDismissFullScreenView()
Objective-C
- (void)didDismissFullScreenView;
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\u003e\u003ccode\u003eGADMediationAdEventDelegate\u003c/code\u003e enables communication between ad adapters and the Google Mobile Ads SDK.\u003c/p\u003e\n"],["\u003cp\u003eAdapters receive this delegate when providing a \u003ccode\u003eGADMediationAd\u003c/code\u003e, allowing them to report ad events.\u003c/p\u003e\n"],["\u003cp\u003eIt includes methods to report impressions, clicks, and full-screen view events (presentation, dismissal, and errors).\u003c/p\u003e\n"],["\u003cp\u003eThese methods help the SDK track ad performance and manage the ad lifecycle.\u003c/p\u003e\n"],["\u003cp\u003eBy implementing this protocol, adapters ensure proper integration with the Google Mobile Ads SDK.\u003c/p\u003e\n"]]],["The `GADMediationAdEventDelegate` protocol allows adapters to communicate ad events to the Google Mobile Ads SDK. It includes methods to report an impression (`reportImpression`) and a click (`reportClick`) on a `GADMediationAd`. Additionally, it notifies the SDK when a full-screen view will be presented (`willPresentFullScreenView`), fails to present (`didFailToPresentWithError`), will dismiss (`willDismissFullScreenView`), or has finished dismissing (`didDismissFullScreenView`).\n"],null,["# GoogleMobileAds Framework Reference\n\nGADMediationAdEventDelegate\n===========================\n\n @protocol GADMediationAdEventDelegate \u003cNSObject\u003e\n\nReports information to the Google Mobile Ads SDK from the adapter. Adapters receive an ad event\ndelegate when they provide a GADMediationAd by calling a render completion handler.\n- `\n ``\n ``\n `\n\n ### [-reportImpression](#/c:objc(pl)GADMediationAdEventDelegate(im)reportImpression)\n\n `\n ` \n Notifies Google Mobile Ads SDK that an impression occurred on the GADMediationAd. \n\n #### Declaration\n\n Swift \n\n func reportImpression()\n\n Objective-C \n\n - (void)reportImpression;\n\n- `\n ``\n ``\n `\n\n ### [-reportClick](#/c:objc(pl)GADMediationAdEventDelegate(im)reportClick)\n\n `\n ` \n Notifies Google Mobile Ads SDK that a click occurred on the GADMediationAd. \n\n #### Declaration\n\n Swift \n\n func reportClick()\n\n Objective-C \n\n - (void)reportClick;\n\n- `\n ``\n ``\n `\n\n ### [-willPresentFullScreenView](#/c:objc(pl)GADMediationAdEventDelegate(im)willPresentFullScreenView)\n\n `\n ` \n Notifies Google Mobile Ads SDK that the GADMediationAd will present a full screen modal view.\n Maps to adWillPresentFullScreenContent: for full screen ads. \n\n #### Declaration\n\n Swift \n\n func willPresentFullScreenView()\n\n Objective-C \n\n - (void)willPresentFullScreenView;\n\n- `\n ``\n ``\n `\n\n ### [-didFailToPresentWithError:](#/c:objc(pl)GADMediationAdEventDelegate(im)didFailToPresentWithError:)\n\n `\n ` \n Notifies Google Mobile Ads SDK that the GADMediationAd failed to present with an error. \n\n #### Declaration\n\n Swift \n\n func didFailToPresentWithError(_ error: any Error)\n\n Objective-C \n\n - (void)didFailToPresentWithError:(nonnull NSError *)error;\n\n- `\n ``\n ``\n `\n\n ### [-willDismissFullScreenView](#/c:objc(pl)GADMediationAdEventDelegate(im)willDismissFullScreenView)\n\n `\n ` \n Notifies Google Mobile Ads SDK that the GADMediationAd will dismiss a full screen modal view. \n\n #### Declaration\n\n Swift \n\n func willDismissFullScreenView()\n\n Objective-C \n\n - (void)willDismissFullScreenView;\n\n- `\n ``\n ``\n `\n\n ### [-didDismissFullScreenView](#/c:objc(pl)GADMediationAdEventDelegate(im)didDismissFullScreenView)\n\n `\n ` \n Notifies Google Mobile Ads SDK that the GADMediationAd finished dismissing a full screen modal\n view. \n\n #### Declaration\n\n Swift \n\n func didDismissFullScreenView()\n\n Objective-C \n\n - (void)didDismissFullScreenView;"]]