[null,null,["最后更新时间 (UTC):2025-09-01。"],[[["\u003cp\u003eNative ads offer design flexibility but must adhere to AdMob policies, and Native Validator helps ensure compliance before app release by identifying policy violations in test ads.\u003c/p\u003e\n"],["\u003cp\u003eNative Validator is enabled by default for test ads (not live ads) and displays policy violations through an overlay popup within the app's UI.\u003c/p\u003e\n"],["\u003cp\u003eTo use Native Validator, ensure you have Google Mobile Ads SDK 19.2.0 or higher and your device is configured as a test device.\u003c/p\u003e\n"],["\u003cp\u003eDisabling Native Validator is possible by adding a specific meta-data tag to your AndroidManifest.xml file, but doing so will prevent test ads from showing potential layout issues.\u003c/p\u003e\n"]]],[],null,["# Native Validator\n\nSelect platform: [Android](/admob/android/native/validator \"View this page for the Android platform docs.\") [iOS](/admob/ios/native/validator \"View this page for the iOS platform docs.\")\n\n\u003cbr /\u003e\n\nNative ads lets you design an ad placement that matches the style of your app. While this provides a lot of flexibility, it's important to ensure your placements remain compliant with AdMob policies.\n\n\u003cbr /\u003e\n\nNative Validator is a new feature to help you catch policy violations before\nyour app ships. It automatically identifies certain policy violations in your\napp and notifies you through the app's UI.\n| **Key Point:** Native Validator will appear only on test ads. Live ad requests will never show Native Validator.\n\nNative Validator is enabled by default for test ads, but can be disabled as\nshown below. Keep in mind however that once the validator is disabled, test ads\nwill no longer show information about potential issues with your ad layouts.\n\nPrerequisites\n-------------\n\n- Google Mobile Ads SDK 19.2.0 or higher.\n\n\u003c!-- --\u003e\n\n- Ensure your device is configured as a [test\n device](/admob/android/test-ads#enable_test_devices).\n\nUsing Native Validator\n----------------------\n\nNative Validator automatically alerts you of certain policy violations in your\nUI through an overlay popup next to the ad.\n\nClicking on **See Issues** takes you to a fullscreen list of the relevant policy\nviolations.\n\nDisabling the validator\n-----------------------\n\nTo disable Native Validator, add a `\u003cmeta-data\u003e` tag with a name of\n`com.google.android.gms.ads.flag.NATIVE_AD_DEBUGGER_ENABLED` and value of\n`false` to your `AndroidManifest.xml` within the `\u003capplication\u003e` tag. \n\n \u003cmanifest\u003e\n \u003capplication\u003e\n \u003c!-- Sample AdMob App ID: ca-app-pub-3940256099942544~3347511713 --\u003e\n \u003cmeta-data\n android:name=\"com.google.android.gms.ads.APPLICATION_ID\"\n android:value=\"ca-app-pub-xxxxxxxxxxxxxxxx~yyyyyyyyyy\"/\u003e\n \\\u003cmeta-data android:name=\"com.google.android.gms.ads.flag.NATIVE_AD_DEBUGGER_ENABLED\"\n android:value=\"false\" /\\\u003e\n \u003c/application\u003e\n \u003c/manifest\u003e"]]