Skip to main content

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

For new production apps:

  1. Pick the ad network or mediation provider you actually want to use.
  2. Install the current React Native/native SDK supported by that provider.
  3. Configure iOS and Android native projects according to the provider docs.
  4. Add real placement IDs for each platform.
  5. Add test device IDs before development testing.
  6. Add consent/privacy handling if required in your target markets.
  7. 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

ProblemFix
Ads never fillConfirm the app is approved by the ad network, placement IDs are correct, and test devices are configured.
iOS build failsCheck native SDK compatibility, Pods, privacy manifests, and Xcode capabilities.
Android build failsCheck Gradle dependencies, Android package name, manifest entries, and mediation adapters.
Ads work in debug but not releaseConfirm release bundle ID/package name and production placement IDs are registered.
Store review rejects the appReview privacy disclosures, consent flow, app-ads.txt, and ad network policies.

Next Steps