123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- //
- // MLAdManager.h
- // XenonSDK
- //
- // Created by fq on 2021/4/21.
- // Copyright © 2021 SAGESSE. All rights reserved.
- //
- #import <Foundation/Foundation.h>
- #import <BUAdSDK/BUAdSDK.h>
- NS_ASSUME_NONNULL_BEGIN
- @interface MLAdManager : NSObject
- + (instancetype)sharedInstance;
- //1. 打开开屏广告
- -(void)openSplashAd:(NSString *)adName callback:(void (^)(BOOL))callback;
- //2. 打开全屏视频广告
- -(void)openFullScreenVideoAd:(NSString *)adName callback:(void (^)(BOOL))callback;
- //3.2打开新插屏广告
- -(void)openNewInterstitialAd:(NSString *)adName callback:(void (^)(BOOL))callback;
- //3.1打开旧插屏广告
- -(void)openExpressInterstitialAd:(NSString *)adName Width:(CGFloat)w Height:(CGFloat)h callback:(void (^)(BOOL))callback;
- //4. 打开视频激励广告
- -(void)openExpressRewardedVideoAd:(NSString *)adName callback:(void (^)(BOOL,BOOL))callback;
- //5.打开横幅广告
- -(void)openNativeExpressBannerAd:(NSString *)adName WithX:(CGFloat)x Y:(CGFloat)y Width:(CGFloat)w Height:(CGFloat)h callback:(void (^)(BOOL))callback;
- //5.2 关闭Banner广告
- -(void)closeBannerAd:(NSString *)adName;
- //6.打开banner广告
- -(void)openNativeAd:(NSString *)adName WidthCGRect:(CGRect)rect BUSize:(NSInteger)size callback:(void (^)(BOOL))callback;
- @end
- NS_ASSUME_NONNULL_END
|