Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

@capacitor-community/admob

Latest version: v8.5.1

Overview

Last scanned
28 Nov 2026
Published
28 Nov 2026
npm package Publisher: alexgerardojacinto, arielhernandezmusa, bazuka5801, boosten, brownoxford, byrds, capacitor-plugin-bot, capcombot, ckgaparajita, dallasjames, damiantarnawsky, danielprrazevedo, diachedelic, dwieeb, elylucas, epicshaggy, eric-ionic, giodimiliaionic, harvdoggy, hemang, ihadeed, ionicjs, it_mike_s, jcesarmobile, jeepq, johnborges, jpender, maxlynch, mhartington, mrbatista, multishiv19, ndr, nhyatt, nkalupahana, nklayman, nuno.azevedo-outsystems, os-pedrobilro, os-ruialves, pbowyer, peitschie, pwespi, rdlabo, robingenz, rui.mendes, ryaa, start9keagan, stewan, tafelnl, thegnuu, tobyas, trevorlambert, vmfo
305 Stars
100 Forks
42 Versions
581.8K Downloads
Java Repo language

Scan summary

@capacitor-community/admob was last scanned on 28 Nov 2026 at version 8.5.1. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 42 versions; the latest 5 were published within 2 days (27 and 28 Nov 2026).
  • Findings: No rules fired in version 8.5.1.
  • Downloads: 581,807 downloads.

Versions

42 versions published
Versions and the rules that fired in each
VersionPublishedStatus
8.5.1 LATEST 28 Nov 2026 No rules fired
8.5.0-beta.pr450.sha17a4eaffac3c 27 Nov 2026 No rules fired
8.5.0 27 Nov 2026 No rules fired
8.4.2-beta.pr518.sha11e06135e8e3 27 Nov 2026 Not shown
8.4.2-beta.pr517.shad8c4fc617787 27 Nov 2026 Not shown

No rules fired in 8.5.1

Findings

Findings for v8.5.1. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

The score describes 8.5.1; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

Maintainers

Maintainer GitHub Social Website
Masahiko Sakakibara rdlabo @rdlabo rdlabo.dev
Saninn Salas Diaz Saninn Salas Diaz @SaninnSalas —

Maintenance Status: Actively Maintained

Contributors ✨

Made with contributors-img.

Demo

Demo code is here.

Screenshots
iOS
Banner Interstitial Reward
App Open Native Ads
Android
Banner Interstitial Reward
App Open Native Ads

Overview

Capacitor community plugin for native AdMob. This plugin wraps the Google Mobile Ads SDK for iOS and Android so you can display banner, interstitial, rewarded, rewarded interstitial, and app open ads in Capacitor apps. It also covers Google User Messaging Platform (UMP) consent and App Tracking Transparency helpers on iOS.

Installation

This plugin already ships Google Mobile Ads SDK. Install the package, then add your AdMob application ID in AndroidManifest / Info.plist. Google's Get started guides for Android and iOS explain app IDs and SKAdNetwork identifiers (Apple's ad conversion IDs); do not add a second Mobile Ads dependency.

This plugin targets @capacitor-community/admob v8.2.0 and Capacitor 8.5 or later (within v8). It supports iOS 15 or later and Android API 24 or later.

npm install @capacitor-community/admob
npx cap sync

If you still use Capacitor 7, install @capacitor-community/admob@7.

Google Mobile Ads SDK versions

This major version pins Google Mobile Ads SDK 25.4.x on Android and 13.11.0 on iOS (Swift Package Manager and CocoaPods). Leave those versions unless you have a specific need. Google's Next-Gen SDK for Android waits until the next plugin major. See Migration for the policy behind the pins.

Android configuration

In android/app/src/main/AndroidManifest.xml, add the following under <application>:

<meta-data
  android:name="com.google.android.gms.ads.APPLICATION_ID"
  android:value="@string/admob_app_id" />

In android/app/src/main/res/values/strings.xml:

<string name="admob_app_id">[APP_ID]</string>

Replace [APP_ID] with your AdMob application ID, not an ad unit ID.

Variables

You can leave these unset. Override them in your app's variables.gradle only when you need a specific artifact version:

Variable Artifact Default
playServicesAdsVersion com.google.android.gms:play-services-ads 25.4.+
userMessagingPlatformVersion com.google.android.ump:user-messaging-platform 4.0.0
androidxCoreKTXVersion androidx.core:core-ktx 1.15.0
iOS configuration

Add the following inside the outermost <dict> in ios/App/App/Info.plist:

<key>GADIsAdManagerApp</key>
<true/>
<key>GADApplicationIdentifier</key>
<string>[APP_ID]</string>
<key>SKAdNetworkItems</key>
<array>
  <dict>
    <key>SKAdNetworkIdentifier</key>
    <string>cstr6suwn9.skadnetwork</string>
  </dict>
