@admob-plus/capacitor

AdMob Plus Capacitor Plugin

Usage no npm install needed!

<script type="module">
  import admobPlusCapacitor from 'https://cdn.skypack.dev/@admob-plus/capacitor';
</script>

README

NPM version GitHub last commit Dependency status Vulnerabilities NPM license

@admob-plus/capacitor

AdMob Plus Capacitor Plugin

Install

npm install @admob-plus/capacitor
npx cap sync

API

start()

start() => any

Returns: any


configure(...)

configure(config: AdMobConfig) => any
Param Type
config AdMobConfig

Returns: any


configRequest(...)

configRequest(requestConfig: RequestConfig) => any
Param Type
requestConfig RequestConfig

Returns: any


adCreate(...)

adCreate<O extends MobileAdOptions>(opts: O) => any
Param Type
opts O

Returns: any


adIsLoaded(...)

adIsLoaded(opts: { id: number; }) => any
Param Type
opts { id: number; }

Returns: any


adLoad(...)

adLoad(opts: { id: number; }) => any
Param Type
opts { id: number; }

Returns: any


adShow(...)

adShow(opts: { id: number; }) => any
Param Type
opts { id: number; }

Returns: any


adHide(...)

adHide(opts: { id: number; }) => any
Param Type
opts { id: number; }

Returns: any


trackingAuthorizationStatus()

trackingAuthorizationStatus() => any

Returns: any


requestTrackingAuthorization()

requestTrackingAuthorization() => any

Returns: any


addListener(string, ...)

addListener(eventName: string, listenerFunc: (event: any) => void) => Promise<PluginListenerHandle> & PluginListenerHandle
Param Type
eventName string
listenerFunc (event: any) => void

Returns: any


Interfaces

PluginListenerHandle

Prop Type
remove () => any

Type Aliases

AdMobConfig

{ appMuted?: boolean appVolume?: number }

RequestConfig

{ maxAdContentRating?: MaxAdContentRating tagForChildDirectedTreatment?: boolean | null tagForUnderAgeOfConsent?: boolean | null testDeviceIds?: string[] }

MobileAdOptions

{ adUnitId: string }

Enums

MaxAdContentRating

Members Value
G 'G'
MA 'MA'
PG 'PG'
T 'T'
UNSPECIFIED ''

TrackingAuthorizationStatus

Members Value
notDetermined 0
restricted 1
denied 2
authorized 3