GoogleMobileAds Framework Reference

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;