MAInterstitialAdapterDelegate.h 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. //
  2. // MAInterstitialAdapterDelegate.h
  3. // AppLovinSDK
  4. //
  5. // Created by Thomas So on 8/10/18.
  6. // Copyright © 2019 AppLovin Corporation. All rights reserved.
  7. //
  8. #import <AppLovinSDK/MAAdapterDelegate.h>
  9. @class MAAdapterError;
  10. NS_ASSUME_NONNULL_BEGIN
  11. /**
  12. * Protocol for adapters to forward ad load and display events to the MAX SDK for interstitial ads.
  13. */
  14. @protocol MAInterstitialAdapterDelegate <MAAdapterDelegate>
  15. /**
  16. * This method should called when an ad has been loaded.
  17. */
  18. - (void)didLoadInterstitialAd;
  19. /**
  20. * This method should called when an ad has been loaded.
  21. *
  22. * @param extraInfo Extra info passed from the adapter.
  23. */
  24. - (void)didLoadInterstitialAdWithExtraInfo:(nullable NSDictionary<NSString *, id> *)extraInfo;
  25. /**
  26. * This method should be called when an ad could not be loaded.
  27. *
  28. * @param adapterError An error object that indicates the cause of ad failure.
  29. */
  30. - (void)didFailToLoadInterstitialAdWithError:(MAAdapterError *)adapterError;
  31. /**
  32. * This method should be called when the adapter has successfully displayed an ad to the user.
  33. */
  34. - (void)didDisplayInterstitialAd;
  35. /**
  36. * This method should be called when the adapter has successfully displayed an ad to the user.
  37. *
  38. * @param extraInfo Extra info passed from the adapter.
  39. */
  40. - (void)didDisplayInterstitialAdWithExtraInfo:(nullable NSDictionary<NSString *, id> *)extraInfo;
  41. /**
  42. * This method should be called when the user has clicked adapter's ad.
  43. */
  44. - (void)didClickInterstitialAd;
  45. /**
  46. * This method should be called when the user has clicked adapter's ad.
  47. *
  48. * @param extraInfo Extra info passed from the adapter.
  49. */
  50. - (void)didClickInterstitialAdWithExtraInfo:(nullable NSDictionary<NSString *, id> *)extraInfo;
  51. /**
  52. * This method should be called when adapter's ad has been dismissed.
  53. */
  54. - (void)didHideInterstitialAd;
  55. /**
  56. * This method should be called when adapter's ad has been dismissed.
  57. *
  58. * @param extraInfo Extra info passed from the adapter.
  59. */
  60. - (void)didHideInterstitialAdWithExtraInfo:(nullable NSDictionary<NSString *, id> *)extraInfo;
  61. /**
  62. * This method is should be called when an ad could not be displayed.
  63. *
  64. * @param adapterError An error object that indicates the cause of the failure.
  65. */
  66. - (void)didFailToDisplayInterstitialAdWithError:(MAAdapterError *)adapterError;
  67. /**
  68. * This method is should be called when an ad could not be displayed.
  69. *
  70. * @param adapterError An error object that indicates the cause of the failure.
  71. * @param extraInfo Extra info passed from the adapter.
  72. */
  73. - (void)didFailToDisplayInterstitialAdWithError:(MAAdapterError *)adapterError extraInfo:(nullable NSDictionary<NSString *, id> *)extraInfo;
  74. @end
  75. NS_ASSUME_NONNULL_END