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.

49 lines 1.34 kB
export declare enum AdEventType { /** * When an ad has loaded. At this point, the ad is ready to be shown to the user. * * #### Example * * ```js * import { AdEventType } from 'react-native-google-mobile-ads'; * * advert.addEventListener(AdEventType.LOADED, () => { * advert.show(); * }); * ``` */ LOADED = "loaded", /** * The ad has thrown an error. See the error parameter the listener callback for more information. * * #### Example * * ```js * import { AdEventType } from 'react-native-google-mobile-ads'; * * advert.addEventListener(AdEventType.ERROR, (error) => { * console.log('Ad error:', error); * }); * ``` */ ERROR = "error", /** * The ad opened and is currently visible to the user. This event is fired after the `show()` * method has been called. */ OPENED = "opened", /** * Called when ad generates revenue. * See: https://developers.google.com/admob/android/impression-level-ad-revenue */ PAID = "paid", /** * The user clicked the advert. */ CLICKED = "clicked", /** * The user closed the ad and has returned back to your application. */ CLOSED = "closed" } //# sourceMappingURL=AdEventType.d.ts.map