high · M8 · MASVS-PLATFORM-3 · PTKD-JP-ADS-IN-EXTENSION
Ads SDK used inside an app extension, widget or App Clip
Code in a widget, app extension, keyboard, notification extension, App Clip or watch target uses an ads SDK. Display advertising is only allowed in the main app (2.5.18).
How it is exploited
Not an attack: a home-screen widget or a keyboard extension imports GoogleMobileAds and shows a banner between weather tiles. Apple allows display ads only in the main app, not in extensions, widgets, App Clips or watch apps.
Why it matters
Rejection under 2.5.18; ad SDKs inside extensions also add size and memory pressure to a process iOS kills quickly.
How to fix it
- Remove the ads SDK from every extension, widget, App Clip and watch target (Xcode > target > Frameworks, or the Podfile target block).
- Keep the ads in the main app; let the widget deep-link into the app instead.
- Check the extension's Info.plist and code for SKAdNetwork or ad identifiers that were copied over from the app target.
Does your app have this?
PTKD checks your build or your source project for PTKD-JP-ADS-IN-EXTENSION and every other check in this knowledge base.
Scan your appReferences
Related checks (M8)
- JavaScript obfuscation in the build
- Export compliance (ITSAppUsesNonExemptEncryption) not declared
- HealthKit app that also ships an ads SDK
- Hardcoded unlock or promo code
- Purchases SDK configured with an empty or test key
- Purchase screen falls back to made-up prices or 'coming soon' text
- False-urgency copy on a purchase screen
- Hardcoded price on a purchase screen