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.
This commit is contained in:
@@ -27,7 +27,7 @@
|
|||||||
</activity>
|
</activity>
|
||||||
<meta-data
|
<meta-data
|
||||||
android:name="com.google.android.gms.ads.APPLICATION_ID"
|
android:name="com.google.android.gms.ads.APPLICATION_ID"
|
||||||
android:value="ca-app-pub-3940256099942544~3347511713"/>
|
android:value="ca-app-pub-5605900229781491~8257495040"/>
|
||||||
<!-- Don't delete the meta-data below.
|
<!-- Don't delete the meta-data below.
|
||||||
This is used by the Flutter tool to generate GeneratedPluginRegistrant.java -->
|
This is used by the Flutter tool to generate GeneratedPluginRegistrant.java -->
|
||||||
<meta-data
|
<meta-data
|
||||||
|
|||||||
@@ -46,7 +46,7 @@
|
|||||||
<key>UIApplicationSupportsIndirectInputEvents</key>
|
<key>UIApplicationSupportsIndirectInputEvents</key>
|
||||||
<true/>
|
<true/>
|
||||||
<key>GADApplicationIdentifier</key>
|
<key>GADApplicationIdentifier</key>
|
||||||
<string>ca-app-pub-3940256099942544~1458002511</string>
|
<string>ca-app-pub-5605900229781491~8397095848</string>
|
||||||
<key>NSUserTrackingUsageDescription</key>
|
<key>NSUserTrackingUsageDescription</key>
|
||||||
<string>We use this to show ads that are more relevant to you. You can play fully either way.</string>
|
<string>We use this to show ads that are more relevant to you. You can play fully either way.</string>
|
||||||
<key>SKAdNetworkItems</key>
|
<key>SKAdNetworkItems</key>
|
||||||
|
|||||||
@@ -27,13 +27,15 @@ class AdConfig {
|
|||||||
static const _testBannerAndroid = 'ca-app-pub-3940256099942544/6300978111';
|
static const _testBannerAndroid = 'ca-app-pub-3940256099942544/6300978111';
|
||||||
static const _testBannerIos = 'ca-app-pub-3940256099942544/2934735716';
|
static const _testBannerIos = 'ca-app-pub-3940256099942544/2934735716';
|
||||||
|
|
||||||
// --- Owner replaces these with real AdMob console unit IDs ---
|
// --- Real AdMob console unit IDs (publisher pub-5605900229781491) ---
|
||||||
static const _realInterstitialAndroid = 'TODO_REAL_INTERSTITIAL_ANDROID';
|
static const _realInterstitialAndroid =
|
||||||
static const _realInterstitialIos = 'TODO_REAL_INTERSTITIAL_IOS';
|
'ca-app-pub-5605900229781491/8489470891';
|
||||||
static const _realRewardedAndroid = 'TODO_REAL_REWARDED_ANDROID';
|
static const _realInterstitialIos =
|
||||||
static const _realRewardedIos = 'TODO_REAL_REWARDED_IOS';
|
'ca-app-pub-5605900229781491/2953197478';
|
||||||
static const _realBannerAndroid = 'TODO_REAL_BANNER_ANDROID';
|
static const _realRewardedAndroid = 'ca-app-pub-5605900229781491/4478032132';
|
||||||
static const _realBannerIos = 'TODO_REAL_BANNER_IOS';
|
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) {
|
static String _pick(String testA, String testI, String realA, String realI) {
|
||||||
final android = useTestIds ? testA : realA;
|
final android = useTestIds ? testA : realA;
|
||||||
|
|||||||
Reference in New Issue
Block a user