Ads and Monetization
Ads are optional. Use this guide only if your purchased app includes ad components or you plan to add monetization yourself.
Quick Answer
Do not treat legacy Facebook Ads snippets as a required setup step. If your app uses Meta Audience Network or another ad network, configure your own ad account, placement IDs, privacy consent, and supported native SDK or mediation provider before release.
Meta references:
What May Ship in Older Apps
Some older Instamobile apps include reusable ad components under paths similar to:
src/core/ads
src/core/ads/facebook
Search your app before assuming ads are enabled:
rg "adsConfig|facebookAdsPlacementID|Audience|Interstitial|NativeAd|adSlotInjectionInterval" src
Recommended Production Approach
For new production apps:
- Pick the ad network or mediation provider you actually want to use.
- Install the current React Native/native SDK supported by that provider.
- Configure iOS and Android native projects according to the provider docs.
- Add real placement IDs for each platform.
- Add test device IDs before development testing.
- Add consent/privacy handling if required in your target markets.
- Validate ads on real devices and internal builds.
Do not manually patch ad SDK versions in node_modules. If a legacy package no longer supports current iOS or Android requirements, replace the integration with a maintained package or mediation provider.
Placement Config
If your app already has ad placement config, it may look like this:
adsConfig: {
facebookAdsPlacementID:
Platform.OS === 'ios'
? 'your-ios-placement-id'
: 'your-android-placement-id',
adSlotInjectionInterval: 10,
},
Replace demo placement IDs with your own IDs before any release.
Privacy and Store Requirements
Before enabling ads:
- update your privacy policy;
- complete App Store privacy labels;
- complete Google Play Data Safety;
- configure ATT prompt on iOS if your ad stack requires tracking consent;
- confirm child-directed or sensitive category rules if applicable;
- disclose ad identifiers and analytics SDK usage where required;
- test behavior when a user denies tracking or ad personalization.
Troubleshooting
| Problem | Fix |
|---|---|
| Ads never fill | Confirm the app is approved by the ad network, placement IDs are correct, and test devices are configured. |
| iOS build fails | Check native SDK compatibility, Pods, privacy manifests, and Xcode capabilities. |
| Android build fails | Check Gradle dependencies, Android package name, manifest entries, and mediation adapters. |
| Ads work in debug but not release | Confirm release bundle ID/package name and production placement IDs are registered. |
| Store review rejects the app | Review privacy disclosures, consent flow, app-ads.txt, and ad network policies. |