TheDocumentation 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.
RequestConfig interface defines settings that control ad request behavior, including privacy settings, content ratings, and testing options. This interface is extended by AdMobConfig and can be used when creating individual ad requests.
Interface
Properties
Sets the maximum ad content rating for ads displayed in your app.Possible values:
"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 you want Google to treat your content as child-directed when making ad requests.
true- Tag ad requests for child-directed treatmentfalse- Tag ad requests for non-child-directed treatmentnullorundefined- Do not tag ad requests (default)
Indicates whether users are under the age of consent for data processing.
true- User is under the age of consentfalse- User is not under the age of consentnullorundefined- Age of consent status is unspecified (default)
An array of test device IDs that should receive test ads instead of production ads.Use this during development to avoid policy violations. Device IDs are typically logged in the console when running the app.
MaxAdContentRating Type
| Rating | Description |
|---|---|
"G" | General audiences - Content suitable for all ages, including families |
"PG" | Parental guidance - Content suitable for most audiences with parental guidance |
"T" | Teen - Content suitable for teen and older audiences |
"MA" | Mature audiences - Content suitable only for mature audiences |
"" | Unspecified - No content rating specified (allows all ratings) |
Usage Examples
Global Configuration
Child-Directed App
Testing Configuration
GDPR Compliance
Related
- AdMobConfig - Extended configuration including app-level settings
- Events - AdMob event types