YLHAdManager.h 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. //
  2. // YLHAdManager.h
  3. // XenonSDK
  4. //
  5. // Created by fq on 2021/4/28.
  6. // Copyright © 2021 SAGESSE. All rights reserved.
  7. //
  8. #import <Foundation/Foundation.h>
  9. #import <UIKit/UIKit.h>
  10. NS_ASSUME_NONNULL_BEGIN
  11. @interface YLHAdManager : NSObject
  12. + (instancetype)sharedInstance;
  13. //1.打开开屏广告
  14. -(void)openSplashAd:(NSString *)adName supportZoomoutView:(BOOL)flag callback:(void (^)(BOOL))callback;
  15. //2.打开模板2-插屏半屏广告
  16. -(void)openExpressInterstitialAd:(NSString *)adName callback:(void (^)(BOOL))callback;
  17. //3.打开模板2-插屏全屏广告
  18. -(void)openFullScreenVideoAd:(NSString *)adName callback:(void (^)(BOOL))callback;
  19. //4. 打开视频激励广告
  20. -(void)openExpressRewardedVideoAd:(NSString *)adName callback:(void (^)(BOOL,BOOL))callback;
  21. //5. 打开横幅广告
  22. -(void)openExpressBannerVideoAd:(NSString *)adName callback:(void (^)(BOOL))callback;
  23. //6. 打开原生广告
  24. -(void)openExpressNativeAdWithPlacementId:(NSString *)placementId AdName:(NSString *)adName Frame:(CGRect)rect callback:(void (^)(BOOL))callback;
  25. @end
  26. NS_ASSUME_NONNULL_END