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 Google ads will adhere to this specified content rating or a lower one.\u003c/p\u003e\n"],["\u003cp\u003eDevelopers can use this to filter ads based on content suitability (G, PG, T, MA).\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eToMaxAdContentRating\u003c/code\u003e function helps parse the content rating from a string value.\u003c/p\u003e\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](/ad-manager/mobile-ads-sdk/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](/ad-manager/mobile-ads-sdk/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](/ad-manager/mobile-ads-sdk/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](/ad-manager/mobile-ads-sdk/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](/ad-manager/mobile-ads-sdk/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](/ad-manager/mobile-ads-sdk/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](/ad-manager/mobile-ads-sdk/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](/ad-manager/mobile-ads-sdk/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](/ad-manager/mobile-ads-sdk/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](/ad-manager/mobile-ads-sdk/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](/ad-manager/mobile-ads-sdk/unity/reference/class/google-mobile-ads/api/max-ad-content-rating#class_google_mobile_ads_1_1_api_1_1_max_ad_content_rating). |"]]