UNPKG

@nativescript/google-mobile-ads

Version:
92 lines 3.56 kB
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; import { CSSType, Property, View } from '@nativescript/core'; export class BannerAdSizeBase { static get BANNER() { throw new Error('unimplemented'); } static get FULL_BANNER() { throw new Error('unimplemented'); } static get LARGE_BANNER() { throw new Error('unimplemented'); } static get LEADERBOARD() { throw new Error('unimplemented'); } static get MEDIUM_RECTANGLE() { throw new Error('unimplemented'); } static get SMART_BANNER() { throw new Error('unimplemented'); } static get ADAPTIVE_BANNER() { throw new Error('unimplemented'); } static get FLUID() { throw new Error('unimplemented'); } static get WIDE_SKYSCRAPER() { throw new Error('unimplemented'); } static get INVALID() { throw new Error('unimplemented'); } static get SEARCH() { throw new Error('unimplemented'); } } export const sizeProperty = new Property({ name: 'size', }); export const unitIdProperty = new Property({ name: 'unitId', }); let BannerAdBase = class BannerAdBase extends View { }; BannerAdBase.onAdClickedEvent = 'adClicked'; BannerAdBase.onAdClosedEvent = 'adClosed'; BannerAdBase.onAdFailedToLoadEvent = 'adFailedToLoad'; BannerAdBase.onAdLoadedEvent = 'adLoaded'; BannerAdBase.onAdOpenedEvent = 'adOpened'; BannerAdBase.onAdImpression = 'adImpression'; BannerAdBase.onAdFailedToShowFullScreenContent = 'adFailedToShowFullScreenContent'; BannerAdBase = __decorate([ CSSType('BannerAd') ], BannerAdBase); export { BannerAdBase }; sizeProperty.register(BannerAdBase); unitIdProperty.register(BannerAdBase); export var MaxAdContentRating; (function (MaxAdContentRating) { MaxAdContentRating["G"] = "G"; MaxAdContentRating["MA"] = "MA"; MaxAdContentRating["PG"] = "PG"; MaxAdContentRating["T"] = "T"; MaxAdContentRating["UNSPECIFIED"] = "UNSPECIFIED"; })(MaxAdContentRating || (MaxAdContentRating = {})); export var AdEventType; (function (AdEventType) { AdEventType["CLICKED"] = "adClicked"; AdEventType["CLOSED"] = "adClosed"; AdEventType["LOADED"] = "adLoaded"; AdEventType["OPENED"] = "adOpened"; AdEventType["IMPRESSION"] = "adImpression"; AdEventType["FAILED_TO_SHOW_FULL_SCREEN_CONTENT"] = "adFailedToShowFullScreenContent"; AdEventType["FAILED_TO_LOAD_EVENT"] = "adFailedToLoad"; })(AdEventType || (AdEventType = {})); export var RewardedAdEventType; (function (RewardedAdEventType) { RewardedAdEventType["EARNED_REWARD"] = "rewarded_earned_reward"; RewardedAdEventType["LOADED"] = "rewarded_loaded"; })(RewardedAdEventType || (RewardedAdEventType = {})); export var AdapterStatusState; (function (AdapterStatusState) { AdapterStatusState[AdapterStatusState["NOT_READY"] = 0] = "NOT_READY"; AdapterStatusState[AdapterStatusState["READY"] = 1] = "READY"; })(AdapterStatusState || (AdapterStatusState = {})); //# sourceMappingURL=common.js.map