Scan your whole stack
From OX Research Newsroom
Are you using @capacitor-community/admob?
Find out what’s in your code.
Scan your apps free in minutes (opens in a new tab)Latest version: v8.5.1
@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.
| Version | Published | Status |
|---|---|---|
| 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 |
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.
The publisher’s own README, as collected from the registry.
| Maintainer | GitHub | Social | Website |
|---|---|---|---|
| Masahiko Sakakibara | rdlabo | @rdlabo | rdlabo.dev |
| Saninn Salas Diaz | Saninn Salas Diaz | @SaninnSalas | — |
Maintenance Status: Actively Maintained
Made with contributors-img.
| Banner | Interstitial | Reward |
|---|---|---|
| App Open | Native Ads | |
| Banner | Interstitial | Reward |
|---|---|---|
| App Open | Native Ads | |
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.
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.
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.
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.
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 |
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.
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.
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.
| 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 |
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.
AdMob.initialize and SDK options.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, ...)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() => 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() => 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(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(options: ApplicationVolumeOptions) => Promise<void>
Reports the application audio volume to the Google Mobile Ads SDK.
| Param | Type |
|---|---|
options |
ApplicationVolumeOptions |
Since: 4.1.1
loadAppOpen(options: AppOpenAdOptions) => Promise<AdLoadInfo>
Loads an App Open ad and returns the loaded ad unit ID.
| Param | Type |
|---|---|
options |
AppOpenAdOptions |
Returns: Promise\
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(options?: AdShowOptions | undefined) => Promise<{ value: boolean; }>
Checks whether an App Open ad is loaded.
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.
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).
The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.