AdMob Plus Capacitor Plugin
npm install @admob-plus/capacitor
npx cap sync
You can find the documentation on the website.
configure(config: AdMobConfig) => Promise<void>
configRequest(requestConfig: RequestConfig) => Promise<void>
adCreate<O extends MobileAdOptions>(opts: O) => Promise<void>
adIsLoaded(opts: { id: number; }) => Promise<boolean>
Param |
Type |
opts |
{ id: number; } |
Returns: Promise<boolean>
adLoad(opts: { id: number; }) => Promise<void>
Param |
Type |
opts |
{ id: number; } |
adShow(opts: { id: number; }) => Promise<void>
Param |
Type |
opts |
{ id: number; } |
adHide(opts: { id: number; }) => Promise<void>
Param |
Type |
opts |
{ id: number; } |
trackingAuthorizationStatus()
trackingAuthorizationStatus() => Promise<{ status: TrackingAuthorizationStatus | false; }>
Returns: Promise<{ status: false | TrackingAuthorizationStatus; }>
requestTrackingAuthorization()
requestTrackingAuthorization() => Promise<{ status: TrackingAuthorizationStatus | false; }>
Returns: Promise<{ status: false | TrackingAuthorizationStatus; }>
addListener(eventName: string, listenerFunc: (event: any) => void) => Promise<PluginListenerHandle> & PluginListenerHandle
Param |
Type |
eventName |
string |
listenerFunc |
(event: any) => void |
Returns: Promise<PluginListenerHandle> & PluginListenerHandle
Prop |
Type |
remove |
() => Promise<void> |
{
appMuted?: boolean
appVolume?: number
}
{
maxAdContentRating?: MaxAdContentRating
sameAppKey?: boolean
tagForChildDirectedTreatment?: boolean | null
tagForUnderAgeOfConsent?: boolean | null
testDeviceIds?: string[]
}
{ adUnitId: string }
Members |
Value |
G |
'G' |
MA |
'MA' |
PG |
'PG' |
T |
'T' |
UNSPECIFIED |
'' |
TrackingAuthorizationStatus
Members |
Value |
notDetermined |
0 |
restricted |
1 |
denied |
2 |
authorized |
3 |