ad_unit_create
Find or create an AdMob ad unit by app and name, returning whether it exists, was created with an adUnitId, or requires manual console steps when create access is unavailable.
Instructions
Find or create an ad unit in an AdMob app. Idempotent by app and name. Returns exists, created (with adUnitId), or manual_required with console steps when Google has not granted create access.
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": {
"appId": "<appId>",
"displayName": "<displayName>",
"format": "<format>"
},
"name": "ad_unit_create"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| appId | Yes | ||
| format | Yes | ||
| rewardType | No | ||
| displayName | Yes | ||
| publisherId | No | pub-… ; omit when the Google account has one AdMob account | |
| rewardAmount | No |