Stay organized with collections
Save and categorize content based on your preferences.
GoogleMobileAds.
Api.
MaxAdContentRating
The maximum ad content rating.
Summary
All Google ads will have this content rating or lower.
Content suitable for general audiences, including families.
Content suitable only for mature audiences.
Content suitable for most audiences with parental guidance.
Content suitable for teen and older audiences.
Content suitability is unspecified.
Properties
G
static
MaxAdContentRating
G
Content suitable for general audiences, including families.
MA
static
MaxAdContentRating
MA
Content suitable only for mature audiences.
PG
static
MaxAdContentRating
PG
Content suitable for most audiences with parental guidance.
T
static
MaxAdContentRating
T
Content suitable for teen and older audiences.
Unspecified
static
MaxAdContentRating
Unspecified
Content suitability is unspecified.
Public static functions
ToMaxAdContentRating
MaxAdContentRating
ToMaxAdContentRating
(
string
value
)
Parses MaxAdContentRating
from a string constant.
Parameters
value
String constant representing the content rating.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License
, and code samples are licensed under the Apache 2.0 License
. For details, see the Google Developers Site Policies
. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-08-20 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-20 UTC."],[],["GoogleMobileAds.Api.MaxAdContentRating defines the highest content rating for ads. Available properties include G (general audiences), MA (mature audiences), PG (parental guidance), T (teen and older), and Unspecified. Each property has a `Value` string representation. The `ToMaxAdContentRating` function parses a string into a `MaxAdContentRating`, enabling developers to specify content ratings based on string constants. All ads displayed will have a content rating equal to or lower than the specified maximum.\n"]]