AdMob Configuration

Step 1: AdMob Account Setup

Create your AdMob account and app

  1. Go to admob.google.com
  2. Sign in with your Google account
  3. Click "Apps" → "Add App"
  4. Select platform: iOS and Android (separate apps)
  5. Copy your App IDs for both platforms

Important: You need separate AdMob apps for iOS and Android. Each will have unique ad unit IDs.

Step 2: Create Ad Units

Generate ad unit IDs for banner and interstitial ads

For each platform (iOS + Android), create:

  • Banner Ad Unit - Small ads at bottom of screen
  • Interstitial Ad Unit - Full-screen ads between actions

Ad unit IDs look like: ca-app-pub-XXXXXXXXXXXXXXXX/YYYYYYYYYY

Step 3: Enter Production Ad IDs

Replace test IDs with your real AdMob ad unit IDs

iOS Ad Units

Android Ad Units

Use Google's test ad IDs (recommended for development)

Master toggle for all ads

Show banner ads at bottom of screen

Show full-screen ads between actions

Revenue Tracking

How ad revenue is recorded

Every ad impression automatically creates a PlatformRevenueRecord with:

  • Revenue type: ad_revenue
  • Ad unit ID and type (banner/interstitial)
  • Platform (iOS/Android)
  • Actual revenue from AdMob (in micros)

✅ Revenue tracking is already implemented and tested. No additional setup needed!

Next Steps

  1. Complete AdMob account setup (Step 1-2)
  2. Enter your production ad unit IDs above
  3. Build native iOS/Android apps with Median
  4. Test with test mode enabled first
  5. Switch to production IDs when ready