ALAd.h 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. //
  2. // ALAd.h
  3. // AppLovinSDK
  4. //
  5. // Copyright © 2020 AppLovin Corporation. All rights reserved.
  6. //
  7. @class ALAdSize;
  8. @class ALAdType;
  9. NS_ASSUME_NONNULL_BEGIN
  10. /**
  11. * Represents an ad that has been served from the AppLovin server.
  12. */
  13. @interface ALAd : NSObject <NSCopying>
  14. /**
  15. * The size category of this ad.
  16. */
  17. @property (nonatomic, strong, readonly) ALAdSize *size;
  18. /**
  19. * The type of this ad (regular or incentivized/rewarded).
  20. */
  21. @property (nonatomic, strong, readonly) ALAdType *type;
  22. /**
  23. * The zone ID for the ad, if any.
  24. */
  25. @property (nonatomic, copy, readonly, nullable) NSString *zoneIdentifier;
  26. - (instancetype)init NS_UNAVAILABLE;
  27. + (instancetype)new NS_UNAVAILABLE;
  28. @end
  29. @interface ALAd (ALDeprecated)
  30. @property (nonatomic, strong, readonly) NSNumber *adIdNumber __deprecated_msg("This API has been deprecated and will be removed in a future release.");
  31. @property (nonatomic, assign, readonly, getter=isVideoAd) BOOL videoAd __deprecated_msg("This API has been deprecated and will be removed in a future release.");
  32. - (nullable NSString *)adValueForKey:(NSString *)key __deprecated_msg("This API has been deprecated and will be removed in a future release.");
  33. - (nullable NSString *)adValueForKey:(NSString *)key defaultValue:(nullable NSString *)defaultValue __deprecated_msg("This API has been deprecated and will be removed in a future release.");
  34. @end
  35. NS_ASSUME_NONNULL_END