Create AdMob ad unit
create_ad_unitCreate a new ad unit for an app in AdMob by specifying app ID, display name, and ad format. Configure ad types and reward settings as needed.
Instructions
Creates an ad unit under an app in the AdMob account. Requires the admob.monetization scope.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| appId | Yes | AdMob app ID the ad unit belongs to, e.g. ca-app-pub-XXXXXXXXXXXXXXXX~0123456789 | |
| adTypes | No | Ad media types supported by this ad unit | |
| adFormat | Yes | Ad format of the ad unit | |
| displayName | Yes | Display name of the ad unit (shown in the AdMob UI) | |
| rewardSettings | No | Reward settings — only for REWARDED / REWARDED_INTERSTITIAL formats |