- AdMob implementation is complete ✅
- Using TEST AdMob IDs (safe for testing)
- Ready to build and test
AdMob requires a native build (Expo Go doesn't support AdMob). Choose one of these options:
# Install EAS CLI if not already installed
npm install -g eas-cli
# Login to Expo account
eas login
# Create a development build for testing
eas build --profile development --platform android
# Or create a preview build (closer to production)
eas build --profile preview --platform androidThe build will be created on Expo's servers and you'll get a download link.
# Generate android folder
npx expo prebuild
# Build locally
cd android
./gradlew assembleDebug
# APK will be in: android/app/build/outputs/apk/debug/app-debug.apk- Download APK from the link provided after build completes
- Transfer to Android device
- Install APK (may need to enable "Install from unknown sources")
# Install via ADB
adb install android/app/build/outputs/apk/debug/app-debug.apk- Open the app
- Navigate to each screen:
- Home screen → Look for banner ad at bottom
- Market screen → Look for banner ad at bottom
- Stats screen → Look for banner ad at bottom
- About screen → Look for banner ad at bottom
Expected behavior:
- Banner ad appears at the bottom of each screen
- Ad displays "Test Ad" label (Google's test ad)
- Ad doesn't overlap with content
- Ad is above the tab navigation bar
- Switch between tabs multiple times
- Approximately 30% of the time (roughly 1 out of 3 switches), you should see:
- Full-screen ad appears
- Can close ad after a few seconds
- App continues to the selected tab after closing
Expected behavior:
- Interstitial shows occasionally (not every time)
- Shows Google's test interstitial ad
- Can be closed by tapping X or back button
- App navigation continues normally after closing
Connect device to computer and view logs:
# View React Native logs
npx react-native log-android
# Or use ADB directly
adb logcat | grep -i "admob\|ad loaded\|ad failed"Look for these messages:
✅ "AdMob initialized: ..."
✅ "Banner ad loaded successfully"
✅ "Interstitial ad loaded successfully"
✅ "Tab changed from Home to Market, showing interstitial ad"
✅ "Interstitial ad closed"
Test banner ads will show:
- "Test Ad" text
- Generic placeholder graphics
- Standard banner size (320x50 or adaptive)
Test interstitial ads will show:
- Full-screen "Test Ad"
- Close button (X) in top corner
- May have countdown before close button appears
- Clear indication it's a test ad
Check:
- Are you using Expo Go? ❌ (Won't work - need native build)
- Is internet connected? (Ads require network)
- Check console for "Banner ad failed to load" errors
- Try restarting the app
Fix:
- Build with EAS or locally (not Expo Go)
- Ensure device has internet connection
- Check logs for specific error messages
Check:
- Are you switching tabs multiple times? (Only 30% chance)
- Check logs for "Interstitial ad loaded successfully"
- If loaded but not showing, check "Tab changed..." logs
Fix:
- Switch tabs at least 10 times to ensure you trigger one
- Check console logs to verify ad is loading
- Temporarily increase frequency in App.tsx (change 0.3 to 1.0 for testing)
Common errors:
Error: AdMob plugin not found
Fix: Run eas build:configure or ensure app.config.js is correct
Error: Google services file missing
Fix: Ensure google-services.json is in root directory
Check:
- Build is up to date with latest code
- react-native-google-mobile-ads is installed
- Plugin is configured in app.config.js
Fix:
- Rebuild app completely
- Check for JavaScript errors in logs
- Verify all imports are correct
Once testing is successful:
- Keep using test IDs
- Test on different devices
- Test on different network conditions
- Test app with/without ads (optional)
- Create AdMob account at https://apps.admob.com/
- Register your app (com.master.reshmeinfo)
- Create ad units (Banner + Interstitial)
- Follow ADMOB_IMPLEMENTATION.md → "Production Deployment" section
- Update ad unit IDs in code
- Rebuild and test with production ads
- Submit to Play Store
- Status: TEST MODE ✅
- AdMob App ID: Google test ID (safe to test)
- Banner Ad ID: TestIds.ADAPTIVE_BANNER
- Interstitial Ad ID: TestIds.INTERSTITIAL
- Interstitial Frequency: 30% of tab changes
app.config.js- AdMob plugin configcomponents/AdBanner.tsx- Banner ad componenthooks/useInterstitialAd.ts- Interstitial ad hookApp.tsx- AdMob initialization & interstitial triggersADMOB_IMPLEMENTATION.md- Full documentation
# Development build (for testing)
eas build --profile development --platform android
# Preview build (closer to production)
eas build --profile preview --platform android
# Production build (when ready to publish)
eas build --profile production --platform androidIf you encounter issues:
- Check this guide's "Troubleshooting" section
- Review console logs for specific errors
- Check ADMOB_IMPLEMENTATION.md for detailed documentation
- Verify all files are updated correctly
Ready to test! 🎉
Build the app, install on device, and verify ads are working correctly.
Last Updated: 2025-10-18