ALAdLoadDelegate.h 992 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. //
  2. // ALAdLoadDelegate.h
  3. // AppLovinSDK
  4. //
  5. // Created by Basil on 3/23/12.
  6. // Copyright © 2020 AppLovin Corporation. All rights reserved.
  7. //
  8. @class ALAd;
  9. @class ALAdService;
  10. NS_ASSUME_NONNULL_BEGIN
  11. /**
  12. * This protocol defines a listener for ad load events.
  13. */
  14. @protocol ALAdLoadDelegate <NSObject>
  15. /**
  16. * The SDK invokes this method when an ad is loaded by the AdService.
  17. *
  18. * The SDK invokes this method on the main UI thread.
  19. *
  20. * @param adService AdService that loaded the ad.
  21. * @param ad Ad that was loaded.
  22. */
  23. - (void)adService:(ALAdService *)adService didLoadAd:(ALAd *)ad;
  24. /**
  25. * The SDK invokes this method when an ad load fails.
  26. *
  27. * The SDK invokes this method on the main UI thread.
  28. *
  29. * @param adService AdService that failed to load an ad.
  30. * @param code An error code that corresponds to one of the constants defined in ALErrorCodes.h.
  31. */
  32. - (void)adService:(ALAdService *)adService didFailToLoadAdWithError:(int)code;
  33. @end
  34. NS_ASSUME_NONNULL_END