GADMediatedNativeAdDelegate.h 1.1 KB

1234567891011121314151617181920212223242526272829303132
  1. //
  2. // GADMediatedNativeAdDelegate.h
  3. // Google Mobile Ads SDK
  4. //
  5. // Copyright 2015 Google Inc. All rights reserved.
  6. //
  7. #import <Foundation/Foundation.h>
  8. #import <UIKit/UIKit.h>
  9. @protocol GADMediatedNativeAd;
  10. /// GADMediatedNativeAdDelegate objects handle mediated native ad events.
  11. @protocol GADMediatedNativeAdDelegate<NSObject>
  12. @optional
  13. /// Tells the delegate that the mediated native ad has rendered in |view|.
  14. - (void)mediatedNativeAd:(id<GADMediatedNativeAd>)mediatedNativeAd didRenderInView:(UIView *)view;
  15. /// Tells the delegate that the mediated native ad has recorded an impression. This method is called
  16. /// only once per mediated native ad.
  17. - (void)mediatedNativeAdDidRecordImpression:(id<GADMediatedNativeAd>)mediatedNativeAd;
  18. /// Tells the delegate that the mediated native ad has recorded a user click on the asset named
  19. /// |assetName|. Full screen actions should be presented from |viewController|.
  20. - (void)mediatedNativeAd:(id<GADMediatedNativeAd>)mediatedNativeAd
  21. didRecordClickOnAssetWithName:(NSString *)assetName
  22. view:(UIView *)view
  23. viewController:(UIViewController *)viewController;
  24. @end