作为应用开发者,您可以在发出广告请求时表明是否希望 Google 将您的内容视为面向儿童的内容。如果您表明希望 Google 将您的内容视为面向儿童的内容,我们会采取相应措施,在该广告请求上停用针对用户兴趣投放广告和再营销广告。通过使用 RequestConfiguration.TagForChildDirectedTreatment,该设置可用于所有版本的 Google Play 服务 SDK:
[[["易于理解","easyToUnderstand","thumb-up"],["解决了我的问题","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["没有我需要的信息","missingTheInformationINeed","thumb-down"],["太复杂/步骤太多","tooComplicatedTooManySteps","thumb-down"],["内容需要更新","outOfDate","thumb-down"],["翻译问题","translationIssue","thumb-down"],["示例/代码问题","samplesCodeIssue","thumb-down"],["其他","otherDown","thumb-down"]],["最后更新时间 (UTC):2025-08-25。"],[[["\u003cp\u003eThis guide provides instructions on how to configure ad requests by setting targeting parameters within the \u003ccode\u003eRequestConfiguration\u003c/code\u003e object.\u003c/p\u003e\n"],["\u003cp\u003eYou can specify whether ad content should be treated as child-directed for COPPA compliance using \u003ccode\u003eTagForChildDirectedTreatment\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eTo comply with GDPR for users under the age of consent in the EEA, use \u003ccode\u003eTagForUnderAgeOfConsent\u003c/code\u003e to disable personalized and third-party ads.\u003c/p\u003e\n"],["\u003cp\u003eAd content filtering can be applied by setting a maximum ad content rating using \u003ccode\u003eMaxAdContentRating\u003c/code\u003e to restrict the maturity level of ads shown.\u003c/p\u003e\n"]]],["The document outlines configuring ad requests using `RequestConfiguration`. Key actions include setting test device IDs and applying configurations before SDK initialization. Developers can tag content as child-directed via `TagForChildDirectedTreatment`, disabling IBA and remarketing. They can also use `TagForUnderAgeOfConsent` to mark requests for users under the age of consent, which disables personalized advertising. Lastly, `MaxAdContentRating` filters ad content based on digital content label classifications. It is mentioned not to use both child-directed and user age of consent simultaneously.\n"],null,["Select platform: [Android](/admob/android/targeting \"View this page for the Android platform docs.\") [iOS](/admob/ios/targeting \"View this page for the iOS platform docs.\") [Unity](/admob/unity/targeting \"View this page for the Unity platform docs.\") [Flutter](/admob/flutter/targeting \"View this page for the Flutter platform docs.\")\n\n\u003cbr /\u003e\n\nThis guide explains how to provide targeting information to an ad request.\n\nPrerequisites\n\n- Complete the [Get started guide](/admob/unity/quick-start).\n\nRequest configuration\n\nThe `RequestConfiguration` object collects the global configuration for every ad\nrequest and is applied by `MobileAds.SetRequestConfiguration()`. \n\n // Configure your RequestConfiguration with Test Device Ids.\n MobileAds.SetRequestConfiguration(new RequestConfiguration\n {\n TestDeviceIds = TestDeviceIds\n });\n\nTo ensure that all ad requests apply the request configuration changes, set\nthe request configuration before you\n[Initialize the SDK](/admob/unity/quick-start#initialize_the_sdk).\n\nChild-directed setting\n\nFor purposes of the [Children's Online Privacy Protection Act\n(COPPA)](//www.ftc.gov/tips-advice/business-center/privacy-and-security/children%27s-privacy),\nthere is a setting called \"tag for child-directed treatment.\"\n| **Note:** It may take some time for this designation to take effect in applicable Google services.\n\nAs an app developer, you can indicate whether you want Google to treat your\ncontent as child-directed when you make an ad request. If you indicate that you\nwant Google to treat your content as child-directed, we take steps to disable\nIBA and remarketing ads on that ad request. The setting can be used with all\nversions of the Google Play services SDK via\n`RequestConfiguration.TagForChildDirectedTreatment`:\n\n- Call `TagForChildDirectedTreatment` on `RequestConfiguration` with the argument `TagForChildDirectedTreatment.True` to indicate that you want your content treated as child-directed for the purposes of COPPA.\n- Call `TagForChildDirectedTreatment`on `RequestConfiguration` with the argument `TagForChildDirectedTreatment.False` to indicate that you don't want your content treated as child-directed for the purposes of COPPA.\n- Do not call `TagForChildDirectedTreatment` if you do not wish to indicate how you would like your content treated with respect to COPPA in ad requests.\n\nThe following example indicates that you want your content treated as\nchild-directed for purposes of COPPA: \n\n RequestConfiguration requestConfiguration = new RequestConfiguration\n {\n TagForChildDirectedTreatment = TagForChildDirectedTreatment.True\n };\n MobileAds.SetRequestConfiguration(requestConfiguration);\n\nBy setting this tag, you certify that this notification is accurate and you are\nauthorized to act on behalf of the owner of the app. You understand that abuse\nof this setting may result in termination of your Google account.\n| **Note:** Apps in the [Designed For Families\n| Program](//developer.android.com/distribute/google-play/families.html) as [Primarily child-directed\n| apps](//support.google.com/admob/answer/6223431) and users signed into Google accounts managed with [Family Link](//families.google.com/familylink/) automatically have all content treated as child-directed for all ad requests.\n\nUsers under the age of consent\n\n\nYou can mark your ad requests to receive treatment for users in the\nEuropean Economic Area (EEA) under the age of consent. This feature is\ndesigned to help facilitate compliance with the [General\nData Protection Regulation (GDPR)](//eur-lex.europa.eu/legal-content/EN/TXT/?uri=CELEX:32016R0679). Note that you may have other legal\nobligations under GDPR. Review European Union guidance and consult with\nyour own legal counsel. Note that Google's tools are designed to facilitate\ncompliance and don't relieve any particular publisher of its obligations under\nthe law.\n\n[Learn more about how the GDPR affects\npublishers](//support.google.com/admob/answer/7666366).\n\nWhen using this feature, a Tag For Users under the Age of Consent in\nEurope (TFUA) parameter will be included in the ad request. This parameter\ndisables personalized advertising, including remarketing, for that specific\nad request. It also disables requests to third-party ad vendors,\nsuch as ad measurement pixels and third-party ad servers.\n\nThe setting can be used with all\nversions of the Google Play services SDK via\n`RequestConfiguration.TagForUnderAgeOfConsent`:\n\n- Call `TagForUnderAgeOfConsent` on `RequestConfiguration` with the argument `TagForUnderAgeOfConsent.True`to indicate that you want the request configuration to be handled in a manner suitable for users under the age of consent.\n- Call `TagForUnderAgeOfConsent` on `RequestConfiguration` with the argument `TagForUnderAgeOfConsent.False` indicates that you don't want the request configuration to be handled in a manner suitable for users under the age of consent.\n\nThe following example indicates that you want TFUA included in your ad request: \n\n MobileAds.SetRequestConfiguration(new RequestConfiguration\n {\n TagForUnderAgeOfConsent = TagForUnderAgeOfConsent.True\n });\n\nThe tags to enable the [Child-directed setting](#child-directed_setting)\nand `TagForUnderAgeOfConsent` should not both simultaneously be set to true.\nIf they are, the child-directed setting takes precedence.\n| **Note:** This `TagForUnderAgeOfConsent` parameter is currently NOT forwarded to mediation adapters for third-party ad sources. It is your responsibility to ensure that each third-party ad network in your application serves ads that are appropriate for users under the age of consent per GDPR.\n\nAd content filtering\n\nThe setting can be used with all\nversions of the Google Play services SDK via\n`RequestConfiguration.Builder.SetMaxAdContentRating()`:\n\nApps can set a maximum ad content rating for their request configuration using\nthe Call `MaxAdContentRating` on `RequestConfiguration`.\nAdMob ads returned for these requests have a content rating at or below that\nlevel. The possible values for this network extra are based on [digital content\nlabel classifications](//support.google.com/admob/answer/7562142), and\nshould be one of the following `MaxAdContentRating` objects:\n\n- `MaxAdContentRating.G`\n- `MaxAdContentRating.PG`\n- `MaxAdContentRating.T`\n- `MaxAdContentRating.MA`\n\nThe following code configures a `RequestConfiguration` object to specify that ad\ncontent returned should correspond to a digital content label designation no\nhigher than `G`: \n\n RequestConfiguration requestConfiguration = new RequestConfiguration\n {\n MaxAdContentRating = MaxAdContentRating.G\n };\n MobileAds.SetRequestConfiguration(requestConfiguration);"]]