2017-05-27 14:24:51 +00:00
|
|
|
#ifndef RNFirebaseAdMob_h
|
2017-05-30 09:22:48 +00:00
|
|
|
#define RNFirebaseAdMob_h
|
2017-05-27 14:24:51 +00:00
|
|
|
|
|
|
|
#import <React/RCTBridgeModule.h>
|
|
|
|
|
2017-06-05 16:00:59 +00:00
|
|
|
#if __has_include(<GoogleMobileAds/GADMobileAds.h>)
|
|
|
|
#import "Firebase.h"
|
|
|
|
#import "RNFirebaseEvents.h"
|
2017-06-16 14:22:35 +00:00
|
|
|
#import "React/RCTEventEmitter.h"
|
2017-06-05 16:00:59 +00:00
|
|
|
#import "GoogleMobileAds/GADInterstitialDelegate.h"
|
2017-06-07 13:19:06 +00:00
|
|
|
#import "GoogleMobileAds/GADRewardBasedVideoAdDelegate.h"
|
2017-06-05 16:00:59 +00:00
|
|
|
#import "GoogleMobileAds/GADAdDelegate.h"
|
|
|
|
|
2017-05-30 09:22:48 +00:00
|
|
|
|
2017-06-07 13:19:06 +00:00
|
|
|
@interface RNFirebaseAdMob : RCTEventEmitter <RCTBridgeModule>
|
2017-06-05 16:00:59 +00:00
|
|
|
@property NSMutableDictionary *interstitials;
|
2017-06-07 13:19:06 +00:00
|
|
|
@property NSMutableDictionary *rewardedVideos;
|
2017-06-07 11:37:32 +00:00
|
|
|
|
2017-06-16 14:22:35 +00:00
|
|
|
+ (GADRequest *)buildRequest:(NSDictionary *)request;
|
2017-06-16 16:40:05 +00:00
|
|
|
+ (GADVideoOptions *)buildVideoOptions:(NSDictionary *)options;
|
2017-06-16 14:22:35 +00:00
|
|
|
+ (NSDictionary *)errorCodeToDictionary:(NSError *)error;
|
|
|
|
+ (GADAdSize)stringToAdSize:(NSString *)value;
|
2017-06-05 16:00:59 +00:00
|
|
|
@end
|
2017-05-27 14:24:51 +00:00
|
|
|
|
2017-06-05 16:00:59 +00:00
|
|
|
#else
|
2017-06-20 12:22:09 +00:00
|
|
|
@interface RNFirebaseAdMob : NSObject {
|
2017-06-05 16:00:59 +00:00
|
|
|
}
|
2017-05-27 14:24:51 +00:00
|
|
|
@end
|
2017-06-05 16:00:59 +00:00
|
|
|
#endif
|
2017-05-27 14:24:51 +00:00
|
|
|
|
|
|
|
#endif
|