// // ALAdLoadDelegate.h // AppLovinSDK // // Created by Basil on 3/23/12. // Copyright © 2020 AppLovin Corporation. All rights reserved. // @class ALAd; @class ALAdService; NS_ASSUME_NONNULL_BEGIN /** * This protocol defines a listener for ad load events. */ @protocol ALAdLoadDelegate /** * The SDK invokes this method when an ad is loaded by the AdService. * * The SDK invokes this method on the main UI thread. * * @param adService AdService that loaded the ad. * @param ad Ad that was loaded. */ - (void)adService:(ALAdService *)adService didLoadAd:(ALAd *)ad; /** * The SDK invokes this method when an ad load fails. * * The SDK invokes this method on the main UI thread. * * @param adService AdService that failed to load an ad. * @param code An error code that corresponds to one of the constants defined in ALErrorCodes.h. */ - (void)adService:(ALAdService *)adService didFailToLoadAdWithError:(int)code; @end NS_ASSUME_NONNULL_END