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.

72 lines (71 loc) 2.15 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.AdEventType = void 0; /* * Copyright (c) 2016-present Invertase Limited & Contributors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this library except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * */ let AdEventType = exports.AdEventType = /*#__PURE__*/function (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(); * }); * ``` */ AdEventType["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); * }); * ``` */ AdEventType["ERROR"] = "error"; /** * The ad opened and is currently visible to the user. This event is fired after the `show()` * method has been called. */ AdEventType["OPENED"] = "opened"; /** * Called when ad generates revenue. * See: https://developers.google.com/admob/android/impression-level-ad-revenue */ AdEventType["PAID"] = "paid"; /** * The user clicked the advert. */ AdEventType["CLICKED"] = "clicked"; /** * The user closed the ad and has returned back to your application. */ AdEventType["CLOSED"] = "closed"; return AdEventType; }({}); //# sourceMappingURL=AdEventType.js.map