GDTNativeExpressProAdManager.h 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. //
  2. // GDTNativeExpressProAdManager.h
  3. // GDTMobApp
  4. //
  5. // Created by royqpwang on 2020/4/28.
  6. // Copyright © 2020 Tencent. All rights reserved.
  7. //
  8. #import <Foundation/Foundation.h>
  9. #import "GDTAdParams.h"
  10. NS_ASSUME_NONNULL_BEGIN
  11. @class GDTNativeExpressProAdManager;
  12. @class GDTNativeExpressProAdView;
  13. @protocol GDTNativeExpressProAdManagerDelegate <NSObject>
  14. @optional
  15. /**
  16. * 拉取原生模板2.0广告成功
  17. */
  18. - (void)gdt_nativeExpressProAdSuccessToLoad:(GDTNativeExpressProAdManager *)adManager views:(NSArray<__kindof GDTNativeExpressProAdView *> *)views;
  19. /**
  20. * 拉取原生模板2.0广告失败
  21. */
  22. - (void)gdt_nativeExpressProAdFailToLoad:(GDTNativeExpressProAdManager *)adManager error:(NSError *)error;
  23. @end
  24. @interface GDTNativeExpressProAdManager : NSObject
  25. /**
  26. * 委托对象
  27. */
  28. @property (nonatomic, weak) id<GDTNativeExpressProAdManagerDelegate> delegate;
  29. @property (nonatomic, readonly) NSString *placementId;
  30. @property (nonatomic, strong, readonly) GDTAdParams *adParams;
  31. /**
  32. * 构造方法
  33. * 详解:placementId - 广告位 ID
  34. * adSize - 广告参数
  35. */
  36. - (instancetype)initWithPlacementId:(NSString *)placementId adPrams:(GDTAdParams *)adParams;
  37. - (void)loadAd:(NSInteger)count;
  38. @end
  39. NS_ASSUME_NONNULL_END