//
//  GADAppEventDelegate.h
//  Google Mobile Ads SDK
//
//  Copyright 2012 Google Inc. All rights reserved.
//

#import <Foundation/Foundation.h>

#import <GoogleMobileAds/GoogleMobileAdsDefines.h>

@class GADBannerView;
@class GADInterstitial;

GAD_ASSUME_NONNULL_BEGIN

/// Implement your app event within these methods. The delegate will be notified when the SDK
/// receives an app event message from the ad.
@protocol GADAppEventDelegate<NSObject>

@optional

/// Called when the banner receives an app event.
- (void)adView:(GADBannerView *)banner
    didReceiveAppEvent:(NSString *)name
              withInfo:(NSString *GAD_NULLABLE_TYPE)info;

/// Called when the interstitial receives an app event.
- (void)interstitial:(GADInterstitial *)interstitial
    didReceiveAppEvent:(NSString *)name
              withInfo:(NSString *GAD_NULLABLE_TYPE)info;

@end

GAD_ASSUME_NONNULL_END
