FqGameAd.h 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. //
  2. // FqGameAd.h
  3. // XenonSDK
  4. //
  5. // Created by fq on 2020/12/25.
  6. // Copyright © 2020 SAGESSE. All rights reserved.
  7. //
  8. #import <Foundation/Foundation.h>
  9. #import "AdBanner.h"
  10. #import "ISAdInner.h"
  11. #import "ISAdRewarded.h"
  12. #import "ISAdOfferWall.h"
  13. #import "AdmobNative.h"
  14. #import "ISAdBanner.h"
  15. #import <IronSource/IronSource.h>
  16. @interface FqGameAd : NSObject
  17. //A sington instance of FqGameAd
  18. +(instancetype)fqGameAD;
  19. //显示横幅广告
  20. -(void)showBanner:(NSString *)adId;
  21. //显示插页广告
  22. - (void)showInner:(NSString*)adId callback:(void(^)(int intValue))back;
  23. //显示视频激励广告
  24. - (void)showVideo:(NSString*)adId callback:(void(^)(int intValue))back;
  25. //打开原生广告
  26. -(void)showAdNative:(NSString *)adId x:(int)x y:(int)y w:(int)w h:(int)h;
  27. //广告是否准备好(根据广告位名称adName查找)
  28. -(BOOL)isAdReady:(NSString *)adName;
  29. //打开广告
  30. -(void)openAd:(NSString *)adName;
  31. ///
  32. //关闭横幅广告
  33. -(void)closeBanner:(NSString *)adId;
  34. //关闭原生广告
  35. -(void)closeNative;
  36. //关闭原生广告
  37. -(void)closeNative:(NSString *)adId;
  38. //刷新原生广告
  39. -(void)refreshNative;
  40. @end