From 734c8a4cf75c1824bb16c673cf6b5577ec290d96 Mon Sep 17 00:00:00 2001 From: airkjw Date: Sat, 13 Jun 2026 19:05:10 +0900 Subject: [PATCH] feat(ads): wire real AdMob ids (Phase 5 finalize) Replaces the TODO_REAL_* ad-unit placeholders with the owner's real AdMob console ids (publisher pub-5605900229781491) and the native AdMob app ids (iOS ~8397095848, Android ~8257495040) in place of the Google sample ids. Debug builds still serve Google test ads via kDebugMode; release builds now use the real units. --- android/app/src/main/AndroidManifest.xml | 2 +- ios/Runner/Info.plist | 2 +- lib/services/ad_config.dart | 16 +++++++++------- 3 files changed, 11 insertions(+), 9 deletions(-) diff --git a/android/app/src/main/AndroidManifest.xml b/android/app/src/main/AndroidManifest.xml index f329b63..22821f5 100644 --- a/android/app/src/main/AndroidManifest.xml +++ b/android/app/src/main/AndroidManifest.xml @@ -27,7 +27,7 @@ + android:value="ca-app-pub-5605900229781491~8257495040"/> UIApplicationSupportsIndirectInputEvents GADApplicationIdentifier - ca-app-pub-3940256099942544~1458002511 + ca-app-pub-5605900229781491~8397095848 NSUserTrackingUsageDescription We use this to show ads that are more relevant to you. You can play fully either way. SKAdNetworkItems diff --git a/lib/services/ad_config.dart b/lib/services/ad_config.dart index 681ba10..ba20e59 100644 --- a/lib/services/ad_config.dart +++ b/lib/services/ad_config.dart @@ -27,13 +27,15 @@ class AdConfig { static const _testBannerAndroid = 'ca-app-pub-3940256099942544/6300978111'; static const _testBannerIos = 'ca-app-pub-3940256099942544/2934735716'; - // --- Owner replaces these with real AdMob console unit IDs --- - static const _realInterstitialAndroid = 'TODO_REAL_INTERSTITIAL_ANDROID'; - static const _realInterstitialIos = 'TODO_REAL_INTERSTITIAL_IOS'; - static const _realRewardedAndroid = 'TODO_REAL_REWARDED_ANDROID'; - static const _realRewardedIos = 'TODO_REAL_REWARDED_IOS'; - static const _realBannerAndroid = 'TODO_REAL_BANNER_ANDROID'; - static const _realBannerIos = 'TODO_REAL_BANNER_IOS'; + // --- Real AdMob console unit IDs (publisher pub-5605900229781491) --- + static const _realInterstitialAndroid = + 'ca-app-pub-5605900229781491/8489470891'; + static const _realInterstitialIos = + 'ca-app-pub-5605900229781491/2953197478'; + static const _realRewardedAndroid = 'ca-app-pub-5605900229781491/4478032132'; + static const _realRewardedIos = 'ca-app-pub-5605900229781491/7011566835'; + static const _realBannerAndroid = 'ca-app-pub-5605900229781491/5072970060'; + static const _realBannerIos = 'ca-app-pub-5605900229781491/3620287592'; static String _pick(String testA, String testI, String realA, String realI) { final android = useTestIds ? testA : realA;