// // MAAppOpenAdapterDelegate.h // AppLovinSDK // // Created by Andrew Tian on 7/26/22. // #import @class MAAdapterError; NS_ASSUME_NONNULL_BEGIN /** * Protocol for adapters to forward ad load and display events to the MAX SDK for app open ads. */ @protocol MAAppOpenAdapterDelegate /** * This method should called when an ad has been loaded. */ - (void)didLoadAppOpenAd; /** * This method should called when an ad has been loaded. * * @param extraInfo Extra info passed from the adapter. */ - (void)didLoadAppOpenAdWithExtraInfo:(nullable NSDictionary *)extraInfo; /** * This method should be called when an ad could not be loaded. * * @param adapterError An error object that indicates the cause of ad failure. */ - (void)didFailToLoadAppOpenAdWithError:(MAAdapterError *)adapterError; /** * This method should be called when the adapter has successfully displayed an ad to the user. */ - (void)didDisplayAppOpenAd; /** * This method should be called when the adapter has successfully displayed an ad to the user. * * @param extraInfo Extra info passed from the adapter. */ - (void)didDisplayAppOpenAdWithExtraInfo:(nullable NSDictionary *)extraInfo; /** * This method should be called when the user has clicked adapter's ad. */ - (void)didClickAppOpenAd; /** * This method should be called when the user has clicked adapter's ad. * * @param extraInfo Extra info passed from the adapter. */ - (void)didClickAppOpenAdWithExtraInfo:(nullable NSDictionary *)extraInfo; /** * This method should be called when adapter's ad has been dismissed. */ - (void)didHideAppOpenAd; /** * This method should be called when adapter's ad has been dismissed. * * @param extraInfo Extra info passed from the adapter. */ - (void)didHideAppOpenAdWithExtraInfo:(nullable NSDictionary *)extraInfo; /** * This method should be called when an ad could not be displayed. * * @param adapterError An error object that indicates the cause of the failure. */ - (void)didFailToDisplayAppOpenAdWithError:(MAAdapterError *)adapterError; /** * This method should be called when an ad could not be displayed. * * @param adapterError An error object that indicates the cause of the failure. * @param extraInfo Extra info passed from the adapter. */ - (void)didFailToDisplayAppOpenAdWithError:(MAAdapterError *)adapterError extraInfo:(nullable NSDictionary *)extraInfo; @end NS_ASSUME_NONNULL_END