GMAdManager.h 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. //
  2. // GMAdManager.h
  3. // Moriss
  4. //
  5. // Created by Mgs on 2020/8/22.
  6. //
  7. #import <Foundation/Foundation.h>
  8. #import "FqIronsourceVideo.h"
  9. #import "FqIronsourceOfferWall.h"
  10. #import "FqIronsourceInterstitial.h"
  11. #import "FqIronsourceBanner.h"
  12. #import "FqAdmobNativeAd.h"
  13. #import "FqAdmobNativeBanner.h"
  14. NS_ASSUME_NONNULL_BEGIN
  15. @interface GMAdManager : NSObject
  16. @property(nonatomic,strong)FqIronsourceVideo *rewardVideoAd;
  17. @property(nonatomic,strong)FqIronsourceOfferWall *offerWallVideoAd;
  18. @property(nonatomic,strong)FqIronsourceInterstitial *interstitialAd;
  19. @property(nonatomic,strong)FqIronsourceBanner *isBannerAd;
  20. @property(nonatomic,strong)FqAdmobNativeAd *admobNativeAd;
  21. @property(nonatomic,strong)FqAdmobNativeBanner *admobBannerAd;
  22. + (instancetype)sharedInstance;
  23. /// 打开Banner广告(Google Mob平台)
  24. -(void)openAd:(NSString *)adName;
  25. /// 打开Banner广告(ironSource平台)
  26. -(void)openIronSourceAd:(NSString *)adName;
  27. /// 打开Native广告
  28. -(void)openNativeAdTop:(int)top left:(int)left bottom:(int)bottom right:(int)right;
  29. /// 关闭Banner广告
  30. -(void)closeAd:(NSString *)adName;
  31. /// 打开视频激励广告
  32. -(void)openVideoAd:(NSString *)adName callback:(void (^)(BOOL))callback;
  33. /// 打开积分墙广告
  34. -(void)openofferWallAd:(NSString *)adName callback:(void (^)(BOOL))callback;
  35. /// 打开插屏广告
  36. -(void)openinterstitialAd:(NSString *)adName callback:(void (^)(BOOL))callback;
  37. @end
  38. NS_ASSUME_NONNULL_END