# ads

Optional native advertising: responsibilities, supported exports and extension points.

## Purpose [#purpose]

The package registers a native ads module and exposes banner, interstitial and rewarded interfaces. Without a registered module it behaves as unavailable. Configuration, initialization and tracking permission remain explicit.

## Public exports [#public-exports]

| Subpath | Target |
| --- | --- |
| `.` | `./src/index.ts` |

These paths come from `packages/ads/package.json`. A `.` entry is the package root. Conditional targets distinguish platform or type resolution; consumers should import the subpath, not its source file.

## How to extend [#how-to-extend]

Install a compatible native SDK and register its loader in mobile startup before enabling ads. Rebuild the development client after native changes. Check availability and permission outcomes; do not make an ad prerequisite for unrelated navigation.

Read the [optional native advertising guide](/docs/features/mobile) for the full flow.

## Key files [#key-files]

- [`packages/ads/package.json`](https://github.com/CarlosZiegler/doro/blob/main/packages/ads/package.json)

