UNPKG

react-native-google-mobile-ads

Version:

React Native Google Mobile Ads is an easy way to monetize mobile apps with targeted, in-app advertising.

37 lines 1.15 kB
import type { TurboModule } from 'react-native'; import type { Double, Float, UnsafeObject, EventEmitter } from 'react-native/Libraries/Types/CodegenTypes'; export type NativeAdProps = { responseId: string; advertiser: string | null; body: string; callToAction: string; headline: string; price: string | null; store: string | null; starRating: Double | null; icon: NativeAdImage | null; images: Array<NativeAdImage> | null; mediaContent: NativeMediaContent; extras: UnsafeObject | null; }; export type NativeAdImage = { url: string; scale: Double; }; export type NativeMediaContent = { aspectRatio: Float; hasVideoContent: boolean; duration: Float; }; export type NativeAdEventPayload = { responseId: string; type: string; }; export interface Spec extends TurboModule { load(adUnitId: string, requestOptions: UnsafeObject): Promise<NativeAdProps>; destroy(responseId: string): void; readonly onAdEvent: EventEmitter<NativeAdEventPayload>; } declare const _default: Spec; export default _default; //# sourceMappingURL=NativeGoogleMobileAdsNativeModule.d.ts.map