شروع به کار
با مجموعهها، منظم بمانید
ذخیره و طبقهبندی محتوا براساس اولویتهای شما.
پلتفرم را انتخاب کنید: Android iOS Flutter Unity تبلیغات بومی دارایی های تبلیغاتی هستند که با اجزای رابط کاربری بومی پلتفرم به کاربران ارائه می شوند. از نظر کدنویسی، این بدان معناست که وقتی یک تبلیغ بومی بارگیری میشود، برنامه شما یک شی NativeAd
را دریافت میکند که حاوی داراییهای آن است و برنامه شما - به جای Google Mobile Ads SDK - مسئول نمایش آنها است.
این قالب تبلیغاتی برای زمانی است که میخواهید کنترل بیشتری برای سبک دادن به ظاهر تبلیغات خود داشته باشید. اگر به این ویژگی ها نیاز ندارید، از یکی از دیگر قالب های تبلیغاتی ما استفاده کنید.
دو راه برای نمایش تبلیغات بومی در برنامه Flutter وجود دارد:
- الگوهای بومی: قالبهای بومی از پیش تعریفشده با یک Dart API استایلبندی شدهاند.
- راهاندازی پلتفرم: طرحبندیهای خاص پلتفرم که با استفاده از ابزارهای چیدمان Android و iOS تعریف شدهاند.
قالب های بومی
دو نوع قالب برای انتخاب وجود دارد: کوچک یا متوسط. هر قالب با گزینه های یک ظاهر طراحی شده رابط کاربری همراه است. با این حال، آنها سفارشی سازی کمتری نسبت به پیاده سازی راه اندازی پلت فرم ارائه می دهند.
کوچک |
---|
 اندروید |  iOS |
متوسط |
---|
 اندروید |  iOS |
برای جزئیات اجرای الگوهای بومی در Dart، به الگوهای بومی مراجعه کنید.
راه اندازی پلت فرم زمانی بهتر است که به کنترل کامل ظاهر و احساس تبلیغات خود در هر دو سیستم عامل اندروید و iOS نیاز دارید، اما باید برای هر دو کد بنویسید.
برای دستورالعملهای راهاندازی پلتفرم خاص، به تنظیمات پلتفرم مراجعه کنید.
جز در مواردی که غیر از این ذکر شده باشد،محتوای این صفحه تحت مجوز Creative Commons Attribution 4.0 License است. نمونه کدها نیز دارای مجوز Apache 2.0 License است. برای اطلاع از جزئیات، به خطمشیهای سایت Google Developers مراجعه کنید. جاوا علامت تجاری ثبتشده Oracle و/یا شرکتهای وابسته به آن است.
تاریخ آخرین بهروزرسانی 2025-08-30 بهوقت ساعت هماهنگ جهانی.
[null,null,["تاریخ آخرین بهروزرسانی 2025-08-30 بهوقت ساعت هماهنگ جهانی."],[[["\u003cp\u003eNative ads give you control over the ad's look and feel by providing ad assets that your app displays using its own UI components.\u003c/p\u003e\n"],["\u003cp\u003eYou can implement native ads using pre-defined templates with styling options or with platform-specific custom layouts for maximum control.\u003c/p\u003e\n"],["\u003cp\u003eNative templates offer small and medium size options with some styling flexibility while platform setup requires Android and iOS code for full customization.\u003c/p\u003e\n"]]],[],null,["# Get started\n\nSelect platform: [Android](/ad-manager/mobile-ads-sdk/android/native \"View this page for the Android platform docs.\") [iOS](/ad-manager/mobile-ads-sdk/ios/native \"View this page for the iOS platform docs.\") [Flutter](/ad-manager/mobile-ads-sdk/flutter/native \"View this page for the Flutter platform docs.\") [Unity](/ad-manager/mobile-ads-sdk/unity/native-overlay \"View this page for the Unity platform docs.\")\n\n\u003cbr /\u003e\n\nNative ads are ad assets presented to users with UI components native to the\nplatform. In coding terms, this means that when a native ad loads, your app\nreceives a `NativeAd` object that contains its assets, and your app---rather\nthan the Google Mobile Ads SDK---is then responsible for displaying them.\n\nThis ad format is for when you want more control to style the look of your ads.\nIf you don't need these features, use one of our other ad formats.\n\nThere are two ways to display native ads in your Flutter app:\n\n- **Native templates:** Pre-defined native templates styled with a Dart API.\n- **Platform setup:** Custom platform-specific layouts defined using Android and iOS layout tools.\n\nNative templates\n----------------\n\nThere are two template types to choose from: small or medium. Each template\ncomes with UI styling options; however, they offer less customization than\nthe platform setup implementation.\n\n| Small |\n|-------------|---------|\n| **Android** | **iOS** |\n| **Android** | **iOS** |\n\nFor native templates implementation details in Dart, see [Native\ntemplates](/ad-manager/mobile-ads-sdk/flutter/native/templates).\n\nPlatform setup\n--------------\n\nPlatform setup is better when you need complete control of the look and feel for\nyour ads on both Android and iOS platforms, but you'll need to write code for\nboth.\n\nFor platform-specific setup instructions, see [Platform\nsetup](/ad-manager/mobile-ads-sdk/flutter/native/platforms)."]]