123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236 |
- #import <Foundation/Foundation.h>
- #import "GDTSDKDefines.h"
- NS_ASSUME_NONNULL_BEGIN
- @class GDTUnifiedInterstitialAd;
- @protocol GDTUnifiedInterstitialAdDelegate <NSObject>
- @optional
- - (void)unifiedInterstitialSuccessToLoadAd:(GDTUnifiedInterstitialAd *)unifiedInterstitial;
- - (void)unifiedInterstitialFailToLoadAd:(GDTUnifiedInterstitialAd *)unifiedInterstitial error:(NSError *)error;
- - (void)unifiedInterstitialWillPresentScreen:(GDTUnifiedInterstitialAd *)unifiedInterstitial;
- - (void)unifiedInterstitialDidPresentScreen:(GDTUnifiedInterstitialAd *)unifiedInterstitial;
- - (void)unifiedInterstitialFailToPresent:(GDTUnifiedInterstitialAd *)unifiedInterstitial error:(NSError *)error;
- - (void)unifiedInterstitialDidDismissScreen:(GDTUnifiedInterstitialAd *)unifiedInterstitial;
- - (void)unifiedInterstitialWillLeaveApplication:(GDTUnifiedInterstitialAd *)unifiedInterstitial;
- - (void)unifiedInterstitialWillExposure:(GDTUnifiedInterstitialAd *)unifiedInterstitial;
- - (void)unifiedInterstitialClicked:(GDTUnifiedInterstitialAd *)unifiedInterstitial;
- - (void)unifiedInterstitialAdWillPresentFullScreenModal:(GDTUnifiedInterstitialAd *)unifiedInterstitial;
- - (void)unifiedInterstitialAdDidPresentFullScreenModal:(GDTUnifiedInterstitialAd *)unifiedInterstitial;
- - (void)unifiedInterstitialAdWillDismissFullScreenModal:(GDTUnifiedInterstitialAd *)unifiedInterstitial;
- - (void)unifiedInterstitialAdDidDismissFullScreenModal:(GDTUnifiedInterstitialAd *)unifiedInterstitial;
- - (void)unifiedInterstitialAd:(GDTUnifiedInterstitialAd *)unifiedInterstitial playerStatusChanged:(GDTMediaPlayerStatus)status;
- - (void)unifiedInterstitialAdViewWillPresentVideoVC:(GDTUnifiedInterstitialAd *)unifiedInterstitial;
- - (void)unifiedInterstitialAdViewDidPresentVideoVC:(GDTUnifiedInterstitialAd *)unifiedInterstitial;
- - (void)unifiedInterstitialAdViewWillDismissVideoVC:(GDTUnifiedInterstitialAd *)unifiedInterstitial;
- - (void)unifiedInterstitialAdViewDidDismissVideoVC:(GDTUnifiedInterstitialAd *)unifiedInterstitial;
- @end
- @interface GDTUnifiedInterstitialAd : NSObject
- @property (nonatomic, readonly) BOOL isAdValid;
- @property (nonatomic, weak) id<GDTUnifiedInterstitialAdDelegate> delegate;
- @property (nonatomic, readonly) NSString *placementId;
- - (instancetype)initWithPlacementId:(NSString *)placementId;
- - (instancetype)initWithAppId:(NSString *)appId placementId:(NSString *)placementId GDT_DEPRECATED_MSG_ATTRIBUTE("接口即将废弃,请使用 initWithPlacementId:");
- - (void)loadAd;
- - (void)loadFullScreenAd;
- - (void)presentAdFromRootViewController:(UIViewController *)rootViewController;
- - (void)presentFullScreenAdFromRootViewController:(UIViewController *)rootViewController;
- - (NSInteger)eCPM;
- - (NSString *)eCPMLevel;
- @property (nonatomic, assign) BOOL videoAutoPlayOnWWAN;
- @property (nonatomic, assign) BOOL videoMuted;
- @property (nonatomic, assign) BOOL detailPageVideoMuted;
- @property (nonatomic) NSInteger minVideoDuration;
- @property (nonatomic) NSInteger maxVideoDuration;
- @property (nonatomic, assign, readonly) BOOL isVideoAd;
- - (CGFloat)videoDuration;
- - (CGFloat)videoPlayTime;
- - (NSString *)adNetworkName;
- @end
- NS_ASSUME_NONNULL_END
|