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.
Properties
|
G
|
Content suitable for general audiences, including families.
|
MA
|
Content suitable only for mature audiences.
|
PG
|
Content suitable for most audiences with parental guidance.
|
T
|
Content suitable for teen and older audiences.
|
Unspecified
|
Content suitability is unspecified.
|
Value
|
string
|
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.
Details |
Parameters |
value
|
String constant representing the content rating.
|
|
Returns
|
|
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.
[null,null,["Last updated 2025-08-20 UTC."],[[["\u003cp\u003e\u003ccode\u003eGoogleMobileAds.Api.MaxAdContentRating\u003c/code\u003e defines the maximum content rating for Google ads.\u003c/p\u003e\n"],["\u003cp\u003eAll served ads will have a content rating at or below the specified maximum.\u003c/p\u003e\n"],["\u003cp\u003eDevelopers can choose from content ratings such as \u003ccode\u003eG\u003c/code\u003e, \u003ccode\u003ePG\u003c/code\u003e, \u003ccode\u003eT\u003c/code\u003e, \u003ccode\u003eMA\u003c/code\u003e, or leave it \u003ccode\u003eUnspecified\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eToMaxAdContentRating\u003c/code\u003e is a function to parse \u003ccode\u003eMaxAdContentRating\u003c/code\u003e from a string value.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eValue\u003c/code\u003e provides the string representation of the \u003ccode\u003eMaxAdContentRating\u003c/code\u003e.\u003c/p\u003e\n"]]],["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"],null,["# GoogleMobileAds.Api.MaxAdContentRating Class Reference\n\nGoogleMobileAds.Api.MaxAdContentRating\n======================================\n\nThe maximum ad content rating.\n\nSummary\n-------\n\nAll Google ads will have this content rating or lower.\n\n| ### Properties ||\n|--------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [G](#class_google_mobile_ads_1_1_api_1_1_max_ad_content_rating_1abbba1fe8c517b01ae0b86d6d4488dc2b) | `static `[MaxAdContentRating](/admob/unity/reference/class/google-mobile-ads/api/max-ad-content-rating#class_google_mobile_ads_1_1_api_1_1_max_ad_content_rating) Content suitable for general audiences, including families. |\n| [MA](#class_google_mobile_ads_1_1_api_1_1_max_ad_content_rating_1ae562f9ab8a1ceea700f1d7a5198393ec) | `static `[MaxAdContentRating](/admob/unity/reference/class/google-mobile-ads/api/max-ad-content-rating#class_google_mobile_ads_1_1_api_1_1_max_ad_content_rating) Content suitable only for mature audiences. |\n| [PG](#class_google_mobile_ads_1_1_api_1_1_max_ad_content_rating_1aa0412e23ab95a0e710d3ca1770745e8b) | `static `[MaxAdContentRating](/admob/unity/reference/class/google-mobile-ads/api/max-ad-content-rating#class_google_mobile_ads_1_1_api_1_1_max_ad_content_rating) Content suitable for most audiences with parental guidance. |\n| [T](#class_google_mobile_ads_1_1_api_1_1_max_ad_content_rating_1ad5d02213748bb41419305b91ab1a2c81) | `static `[MaxAdContentRating](/admob/unity/reference/class/google-mobile-ads/api/max-ad-content-rating#class_google_mobile_ads_1_1_api_1_1_max_ad_content_rating) Content suitable for teen and older audiences. |\n| [Unspecified](#class_google_mobile_ads_1_1_api_1_1_max_ad_content_rating_1ab8a060f00eb414cec8deb41ad273fb45) | `static `[MaxAdContentRating](/admob/unity/reference/class/google-mobile-ads/api/max-ad-content-rating#class_google_mobile_ads_1_1_api_1_1_max_ad_content_rating) Content suitability is unspecified. |\n| [Value](#class_google_mobile_ads_1_1_api_1_1_max_ad_content_rating_1a59aacb827e295a61e8f4af81a6c3aac3) | `string` String representation of [MaxAdContentRating](/admob/unity/reference/class/google-mobile-ads/api/max-ad-content-rating#class_google_mobile_ads_1_1_api_1_1_max_ad_content_rating). |\n\n| ### Public static functions ||\n|---------------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [ToMaxAdContentRating](#class_google_mobile_ads_1_1_api_1_1_max_ad_content_rating_1aadba23cfc50708f53212fbcd490858da)`(string value)` | [MaxAdContentRating](/admob/unity/reference/class/google-mobile-ads/api/max-ad-content-rating#class_google_mobile_ads_1_1_api_1_1_max_ad_content_rating) Parses [MaxAdContentRating](/admob/unity/reference/class/google-mobile-ads/api/max-ad-content-rating#class_google_mobile_ads_1_1_api_1_1_max_ad_content_rating) from a string constant. |\n\nProperties\n----------\n\n### G\n\n```c#\nstatic MaxAdContentRating G\n``` \nContent suitable for general audiences, including families. \n\n### MA\n\n```c#\nstatic MaxAdContentRating MA\n``` \nContent suitable only for mature audiences. \n\n### PG\n\n```c#\nstatic MaxAdContentRating PG\n``` \nContent suitable for most audiences with parental guidance. \n\n### T\n\n```c#\nstatic MaxAdContentRating T\n``` \nContent suitable for teen and older audiences. \n\n### Unspecified\n\n```c#\nstatic MaxAdContentRating Unspecified\n``` \nContent suitability is unspecified. \n\n### Value\n\n```c#\nstring Value\n``` \nString representation of [MaxAdContentRating](/admob/unity/reference/class/google-mobile-ads/api/max-ad-content-rating#class_google_mobile_ads_1_1_api_1_1_max_ad_content_rating).\n\nPublic static functions\n-----------------------\n\n### ToMaxAdContentRating\n\n```c#\nMaxAdContentRating ToMaxAdContentRating(\n string value\n)\n``` \nParses [MaxAdContentRating](/admob/unity/reference/class/google-mobile-ads/api/max-ad-content-rating#class_google_mobile_ads_1_1_api_1_1_max_ad_content_rating) from a string constant.\n\n\u003cbr /\u003e\n\n| Details ||\n|-------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| Parameters | |---------|--------------------------------------------------| | `value` | String constant representing the content rating. | |\n| **Returns** | The parsed [MaxAdContentRating](/admob/unity/reference/class/google-mobile-ads/api/max-ad-content-rating#class_google_mobile_ads_1_1_api_1_1_max_ad_content_rating). |"]]