admob_integrate
Integrate AdMob ads into React Native/Expo projects by generating ad components (Banner, Interstitial, Rewarded, AppOpen) with test ID support and installing required dependencies.
Instructions
Generate AdMob integration code for a React Native / Expo project. Creates ad components (Banner, Interstitial, Rewarded, AppOpen) with test ID support and installs required dependencies.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"projectDir": "<projectDir>"
},
"name": "admob_integrate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| projectDir | Yes | Path to the app project directory | |
| platform | No | Target platform (default: both) | |
| iosAppId | No | AdMob iOS App ID (e.g., ca-app-pub-xxxxx~yyyyy) | |
| androidAppId | No | AdMob Android App ID (e.g., ca-app-pub-xxxxx~yyyyy) | |
| adUnits | No | Ad units to generate code for. If omitted, generates sample Banner + Interstitial. |