feat(iap): wire real AdMob app id, banner and interstitial units

App id always uses the real value (SDK init only, no ad-serving risk).
Banner/interstitial pick the real unit id in release builds and Google's
test unit id everywhere else, so debug/profile builds can never serve
(or accidentally tap) a real ad.
This commit is contained in:
2026-08-12 12:53:34 +02:00
parent d81fabbe27
commit 94f354a7c1
3 changed files with 28 additions and 15 deletions
+1 -1
View File
@@ -40,7 +40,7 @@ class _BannerAnuncioSuperiorState extends State<BannerAnuncioSuperior> {
// load failure takes in production. Never throws out of this method.
final anuncio = BannerAd(
size: AdSize.banner,
adUnitId: bannerAdUnitIdPrueba,
adUnitId: bannerAdUnitId,
request: const AdRequest(),
listener: BannerAdListener(
onAdLoaded: (ad) {