قالب تبلیغات بومی را می توان برای ایجاد هر اندازه ای از تبلیغات، از جمله تبلیغات تمام صفحه مانند تبلیغاتی که در برنامه های اجتماعی و سرگرمی بسیار محبوب هستند، استفاده کرد. تبلیغات بومی تمامصفحه میتوانند درآمد و حفظ را بهبود بخشند، یا از طریق تطبیق سبک تجربههای محتوای تمامصفحه موجود، مانند برنامههای اجتماعی، یا از طریق ارائه ابزاری برای قرار دادن تبلیغات در فیدهای «داستانها». در اینجا چند نمونه از تبلیغات بومی تمام صفحه آورده شده است:
هیچ API جداگانه ای برای فراخوانی وجود ندارد تا تبلیغات بومی تمام صفحه را فعال کند تا فراتر از دستورالعمل های Native Advanced ارائه شود. با این حال، بهترین روشهایی وجود دارد که هنگام ایجاد تجربههای تبلیغاتی تمام صفحه توصیه میکنیم:
دارایی ها را در حین پخش ویدیوی بومی قابل کلیک کنید
بهطور پیشفرض Google Mobile Ads SDK userInteractionEnabled را در همه داراییهای تبلیغاتی غیر از mediaView در حالی که نمای رسانه در حال پخش ویدیو است، روی NO تنظیم میکند. در نتیجه، هنگامی که یک ویدیو در حال پخش است، کلیکها روی نمای نشسته در پشت نمای دارایی رخ میدهد. در یک پیاده سازی بومی تمام صفحه، که در آن نماهای دارایی در بالای نمای رسانه قرار می گیرند، نمای رسانه کلیک می شود. نمای رسانه تعامل کاربر را برای کنترلهای بازپخش ویدیو در حین پخش ویدیو کنترل میکند و تنها پس از تکمیل پخش ویدیو به آدرس اینترنتی مقصد آگهی کلیک میکند.
برای اینکه در حین پخش ویدیو، سایر داراییهای تبلیغاتی خود مانند callToActionView را برای کاربر به مقصد آگهی کلیک کنید، هر نمای دارایی را در یک UIView والدین قرار دهید که یک نمای فرعی از نمای آگهی بومی است. ساختار نمای تبلیغات بومی شما باید به شکل زیر باشد:
-- Native Ad View
-- Media View
-- Container View 1
-- Call To Action View
-- Container View 2
-- Headline View
-- Container View 3
-- Body View
قرار دادن نماد AdChoices را سفارشی کنید
بهطور پیشفرض، نماد AdChoices در گوشه سمت راست بالای آگهی قرار میگیرد، اما میتوانید با تنظیم GADAdChoicesPosition بر اساس مکان تبلیغ، هر گوشهای را که نماد AdChoices باید در آن ظاهر شود، مشخص کنید. در سه تصویر در بخش قبل، نماد AdChoices در گوشه ای دور از دکمه Install ، دکمه منو و سایر دارایی های تبلیغاتی قرار گرفته است تا از کلیک های تصادفی جلوگیری شود.
از شناسههای واحد آگهی منحصر به فرد برای هر مکان استفاده کنید
به Google کمک میکند داراییهای تبلیغاتی را برگرداند که بهتر با طرحبندی شما مطابقت داشته باشند
گزارش جامع تری را امکان پذیر می کند.
نمای رسانه خود را روی یک اندازه ثابت تنظیم کنید
گوگل همیشه سعی می کند برای عملکرد بهینه، دارایی های بومی با بهترین اندازه را ارائه دهد. برای تسهیل این امر، اندازه تبلیغات بومی شما باید قابل پیش بینی و سازگار باشد. دارایی نمای رسانه شما باید برای هر درخواست آگهی در همان دستگاه اندازه یکسانی داشته باشد. برای انجام این کار، نمای رسانه خود را روی یک اندازه ثابت تنظیم کنید، یا نمای رسانه را روی MATCH_PARENT تنظیم کنید و نمای والدین را اندازه ثابت کنید. این مرحله را برای هر نمای والدین نمای رسانه ای که اندازه ثابتی ندارد تکرار کنید.
فعال کردن تبلیغات ویدیویی
هنگام پیکربندی تبلیغات بومی در رابط کاربری Ad Manager، نوع رسانه Video را فعال کنید. اجازه دادن به تبلیغات ویدیویی برای رقابت برای موجودی شما می تواند عملکرد را به میزان قابل توجهی بهبود بخشد.
[اختیاری] نسبت ابعاد خاصی را برای دارایی رسانه درخواست کنید
به طور پیش فرض، تبلیغات با هر نسبت ابعادی ممکن است برگردانده شوند. به عنوان مثال، زمانی که برنامه شما در حالت عمودی است، ممکن است دارایی خلاقانه اصلی منظره یا مربعی دریافت کنید. بسته به چیدمان تبلیغات بومی خود، ممکن است بخواهید فقط تبلیغات عمودی، منظره یا مربعی ارائه دهید. میتوانید داراییهایی با نسبتهای ابعادی خاص را درخواست کنید تا به بهترین وجه با چیدمان شما مطابقت داشته باشد.
چشم انداز
مربع
پرتره
سویفت
letaspectRatioOption=NativeAdMediaAdLoaderOptions()aspectRatioOption.mediaAspectRatio=.portraitadLoader=AdLoader(adUnitID:"<var>your ad unit ID</var>",rootViewController:self,adTypes:adTypes,options:[aspectRatioOption])
هدف-C
GADNativeAdMediaAdLoaderOptions*aspectRatioOption=[[GADNativeAdMediaAdLoaderOptionsalloc]init];aspectRatioOption.mediaAspectRatio=GADMediaAspectRatioPortrait;self.adLoader=[[GADAdLoaderalloc]initWithAdUnitID:@"<var>your ad unit ID</var>"rootViewController:selfadTypes:@[GADAdLoaderAdTypeNative]options:@[aspectRatioOption]];
تاریخ آخرین بهروزرسانی 2025-08-27 بهوقت ساعت هماهنگ جهانی.
[null,null,["تاریخ آخرین بهروزرسانی 2025-08-27 بهوقت ساعت هماهنگ جهانی."],[[["\u003cp\u003eFull-screen native ads, popular in social and entertainment apps, can enhance revenue and retention by mirroring existing content styles or integrating into "stories" feeds.\u003c/p\u003e\n"],["\u003cp\u003eTo optimize full-screen native ad experiences, ensure ad assets are clickable during video playback, customize the AdChoices icon placement, and use unique ad unit IDs for each placement.\u003c/p\u003e\n"],["\u003cp\u003eFor optimal performance, maintain consistent media view sizing, enable video ads in Ad Manager, and optionally request specific aspect ratios for the media asset, although 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/ios/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/ios/native/advanced). However,\nthere are best practices we recommend when creating full-screen ad experiences:\n\nMake assets clickable during native video playback\n\n: By default the Google Mobile Ads SDK sets [userInteractionEnabled](//developer.apple.com/documentation/uikit/uiview/1622577-userinteractionenabled)\n to `NO` on all ad assets other than [mediaView](/ad-manager/mobile-ads-sdk/ios/api/reference/Classes/GADNativeAdView#mediaview)\n while the media view is playing video. As a result, when a video is playing,\n clicks occur on the view sitting behind the asset view. In a full screen\n native implementation, where asset views are placed on top of the media view,\n the media view gets the click. The media view handles user interaction for\n video playback controls during video playback, and only clicks through to the\n ad's destination URL once video completes playback.\n\n To make your other ad assets such as [callToActionView](/ad-manager/mobile-ads-sdk/ios/api/reference/Classes/GADNativeAdView#calltoactionview)\n click through to the user to the ad's destination while the video is playing,\n wrap each asset view in a parent UIView that is a subview of the native ad\n view. Your native ad view structure should look like this: \n\n -- Native Ad View\n -- Media View\n -- Container View 1\n -- Call To Action View\n -- Container View 2\n -- Headline View\n -- Container View 3\n -- Body View\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 `GADAdChoicesPosition` 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/ios/api/reference/Enums/GADMediaAspectRatio) to best suit your\n layout.\n\n |-----------|--------|----------|\n | Landscape | Square | Portrait |\n\n \u003cbr /\u003e\n\n ### Swift\n\n let aspectRatioOption = NativeAdMediaAdLoaderOptions()\n aspectRatioOption.mediaAspectRatio = .portrait\n adLoader = AdLoader(\n adUnitID: \"\u003cvar\u003eyour ad unit ID\u003c/var\u003e\",\n rootViewController: self,\n adTypes: adTypes,\n options: [aspectRatioOption])\n\n ### Objective-C\n\n GADNativeAdMediaAdLoaderOptions *aspectRatioOption = [[GADNativeAdMediaAdLoaderOptions alloc] init];\n aspectRatioOption.mediaAspectRatio = GADMediaAspectRatioPortrait;\n self.adLoader = [[GADAdLoader alloc] initWithAdUnitID:@\"\u003cvar\u003eyour ad unit ID\u003c/var\u003e\"\n rootViewController:self\n adTypes:@[ GADAdLoaderAdTypeNative ]\n options:@[ aspectRatioOption ]];\n\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 `GADMediaAspectRatioAny`.\n\n Additional resources\n --------------------\n\n - Full Screen native examples: [Objective-C](//github.com/googleads/googleads-mobile-ios-examples/tree/main/Objective-C/admob/FullScreenNativeExample)"]]