expo-ads-admob
Version:
Provides support for the Google AdMob SDK (https://www.google.com/admob/) for mobile advertising. This module is largely based of the react-native-admob (https://github.com/sbugert/react-native-admob) module, as the documentation and questions surrounding
21 lines (20 loc) • 965 B
TypeScript
declare type EventNameType = 'interstitialDidLoad' | 'interstitialDidFailToLoad' | 'interstitialDidOpen' | 'interstitialDidClose' | 'interstitialWillLeaveApplication';
declare type EventListener = (...args: any[]) => void;
declare const _default: {
setAdUnitID(id: string): Promise<void>;
/** @deprecated Test device IDs are now set globally. Use `AdMob.setTestDeviceIDAsync` instead. */
setTestDeviceID(id: string): Promise<void>;
requestAdAsync(options?: {
servePersonalizedAds?: boolean | undefined;
additionalRequestParams?: {
[key: string]: string;
} | undefined;
}): Promise<void>;
showAdAsync(): Promise<void>;
dismissAdAsync(): Promise<void>;
getIsReadyAsync(): Promise<boolean>;
addEventListener(type: EventNameType, handler: EventListener): void;
removeEventListener(type: EventNameType, handler: EventListener): void;
removeAllListeners(): void;
};
export default _default;