text: //
  //  YXInterstitialAdManager.h
  //  LunchAd
  //
  //  Created by shuai on 2018/10/25.
  //  Copyright © 2018年 YX. All rights reserved.
  //
  
  #import <Foundation/Foundation.h>
  #import <UIKit/UIKit.h>
  
  NS_ASSUME_NONNULL_BEGIN
  
  @protocol YXInterstitialAdManagerDelegate <NSObject>
  
  @optional
  
  /**
   加载成功的回调
   */
  - (void)didLoadInterstitialAd;
  
  /**
   取广告失败调用
   @param error 为错误信息
   */
  - (void)didFailedLoadInterstitialAd:(NSError *)error;
  
  /**
   广告点击后回调
   */
  - (void)didClickedInterstitialAd;
  
  @end
  
  @interface YXInterstitialAdManager : NSObject
  
  //  插屏定制尺寸,须与运营协商一致
  @property (nonatomic, assign) CGFloat s2sWidth;
  @property (nonatomic, assign) CGFloat s2sHeight;
  /*
   *  viewControllerForPresentingModalView
   *  详解：[必选]开发者需传入用来弹出目标页的ViewController，一般为当前ViewController
   */
  @property (nonatomic, weak) UIViewController *controller;
  
  @property (nonatomic,weak) id<YXInterstitialAdManagerDelegate> delegate;
  
  /**  媒体位Id  */
  @property (nonatomic,copy) NSString *mediaId;
  
  /**  开始加载广告  */
  - (void)loadInterstitialAd;
  
  @end
  
  NS_ASSUME_NONNULL_END
  