Skip to main content

Documentation Index

Fetch the complete documentation index at: https://mintlify.com/admob-plus/admob-plus/llms.txt

Use this file to discover all available pages before exploring further.

Prerequisites

Before installing AdMob Plus, ensure you have:
  1. Google AdMob Account - Sign up if you don’t have one
  2. AdMob App ID - Create an app in your AdMob dashboard to get your App ID
  3. Ad Unit IDs - Create ad units for the ad types you want to display
Your AdMob App ID looks like ca-app-pub-XXXXXXXXXXXXXXXX~YYYYYYYYYY. You’ll need separate IDs for Android and iOS.

Framework-Specific Installation

Choose your framework to see installation instructions:

Install the Plugin

cordova plugin add admob-plus-cordova --save

Configure App IDs

Add your AdMob App IDs to package.json:
package.json
{
  "cordova": {
    "plugins": {
      "admob-plus-cordova": {
        "APP_ID_ANDROID": "ca-app-pub-XXXXXXXXXXXXXXXX~YYYYYYYYYY",
        "APP_ID_IOS": "ca-app-pub-XXXXXXXXXXXXXXXX~YYYYYYYYYY"
      }
    }
  }
}
Or configure during installation:
cordova plugin add admob-plus-cordova \
  --variable APP_ID_ANDROID="ca-app-pub-XXXXXXXXXXXXXXXX~YYYYYYYYYY" \
  --variable APP_ID_IOS="ca-app-pub-XXXXXXXXXXXXXXXX~YYYYYYYYYY"

TypeScript Support

AdMob Plus includes TypeScript definitions out of the box. The global admob object is automatically available:
import type { AdMob, BannerAd, InterstitialAd } from 'admob-plus-cordova'

declare const admob: AdMob

Platform Requirements

  • Android: Minimum SDK version 21 (Android 5.0)
  • iOS: Minimum iOS version 12.0
  • Cordova: Version 9.0.0 or higher

Verify Installation

After installation, verify that AdMob Plus is properly configured:
1

Check Native Dependencies

Ensure the native SDKs are properly linked:Android: Look for com.google.android.gms:play-services-ads in your dependenciesiOS: Verify GoogleMobileAds framework is included
2

Build Your App

Build your app to ensure no configuration errors:
# Cordova
cordova build android
cordova build ios

# Capacitor
npx cap build android
npx cap build ios

# React Native
npx react-native run-android
npx react-native run-ios
3

Test Ad Initialization

Add a simple initialization test to verify the SDK loads:
// Cordova/Ionic
admob.start().then(() => console.log('AdMob initialized'))

// Capacitor
import { AdMobPlus } from '@admob-plus/capacitor'
AdMobPlus.start().then(() => console.log('AdMob initialized'))

// React Native
import AdMob from '@admob-plus/react-native'
AdMob.start().then(() => console.log('AdMob initialized'))

Troubleshooting

If you encounter build errors related to Google Play Services:
  1. Ensure your build.gradle has the correct Google Play Services version
  2. Check that your Android SDK Build Tools are up to date
  3. Try cleaning your build: ./gradlew clean
If you encounter CocoaPods or framework errors:
  1. Update CocoaPods: sudo gem install cocoapods
  2. Clean pods: cd ios && pod deintegrate && pod install
  3. Clean build folder in Xcode: Product → Clean Build Folder
If you see TypeScript definition errors:
  1. Ensure you have the latest version of AdMob Plus
  2. Add "skipLibCheck": true to your tsconfig.json
  3. Restart your IDE/TypeScript server
If imports fail at runtime:
  1. Clear your bundler cache (Metro, Webpack, etc.)
  2. Reinstall dependencies: rm -rf node_modules && npm install
  3. For React Native: npx react-native start --reset-cache

Next Steps

Now that AdMob Plus is installed, learn how to display your first ad:

Quick Start Guide

Show your first ad in minutes with our step-by-step guide