</array>
<key>NSUserTrackingUsageDescription</key>
<string>This identifier will be used to deliver personalized ads to you.</string>

Replace [APP_ID] with your AdMob application ID, and describe your actual tracking use in NSUserTrackingUsageDescription.

The SKAdNetworkItems snippet includes Google's own identifier. Add the other IDs from Google's iOS setup guide.

Troubleshooting

If CocoaPods cannot resolve Google-Mobile-Ads-SDK:

[error] Error running update: Analyzing dependencies
[!] CocoaPods could not find compatible versions for pod "Google-Mobile-Ads-SDK":

Run pod repo update in ios/, then npx cap sync ios again.

First test banner

After installation and platform setup, request consent, initialize the SDK when ads may be requested, and show a Google demo banner. Use the platform banner IDs from Testing—do not create your own ad unit for this first check.

Call startAdMob from a user action or after the UI is ready (for example a button or post-navigation hook), not only at module evaluation time.

import { Capacitor } from '@capacitor/core';
import { AdMob, AdmobConsentStatus, BannerAdOptions, BannerAdSize, BannerAdPosition } from '@capacitor-community/admob';

const bannerAdId =
  Capacitor.getPlatform() === 'ios'
    ? 'ca-app-pub-3940256099942544/2934735716'
    : 'ca-app-pub-3940256099942544/6300978111';

async function startAdMob() {
  let consentInfo = await AdMob.requestConsentInfo();
  if (consentInfo.isConsentFormAvailable && consentInfo.status === AdmobConsentStatus.REQUIRED) {
    consentInfo = await AdMob.showConsentForm();
  }

  if (!consentInfo.canRequestAds) {
    // Consent not ready — no banner is shown.
    return;
  }

  await AdMob.initialize();

  const options: BannerAdOptions = {
    adId: bannerAdId,
    adSize: BannerAdSize.ADAPTIVE_BANNER,
    position: BannerAdPosition.BOTTOM_CENTER,
    margin: 0,
  };
  await AdMob.showBanner(options);
}

Expected result: when canRequestAds is true, a Google test banner appears at the bottom of the native screen. When canRequestAds is false, the function returns and no banner is shown. The banner sits above the WebView and can cover HTML—see Banner Ads to inset your layout. Details: Configuration, Consent, and Testing.

Choose by advertising goal

Goal Ad format Guide
Keep an ad visible alongside app content Banner Banner Ads
Show a full-screen ad at a natural break without granting a reward Interstitial Interstitial Ads
Offer a dedicated rewarded experience Rewarded Rewarded Ads
Offer a reward at a natural transition Rewarded interstitial Rewarded Ads
Monetize an app-open experience App Open App Open Ads

Documentation

Start with Installation above, then Configuration and Consent. Run the first test banner, then use Testing for demo units and devices. Pick an ad format from the table above. The same guides are also on the documentation site (English and Japanese). If you opened this README on npm, use that site for the guides — the docs/ files are also included in the package. Method signatures are in the API section below.

  • Configuration — AdMob.initialize and SDK options.
  • Consent — privacy consent and iOS tracking authorization.
  • Testing — demo ad units, test devices, and consent testing.
  • Banner Ads — banner options, lifecycle, and events.
  • Native Ads — feed placement, styling, lifecycle, and events.
  • Full-screen ads:
    • Interstitial Ads — load, show, and multiple prepared ads.
    • Rewarded Ads — rewarded video, rewarded interstitial, and server-side verification.
  • App Open Ads — load and present on foreground transitions.
  • Ad Events — shared lifecycle events, errors, and revenue data.
  • Migration Guide — upgrade steps and behavior changes in v8.2.0 and earlier versions.

