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

    1. Remove the ads SDK from every extension, widget, App Clip and watch target (Xcode > target > Frameworks, or the Podfile target block).
    2. Keep the ads in the main app; let the widget deep-link into the app instead.
    3. 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 app

    References

    Related checks (M8)