# Admob ads and consent

> Admob ads and consent is an open-source agent skill for advertising tech. Sets up AdMob ads in an Expo app with consent, Apple tracking prompt and pacing rules. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/zakariaf/ReactNative-Skills/tree/main/skills/admob-ads-and-consent
- **Repository:** https://github.com/zakariaf/reactnative-skills
- **GitHub stars:** 16
- **License:** MIT
- **Skill name:** admob-ads-and-consent
- **Collection:** https://github.com/zakariaf/ReactNative-Skills
- **Categories:** [advertising tech](https://ai-powered.com/categories/advertising-tech)
- **Listing updated:** 2026-12-04

## About

This skill builds Google AdMob advertising into an Expo React Native app so that ads sit behind a port and an adapter rather than being called directly from screens. It covers banners, interstitials and rewarded ads, and it routes every decision about whether an ad may appear through pure, testable policy functions with pacing numbers kept in configuration.

The workflow has the agent copy a set of templates, wire the app configuration and composition root, and run Google's UMP consent form followed by Apple's App Tracking Transparency prompt before any ad request. Test builds are pinned to Google's test ad units, and real unit IDs are only used in production and live builds. Two zero-dependency checkers verify the wiring and behaviour of the resulting code, and the skill includes a by-hand smoke test and release steps for the SKAdNetwork list.

The skill expects an Expo project with the react-native-google-mobile-ads SDK pinned to 17.2.0, plus expo-tracking-transparency for general-audience apps. Consent, pacing, and the developer's AdMob console setup remain the developer's responsibility; the agent is told to ask for real IDs rather than invent them.

## When your agent uses it

> Builds AdMob ads behind a port - banners, interstitials, rewarded, UMP consent then ATT, pacing, ADS_MODE test IDs. Use when touching ads, consent, ATT, ad IDs or rewarded perks. Not for purchases (in-app-purchases).

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Runs JavaScript and TypeScript scripts](https://github.com/zakariaf/ReactNative-Skills/tree/HEAD/skills/admob-ads-and-consent)
- [Network calls found in its scripts](https://github.com/zakariaf/ReactNative-Skills/tree/HEAD/skills/admob-ads-and-consent)
- [License: MIT](https://github.com/zakariaf/ReactNative-Skills/tree/HEAD/skills/admob-ads-and-consent)

## Features

- **Consent before ads:** Runs Google's consent form and then Apple's tracking prompt before any ad request is made.
- **Pure pacing policy:** Decides interstitial and banner timing through tested functions with configurable floors.
- **Test and live ID separation:** Keeps test ad units in development builds and real IDs only in production and live builds.
- **Focus-aware banners:** Shows banners only on declared browsing screens while those screens are focused.
- **Rewarded offers:** Grants rewards only after a completed ad, with loading and unavailable states handled.
- **Media pausing around ads:** Pauses audio and timers during fullscreen ads and resumes them afterwards.
- **Static and behaviour checkers:** Ships two scripts that verify files, imports, pacing and placement against the rules.

## Good for

- Add a banner ad to a list screen in my Expo app
- Set up Google UMP consent and Apple tracking prompt before showing ads
- Show a rewarded ad that unlocks a perk when the user taps a button
- Limit interstitial ads so they only appear after a finished task
- Switch my app's ads off in a build variant and keep test IDs in development

## Install

### Claude Code

This skill ships in the `react-native` plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

```sh
/plugin marketplace add zakariaf/ReactNative-Skills
/plugin install react-native@react-native-skills
```

Or copy only this skill to `~/.claude/skills/admob-ads-and-consent`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/zakariaf/ReactNative-Skills.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/admob-ads-and-consent &&
cp -R "$tmp/skills/admob-ads-and-consent" ~/.claude/skills/admob-ads-and-consent &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/admob-ads-and-consent` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/admob-ads-and-consent` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/zakariaf/ReactNative-Skills.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/admob-ads-and-consent &&
cp -R "$tmp/skills/admob-ads-and-consent" ~/.agents/skills/admob-ads-and-consent &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/admob-ads-and-consent` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/admob-ads-and-consent` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/zakariaf/ReactNative-Skills.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/admob-ads-and-consent &&
cp -R "$tmp/skills/admob-ads-and-consent" ~/.cursor/skills/admob-ads-and-consent &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/admob-ads-and-consent` inside it instead.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/zakariaf/ReactNative-Skills.git --path skills/admob-ads-and-consent
```

Or copy the folder to `~/.gemini/skills/admob-ads-and-consent` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/admob-ads-and-consent`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/zakariaf/ReactNative-Skills.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/admob-ads-and-consent &&
cp -R "$tmp/skills/admob-ads-and-consent" ~/.copilot/skills/admob-ads-and-consent &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/admob-ads-and-consent` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/zakariaf/ReactNative-Skills.git
```

Then copy `ReactNative-Skills/skills/admob-ads-and-consent` into your agent's skills folder as `admob-ads-and-consent`. Agents that support SKILL.md read one folder per skill.

## FAQ

### What does the skill need installed?

It installs react-native-google-mobile-ads pinned to exactly 17.2.0 and, for general-audience apps, expo-tracking-transparency, expo-network, expo-constants and expo-application.

### Does Admob ads and consent call the ad SDK from any screen?

No. The rules require ad calls to live only in specific pure policy and gate modules, and the adapters are created in the composition root.

### Does Admob ads and consent handle child-directed apps?

Yes. For child-directed audiences it sets a G rating, child tags, blocks the AD_ID permission and omits all App Tracking Transparency code.

### Which ad IDs are used in test builds?

Test builds use Google's sample and test ad units. Real IDs reach the runtime only in production and live builds.

### How do I install Admob ads and consent in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/admob-ads-and-consent to use it in all your projects, or to .claude/skills/admob-ads-and-consent in one project. Or install the react-native plugin, which includes it: /plugin marketplace add zakariaf/ReactNative-Skills, then /plugin install react-native@react-native-skills.

### Does Admob ads and consent run scripts?

Yes. It runs JavaScript and TypeScript scripts. Its scripts contain network calls. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

### Which AI agents can use Admob ads and consent?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

### What are the best alternatives to Admob ads and consent?

The closest alternatives to Admob ads and consent are Ad creative, Build seller agent, Competitive ads extractor and Ad creative.

## Where this comes from

- Description: from the skill's own SKILL.md.

## Alternatives

- [Ad creative](https://ai-powered.com/skills/ad-creative-superamped): Ad creative is an open-source agent skill for advertising tech.
- [Build seller agent](https://ai-powered.com/skills/build-seller-agent-adcontextprotocol): Build seller agent is an open-source agent skill for design and media.
- [Competitive ads extractor](https://ai-powered.com/skills/competitive-ads-extractor-feimacode): Competitive ads extractor is an open-source agent skill for marketing and seo.
- [Ad creative](https://ai-powered.com/skills/ad-creative-feimacode): Ad creative is an open-source agent skill for marketing and seo.

---
Source: https://ai-powered.com/skills/admob-ads-and-consent
