Create AdMob ad unit
admob_create_ad_unitCreate a new ad unit for a specified app, defining its format, display name, and optional reward settings. Use dryRun to preview without executing.
Instructions
Create a new ad unit under an app (v1beta). This method is allowlisted by Google: a 403 means your account is not yet granted access. Use dryRun to preview the request.
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>",
"adFormat": "<adFormat>"
},
"name": "admob_create_ad_unit"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| appId | Yes | The public app id the ad unit belongs to, e.g. "ca-app-pub-...~...". | |
| dryRun | No | If true, validate the inputs and return the exact API request that would be sent WITHOUT executing it. Default false: the operation runs after the MCP client asks you to confirm. | |
| adTypes | No | Allowed ad media types (RICH_MEDIA, VIDEO). | |
| adFormat | Yes | Ad format. | |
| rewardUnit | No | For REWARDED formats: the reward unit type, e.g. "coins". | |
| displayName | Yes | Display name for the ad unit. | |
| publisherId | No | AdMob publisher id or account resource name, e.g. "pub-1234567890123456" or "accounts/pub-1234567890123456". Defaults to ADMOB_PUBLISHER_ID, or the single account on the credentials. | |
| rewardAmount | No | For REWARDED formats: the reward amount. |