← back to Nineoh Guide
Wire real AdMob banner: iosAppId ca-app-pub-5278231299883833~3798456380 + banner unit .../1889257150 (prod), TestIds in dev
182ad70c7ccc84147ab6b7758540db7b0939d195 · 2026-08-06 06:23:00 -0700 · Steve Abrams
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Files touched
M apps/mobile/App.tsxM apps/mobile/app.json
Diff
commit 182ad70c7ccc84147ab6b7758540db7b0939d195
Author: Steve Abrams <steve@designerwallcoverings.com>
Date: Thu Aug 6 06:23:00 2026 -0700
Wire real AdMob banner: iosAppId ca-app-pub-5278231299883833~3798456380 + banner unit .../1889257150 (prod), TestIds in dev
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
---
apps/mobile/App.tsx | 7 +++++--
apps/mobile/app.json | 4 ++--
2 files changed, 7 insertions(+), 4 deletions(-)
diff --git a/apps/mobile/App.tsx b/apps/mobile/App.tsx
index 27c5c57..1172f40 100644
--- a/apps/mobile/App.tsx
+++ b/apps/mobile/App.tsx
@@ -23,8 +23,11 @@ import mobileAds, {
} from "react-native-google-mobile-ads";
import { requestTrackingPermissionsAsync } from "expo-tracking-transparency";
-// TEST ad unit for now — replace with your real AdMob banner unit ID before launch.
-const BANNER_UNIT_ID = TestIds.BANNER;
+// Real AdMob banner unit in production; Google's test unit in dev (so we never
+// serve/click live ads while developing, per AdMob policy).
+const BANNER_UNIT_ID = __DEV__
+ ? TestIds.BANNER
+ : "ca-app-pub-5278231299883833/1889257150";
import { APP, EpisodeSchema, type Episode } from "@nineoh/core";
import { logScreen } from "./analytics";
diff --git a/apps/mobile/app.json b/apps/mobile/app.json
index 135f355..0a19a6f 100644
--- a/apps/mobile/app.json
+++ b/apps/mobile/app.json
@@ -29,7 +29,7 @@
[
"react-native-google-mobile-ads",
{
- "iosAppId": "ca-app-pub-3940256099942544~1458002511",
+ "iosAppId": "ca-app-pub-5278231299883833~3798456380",
"androidAppId": "ca-app-pub-3940256099942544~3347511713"
}
],
@@ -49,6 +49,6 @@
"owner": "agentabrams"
},
"react-native-google-mobile-ads": {
- "iosAppId": "ca-app-pub-3940256099942544~1458002511"
+ "iosAppId": "ca-app-pub-5278231299883833~3798456380"
}
}
← 5b12116 App.tsx: add ShowInfo type + show info banner (chips, expand
·
back to Nineoh Guide
·
Add read-only App Store approval-check script (for AdMob-lin 5d90004 →