MLAdManager.h 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. //
  2. // MLAdManager.h
  3. // XenonSDK
  4. //
  5. // Created by fq on 2021/4/21.
  6. // Copyright © 2021 SAGESSE. All rights reserved.
  7. //
  8. #import <Foundation/Foundation.h>
  9. #import <BUAdSDK/BUAdSDK.h>
  10. NS_ASSUME_NONNULL_BEGIN
  11. @interface MLAdManager : NSObject
  12. + (instancetype)sharedInstance;
  13. //1. 打开开屏广告
  14. -(void)openSplashAd:(NSString *)adName callback:(void (^)(BOOL))callback;
  15. //2. 打开全屏视频广告
  16. -(void)openFullScreenVideoAd:(NSString *)adName callback:(void (^)(BOOL))callback;
  17. //3.2打开新插屏广告
  18. -(void)openNewInterstitialAd:(NSString *)adName callback:(void (^)(BOOL))callback;
  19. //3.1打开旧插屏广告
  20. -(void)openExpressInterstitialAd:(NSString *)adName Width:(CGFloat)w Height:(CGFloat)h callback:(void (^)(BOOL))callback;
  21. //4. 打开视频激励广告
  22. -(void)openExpressRewardedVideoAd:(NSString *)adName callback:(void (^)(BOOL,BOOL))callback;
  23. //5.打开横幅广告
  24. -(void)openNativeExpressBannerAd:(NSString *)adName WithX:(CGFloat)x Y:(CGFloat)y Width:(CGFloat)w Height:(CGFloat)h callback:(void (^)(BOOL))callback;
  25. //5.2 关闭Banner广告
  26. -(void)closeBannerAd:(NSString *)adName;
  27. //6.打开banner广告
  28. -(void)openNativeAd:(NSString *)adName WidthCGRect:(CGRect)rect BUSize:(NSInteger)size callback:(void (^)(BOOL))callback;
  29. @end
  30. NS_ASSUME_NONNULL_END