# Check this app against App Store Review Guideline 2.5.18: Advertising

Ads belong only in the main app, must suit the age rating, can't target sensitive data, must be easy to close and report, and must show why they were targeted.

Go through this codebase for each problem below. For each one that applies, fix it on a new git branch with the steps for this app's stack (React Native and Expo, Swift, or Flutter). If none apply, say so and why.

## Ads may appear outside the main app

Usually a rejection.

**What Apple wants:** Ads may only run in the main app (Guideline 2.5.18). Extensions, widgets, App Clips, notifications and keyboards must stay ad-free.

**How to fix it:** Keep ads in the main app only.

Steps:

1. Remove ad code from extensions, widgets, App Clips, notifications and keyboards.

## Ads may be hard to close or trick people into tapping

Often a rejection.

**What Apple wants:** Full-screen ads need to look like ads, can't trick people into tapping, and must be easy to close (Guideline 2.5.18).

**How to fix it:** Show interstitials at natural breaks, with the ad network's standard close button.

Steps:

1. Show full-screen ads only at natural breaks, never in the middle of a task.
2. Keep the network's standard close button, and don't place ads where people are about to tap.

## Native ads may not be labelled as ads

Often a rejection.

**What Apple wants:** People must be able to tell an ad is an ad, see why they were targeted, and report it (Guideline 2.5.18). The network's AdChoices icon covers the last two.

**How to fix it:** Label every native ad and keep the AdChoices icon visible.

Steps:

1. Add an "Ad" or "Sponsored" label to each native ad layout.
2. Make sure the AdChoices icon is visible and not covered by other views.

## Ads may be targeted with health data

Usually a rejection.

**What Apple wants:** Health data can't be used to target ads (Guideline 2.5.18), and HealthKit data can never be used for advertising (Guideline 5.1.3).

**How to fix it:** Stop passing health data into ad requests.

Steps:

1. Remove health and fitness values from ad keywords and targeting.
2. Consider non-personalized ads for this app.

## A children's app may request personalized ads

Usually a rejection.

**What Apple wants:** Apps for children can't serve ads targeted from the child's data, and ads have to fit the app's age rating (Guideline 2.5.18).

**How to fix it:** Mark ad requests as child-directed, and limit ads to non-personalized, age-appropriate ones.

Steps:

1. Turn on the ad SDK's child-directed setting and set a maximum ad content rating.
2. If the app is in the Kids category, follow Guideline 1.3 on third-party ads.

## Ads may not be limited to the app's age rating

Delays review.

**What Apple wants:** Ads shown in an app must suit the app's age rating (Guideline 2.5.18). Without a content rating limit, ad networks can serve mature ads to a young audience, and reviewers reject what they see.

**How to fix it:** Set the ad network's maximum ad content rating to match the app's age rating.

Steps:

1. Set the maximum ad content rating in the ad SDK's request configuration (for example maxAdContentRating G or PG in AdMob).
2. Block sensitive ad categories in the ad network dashboard.

## Ads the app serves itself may lack a label or report option

Delays review.

**What Apple wants:** Ads must show they're ads, let people see why they were targeted without leaving the app, and offer a way to report them (Guideline 2.5.18). Ad networks build this in; ads you serve yourself need it too.

**How to fix it:** Label your own ads, and add 'Why this ad' and 'Report ad' options to them.

Steps:

1. Add an 'Ad' or 'Sponsored' label to each self-served ad.
2. Add a menu on the ad that explains why it was shown and lets people report it.

---

AppScend checks an app against every guideline at once, on the developer's Mac: `npx appscend scan --json` in the app's root folder (docs: https://appscend.ai/docs).

Source: https://appscend.ai/guidelines/2-5-18
