GoogleMobileAds Framework Reference

  • GADMediationAdEventDelegate enables communication between ad adapters and the Google Mobile Ads SDK.

  • Adapters use this delegate to report ad events like impressions, clicks, and full-screen view interactions.

  • It provides methods to inform the SDK about ad presentation, dismissal, and any errors encountered.

  • This delegate ensures that the Google Mobile Ads SDK is kept informed about the ad lifecycle managed by the adapter.

GADMediationAdEventDelegate

@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

    Swift

    func reportClick()

    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;