请务必为应用中的每个不同广告展示位置创建一个唯一广告单元 ID,即使所有广告展示位置都采用相同的格式也是如此。例如,如果您在应用中的现有原生广告展示位置实现了非全屏体验,可以使用新的广告单元 ID 来实现全屏体验。使用唯一广告单元具有以下优势:
最大限度提升广告效果
有助于 Google 返回更符合您的布局的广告素材资源
实现更全面的报告。
为媒体视图设置一致的尺寸
Google 始终致力于提供最佳尺寸的原生素材资源,以实现理想的广告效果。为方便起见,原生广告的尺寸应该可预测且保持一致。同一设备上发出的每个广告请求的媒体视图素材资源都应具有相同的尺寸。为此,请将媒体视图设置为固定尺寸,或者将媒体视图设置为 MATCH_PARENT,并将父视图设置为固定尺寸。对于非固定尺寸的媒体视图的每个父视图,应重复执行此步骤。
启用视频广告
在 Ad Manager 界面中配置原生广告时,请启用 Video 媒体类型。允许视频广告竞争您的广告资源可显著提高成效。
[null,null,["最后更新时间 (UTC):2025-08-25。"],[[["\u003cp\u003eFull-screen native ads, ideal for social and entertainment apps, can enhance revenue and user retention by seamlessly integrating into content experiences.\u003c/p\u003e\n"],["\u003cp\u003eWhen implementing full-screen native ads, ensure the AdChoices icon is strategically placed, and dedicated ad unit IDs are used for each placement to optimize performance and reporting.\u003c/p\u003e\n"],["\u003cp\u003eFor optimal ad serving, maintain a consistent size for the media view within your native ads and enable video ads to broaden ad inventory and potentially boost revenue.\u003c/p\u003e\n"],["\u003cp\u003eWhile optional, consider requesting specific aspect ratios for media assets to better align with your layout, but be aware this might limit ad availability.\u003c/p\u003e\n"]]],[],null,["# Full-screen native ads\n\nSelect platform: [Android](/ad-manager/mobile-ads-sdk/android/native/full-screen \"View this page for the Android platform docs.\") [iOS](/ad-manager/mobile-ads-sdk/ios/native/full-screen \"View this page for the iOS platform docs.\")\n\n\u003cbr /\u003e\n\nThe [native ad format](/ad-manager/mobile-ads-sdk/android/native) can be used\nto create any size of ad, including full-screen ads like those that are highly\npopular in social and entertainment apps. Full-screen native ads can improve\nrevenue and retention, either through matching the style of existing\nfull-screen content experiences such as in social apps, or through providing a\nmeans to place ads in \"stories\" feeds. Here are some examples of\nfull-screen native ads:\n\n\nThere is no separate API to call to enable full-screen native ads to serve\nbeyond the instructions for [Native\nAdvanced](/ad-manager/mobile-ads-sdk/android/native/advanced). However,\nthere are best practices we recommend when creating full-screen ad experiences:\n\nCustomize the AdChoices icon placement\n: By default, the AdChoices icon is placed at the top-right corner of the ad,\n but you can specify any corner where the AdChoices icon should appear by\n setting the `AdChoicesPosition` based on placement of the ad. In the\n three images in the previous section, the AdChoices icon is placed in a\n corner far away from the **Install** button, the menu button and other ad\n assets to avoid accidental clicks.\n\nUse unique ad unit IDs for each placement\n\n: Be sure to [create a unique ad unit\n ID](//support.google.com/admanager/answer/10477477) for each different ad placement\n in your app, even if all ad placements are the same format. For example, if\n you have an existing native ad placement in your app for a non-full screen\n experience, use a new ad unit ID for the full screen experience. Using unique\n ad units:\n\n - maximizes performance\n - helps Google return ad assets that better fit your layouts\n - enables more comprehensive reporting.\n\nSet your media view to a consistent size\n\n: Google always tries to serve the best-sized native assets for optimal\n performance. To facilitate this, the sizing for your native ads should be\n predictable and consistent. Your media view asset should be the same size for\n every ad request on the same device. To accomplish this, set your media view\n to a fixed size, or set the media view to `MATCH_PARENT` and make the parent\n view a fixed size. Repeat this step for every parent view of the media view\n that is not a fixed size.\n\nEnable video ads\n\n: Enable the `Video` media type when\n\n [configuring native ads](//support.google.com/admanager/answer/7438314)\n\n in the Ad Manager UI. Allowing video ads to compete for your\n inventory can significantly improve performance.\n\n\\[Optional\\] Request specific aspect ratios for the media asset\n\n: By default, ads of any aspect ratio may be returned. For example, you may get\n a landscape or square main creative asset when your app is in portrait\n mode. Depending on your native ad layout, you may want to serve only\n portrait, landscape, or square ads. You can request assets of specific\n [aspect ratios](/ad-manager/mobile-ads-sdk/android/reference/com/google/android/gms/ads/MediaAspectRatio) to best suit your\n layout.\n\n |-----------|--------|----------|\n | Landscape | Square | Portrait |\n\n \u003cbr /\u003e\n\n ### Java\n\n NativeAdOptions nativeAdOptions =\n new NativeAdOptions.Builder().setMediaAspectRatio(MediaAspectRatio.PORTRAIT).build();\n\n AdLoader loader =\n new AdLoader.Builder(context, \"\u003cvar translate=\"no\"\u003eAD_UNIT_ID\u003c/var\u003e\").withNativeAdOptions(nativeAdOptions).build(); \n https://github.com/googleads/googleads-mobile-android-examples/blob/ccc290a583d7f552bdcf81ea76adc05beaa43f0b/java/advanced/APIDemo/app/src/main/java/com/google/android/gms/snippets/NativeAdOptionsSnippets.java#L54-L58\n\n ### Kotlin\n\n val nativeAdOptions =\n NativeAdOptions.Builder().setMediaAspectRatio(MediaAspectRatio.PORTRAIT).build()\n\n val loader = AdLoader.Builder(context, \"\u003cvar translate=\"no\"\u003eAD_UNIT_ID\u003c/var\u003e\").withNativeAdOptions(nativeAdOptions).build() \n https://github.com/googleads/googleads-mobile-android-examples/blob/ccc290a583d7f552bdcf81ea76adc05beaa43f0b/kotlin/advanced/APIDemo/app/src/main/java/com/google/android/gms/snippets/NativeAdOptionsSnippets.kt#L44-L47\n\nReplace \u003cvar class=\"readonly\" translate=\"no\"\u003eAD_UNIT_ID\u003c/var\u003e with your own ad unit ID.\n| **Caution:** Setting media aspect ratio to portrait, landscape, or square will limit ad availability, and may reduce revenue. To optimize revenue, we recommend leaving the media aspect ratio to the default value of `MediaAspectRatio.ANY`.\n\nAdditional resources\n--------------------\n\n- Full screen native example: [Java](//github.com/googleads/googleads-mobile-android-examples/tree/main/java/admob/FullScreenNativeExample)"]]