Skip to content
Skill

Admob ads and consent

Sets up AdMob ads in an Expo app with consent, Apple tracking prompt and pacing rules

Admob ads and consent is an open-source agent skill for advertising tech. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

Scripts
JavaScript, TypeScript
Platforms
Claude Code, Codex, Cursor
GitHub stars
16
Last commit
License
MIT
Listing updated

Similar skills

About Admob ads and consent

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).

From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.

What it can access

From a static check of its 122 files (666 KB) on GitHub on 5 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.

Check another skill before you install it.

Install

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

/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:

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.

Claude Code docs on skills

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

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.

Codex docs on skills

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

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.

Cursor docs on skills

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

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.

Gemini CLI docs on skills

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

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.

VS Code docs on skills

Get the folder:

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.

The SKILL.md format

What it does

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

Admob ads and consent 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.

More from zakariaf/ReactNative-Skills

  1. Turns canvas taps, swipes and drags into typed intents hit-tested on the drawn layout

    • Open source
    • 16 GitHub stars
    • Developer tools
  2. Adds a gated debug menu, debug deep link and simulated clock and offline mode to React

    • Open source
    • 16 GitHub stars
    • Developer tools
  3. Checks React Native code for accessibility labels, touch targets, text scaling

    • Open source
    • 16 GitHub stars
    • Developer tools
  4. Sells a one-time Premium unlock through the App Store and Google Play

    • Open source
    • 16 GitHub stars
    • Finance and payments
  5. Walks an Expo app through an SDK, Xcode or Android toolchain upgrade in one commit

    • Open source
    • 16 GitHub stars
    • Developer tools
  6. Builds React Native forms with one valibot schema, catalog-key errors and keyboard-aware

    • Open source
    • 16 GitHub stars
    • Developer tools