Documentation Index
Fetch the complete documentation index at: https://mintlify.com/admob-plus/admob-plus/llms.txt
Use this file to discover all available pages before exploring further.
Overview
AdMob Plus provides configuration options to customize SDK behavior, including test devices, content ratings, and app-level settings. Configuration should be done after the SDK starts and before loading ads.Basic Configuration
Starting the SDK
Before configuring or showing ads, you must start the AdMob SDK:start() method initializes the SDK and returns information about the SDK version:
Applying Configuration
Use theconfigure() method to set global AdMob configuration options:
Configuration Options
AdMobConfig Interface
TheAdMobConfig interface extends RequestConfig and includes:
Maximum ad content rating for ads. Options:
'G'- Content suitable for general audiences, including families'PG'- Content suitable for most audiences with parental guidance'T'- Content suitable for teen and older audiences'MA'- Content suitable only for mature audiences''- Content suitability is unspecified (default)
Indicates whether to tag ad requests as child-directed:
true- Tag requests as child-directedfalse- Tag requests as not child-directednull- Do not tag requests (default)
Indicates whether users are under the age of consent:
true- Users are under the age of consentfalse- Users are not under the age of consentnull- Not specified (default)
Set to
true to mute app audio for ads.Set app audio volume for ads (0.0 to 1.0).
Enable publisher first-party ID for enhanced ad targeting.
Complete Example
Here’s a complete example showing SDK initialization and configuration:Banner-Specific Configuration
Banner ads support additional configuration for iOS:Background color for banner ads (iOS only). Accepts any valid CSS color string.
Top margin for banner ads in pixels (iOS only).
Bottom margin for banner ads in pixels (iOS only).
Best Practices
Test device IDs and content ratings can also be set per-request using
RequestConfig when creating individual ads.