GDTNativeExpressAdViewAdapterProtocol.h 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. //
  2. // GDTNativeExpressAdViewAdapterProtocol.h
  3. // GDTMobApp
  4. //
  5. // Created by rowanzhang on 2021/8/16.
  6. // Copyright © 2021 Tencent. All rights reserved.
  7. //
  8. #ifndef GDTNativeExpressAdViewAdapterProtocol_h
  9. #define GDTNativeExpressAdViewAdapterProtocol_h
  10. @class GDTNativeExpressAdView;
  11. @protocol GDTAdProtocol;
  12. @protocol GDTNativeExpressAdViewAdapterProtocol <GDTAdProtocol>
  13. @property (nonatomic, weak) GDTNativeExpressAdView *gdtExpressAdView;
  14. @property (nonatomic, assign, readonly) BOOL isReady;
  15. @property (nonatomic, assign, readonly) BOOL isVideoAd;
  16. @property (nonatomic, weak) UIViewController *controller;
  17. - (void)resize;
  18. - (BOOL)isAdValid;
  19. - (UIView *)adView;
  20. - (void)render;
  21. - (CGFloat)videoDuration;
  22. - (CGFloat)videoPlayTime;
  23. - (NSInteger)eCPM;
  24. - (NSString *)eCPMLevel;
  25. //发送竞胜结果
  26. - (void)sendWinNotification:(NSInteger)price;
  27. //发送竞败结果
  28. - (void)sendLossNotification:(NSInteger)price reason:(NSInteger)reason adnId:(NSString *)adnId;
  29. //设置实际结算价
  30. - (void)setBidECPM:(NSInteger)price;
  31. @end
  32. #endif /* GDTNativeExpressAdViewAdapterProtocol_h */