react-native-firebase/ios/RNFirebase/admob/RNFirebaseAdMob.h

32 lines
832 B
Objective-C

#ifndef RNFirebaseAdMob_h
#define RNFirebaseAdMob_h
#import <React/RCTBridgeModule.h>
#if __has_include(<GoogleMobileAds/GADMobileAds.h>)
#import "Firebase.h"
#import "RNFirebaseEvents.h"
#import "React/RCTEventEmitter.h"
#import "GoogleMobileAds/GADInterstitialDelegate.h"
#import "GoogleMobileAds/GADRewardBasedVideoAdDelegate.h"
#import "GoogleMobileAds/GADAdDelegate.h"
@interface RNFirebaseAdMob : RCTEventEmitter <RCTBridgeModule>
@property NSMutableDictionary *interstitials;
@property NSMutableDictionary *rewardedVideos;
+ (GADRequest *)buildRequest:(NSDictionary *)request;
+ (GADVideoOptions *)buildVideoOptions:(NSDictionary *)options;
+ (NSDictionary *)errorCodeToDictionary:(NSError *)error;
+ (GADAdSize)stringToAdSize:(NSString *)value;
@end
#else
@interface RNFirebaseAdMob : NSObject {
}
@end
#endif
#endif