Index

  • initialize(...)
  • trackingAuthorizationStatus()
  • requestTrackingAuthorization()
  • setApplicationMuted(...)
  • setApplicationVolume(...)
  • loadAppOpen(...)
  • showAppOpen(...)
  • isAppOpenLoaded(...)
  • addListener(AppOpenAdPluginEvents.Loaded, ...)
  • addListener(AppOpenAdPluginEvents.FailedToLoad, ...)
  • addListener(AppOpenAdPluginEvents.Opened, ...)
  • addListener(AppOpenAdPluginEvents.Closed, ...)
  • addListener(AppOpenAdPluginEvents.FailedToShow, ...)
  • addListener(AppOpenAdPluginEvents.AdImpression, ...)
  • showBanner(...)
  • hideBanner()
  • resumeBanner()
  • removeBanner()
  • prepareBanner(...)
  • getAdaptiveBannerSize(...)
  • getBannerSize()
  • addListener(BannerAdPluginEvents.SizeChanged, ...)
  • addListener(BannerAdPluginEvents.Loaded, ...)
  • addListener(BannerAdPluginEvents.FailedToLoad, ...)
  • addListener(BannerAdPluginEvents.Opened, ...)
  • addListener(BannerAdPluginEvents.Closed, ...)
  • addListener(BannerAdPluginEvents.AdImpression, ...)
  • addListener(BannerAdPluginEvents.AdPaid, ...)
  • requestConsentInfo(...)
  • showPrivacyOptionsForm()
  • showConsentForm()
  • resetConsentInfo()
  • prepareInterstitial(...)
  • showInterstitial(...)
  • addListener(InterstitialAdPluginEvents.FailedToLoad, ...)
  • addListener(InterstitialAdPluginEvents.Loaded, ...)
  • addListener(InterstitialAdPluginEvents.Dismissed, ...)
  • addListener(InterstitialAdPluginEvents.FailedToShow, ...)
  • addListener(InterstitialAdPluginEvents.Showed, ...)
  • addListener(InterstitialAdPluginEvents.AdImpression, ...)
  • prepareRewardVideoAd(...)
  • showRewardVideoAd(...)
  • addListener(RewardAdPluginEvents.adClicked, ...)
  • addListener(RewardAdPluginEvents.FailedToLoad, ...)
  • addListener(RewardAdPluginEvents.Loaded, ...)
  • addListener(RewardAdPluginEvents.Rewarded, ...)
  • addListener(RewardAdPluginEvents.Dismissed, ...)
  • addListener(RewardAdPluginEvents.FailedToShow, ...)
  • addListener(RewardAdPluginEvents.Showed, ...)
  • addListener(RewardAdPluginEvents.AdImpression, ...)
  • prepareRewardInterstitialAd(...)
  • showRewardInterstitialAd(...)
  • addListener(RewardInterstitialAdPluginEvents.FailedToLoad, ...)
  • addListener(RewardInterstitialAdPluginEvents.Loaded, ...)
  • addListener(RewardInterstitialAdPluginEvents.Rewarded, ...)
  • addListener(RewardInterstitialAdPluginEvents.Dismissed, ...)
  • addListener(RewardInterstitialAdPluginEvents.FailedToShow, ...)
  • addListener(RewardInterstitialAdPluginEvents.Showed, ...)
  • addListener(RewardInterstitialAdPluginEvents.AdImpression, ...)
  • Interfaces
  • Type Aliases
  • Enums

API

initialize(...)
initialize(options?: AdMobInitializationOptions | undefined) => Promise<void>

Initializes the Google Mobile Ads SDK.

Param Type Description
options AdMobInitializationOptions Optional SDK initialization settings.

Since: 1.1.2


trackingAuthorizationStatus()
trackingAuthorizationStatus() => Promise<TrackingAuthorizationStatusInterface>

Returns the current App Tracking Transparency authorization status on iOS 14 and later. Returns authorized on earlier iOS versions, Android, and web.

Returns: Promise\

Since: 3.1.0


requestTrackingAuthorization()
requestTrackingAuthorization() => Promise<void>

Requests App Tracking Transparency authorization on iOS 14 and later. Resolves without taking action on earlier iOS versions, Android, and web.

Since: 5.2.0


setApplicationMuted(...)
setApplicationMuted(options: ApplicationMutedOptions) => Promise<void>

Reports whether the application audio is muted to the Google Mobile Ads SDK.

Param Type
options ApplicationMutedOptions

Since: 4.1.1


setApplicationVolume(...)
setApplicationVolume(options: ApplicationVolumeOptions) => Promise<void>

Reports the application audio volume to the Google Mobile Ads SDK.

Param Type
options ApplicationVolumeOptions

Since: 4.1.1


loadAppOpen(...)
loadAppOpen(options: AppOpenAdOptions) => Promise<AdLoadInfo>

Loads an App Open ad and returns the loaded ad unit ID.

Param Type
options AppOpenAdOptions

Returns: Promise\


showAppOpen(...)
showAppOpen(options?: AdShowOptions | undefined) => Promise<void>

Shows a loaded App Open ad.

Param Type Description
options AdShowOptions Optional. Pass { adId } to show a specific prepared ad instead of the most recent one.

isAppOpenLoaded(...)
isAppOpenLoaded(options?: AdShowOptions | undefined) => Promise<{ value: boolean; }>

Checks whether an App Open ad is loaded.

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • npm @capacitor-community/admob

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Powered by Read the latest findings

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

PolinRider Returns
Research

PolinRider Returns: Hijacked npm Packages Use Ethereum Blockchain to Conceal Malware Infrastructure

Critical Apache HTTP Server Flaw Exposes Web Servers to RCE (1)
CVE

CVE-2026-119618: Critical Apache HTTP Server Flaw Exposes Web Servers to Remote Code Execution

Ethersphere Hijacked With Crypto Stealing Malware (1)
npm

Ethersphere Hijacked With Crypto Stealing Malware Via Github & npm

Frame 2085668439 (1)
Group 1261154229