GADMediatedNativeAdNotificationSource.h 1.3 KB

12345678910111213141516171819202122232425262728293031
  1. //
  2. // GADMediatedNativeAdNotificationSource.h
  3. // Google Mobile Ads SDK
  4. //
  5. // Copyright 2015 Google Inc. All rights reserved.
  6. //
  7. #import <Foundation/Foundation.h>
  8. #import "GADMediatedNativeAd.h"
  9. /// Notifies the Google Mobile Ads SDK about the events performed by adapters. Adapters may perform
  10. /// some action (e.g. opening an in app browser or open the iTunes store) when handling callbacks
  11. /// from GADMediatedNativeAdDelegate. Adapters in such case should notify the Google Mobile Ads SDK
  12. /// by calling the relevant methods from this class.
  13. @interface GADMediatedNativeAdNotificationSource : NSObject
  14. /// Must be called by the adapter just before mediatedNativeAd has opened an in app modal screen.
  15. + (void)mediatedNativeAdWillPresentScreen:(id<GADMediatedNativeAd>)mediatedNativeAd;
  16. /// Must be called by the adapter just before the in app modal screen opened by mediatedNativeAd is
  17. /// dismissed.
  18. + (void)mediatedNativeAdWillDismissScreen:(id<GADMediatedNativeAd>)mediatedNativeAd;
  19. /// Must be called by the adapter after the in app modal screen opened by mediatedNativeAd is
  20. /// dismissed.
  21. + (void)mediatedNativeAdDidDismissScreen:(id<GADMediatedNativeAd>)mediatedNativeAd;
  22. /// Must be called by the adapter just before mediatedNativeAd has left the application.
  23. + (void)mediatedNativeAdWillLeaveApplication:(id<GADMediatedNativeAd>)mediatedNativeAd;
  24. @end