مقادیر حالت رضایت را تفسیر کنید
با مجموعهها، منظم بمانید
ذخیره و طبقهبندی محتوا براساس اولویتهای شما.
پلتفرم را انتخاب کنید: Android iOS Flutter UMP SDK میتواند انتخابهای رضایت GDPR را برای حالت رضایت Google تفسیر کند. UMP SDK اهداف زیر را تفسیر می کند:
- ذخیره سازی تبلیغات
- شخصی سازی تبلیغات
- داده های کاربر آگهی
- ذخیره سازی تجزیه و تحلیل
تفسیر مقادیر حالت رضایت برای برنامه هایی که برای استفاده از محصولات شما رضایت می گیرند مفید است.
قبل از شروع
شروع کنید
حالت رضایت را در رابط کاربری AdMob روشن کنید. برای جزئیات بیشتر، به مدیریت تنظیمات حالت رضایت مراجعه کنید.
از UMP SDK نسخه 3.0.0 یا بالاتر استفاده کنید.
قبل از راهاندازی UMP SDK، Firebase را راهاندازی کنید. برای جزئیات بیشتر، به افزودن SDK Analytics به برنامه خود مراجعه کنید.
وضعیت رضایت پیش فرض را تنظیم کنید
زمانی که مقررات اتحادیه اروپا (EU) برای کاربر اعمال می شود، UMP SDK وضعیت رضایت را به روز می کند. هنگامی که مقررات اتحادیه اروپا برای کاربر اعمال نمی شود ، وضعیت رضایت پیش فرض را تنظیم کنید .
از حالت اولیه استفاده کنید
برای استفاده از حالت اولیه، پشتیبانی از حالت اولیه حالت رضایت را ببینید.
جز در مواردی که غیر از این ذکر شده باشد،محتوای این صفحه تحت مجوز Creative Commons Attribution 4.0 License است. نمونه کدها نیز دارای مجوز Apache 2.0 License است. برای اطلاع از جزئیات، به خطمشیهای سایت Google Developers مراجعه کنید. جاوا علامت تجاری ثبتشده Oracle و/یا شرکتهای وابسته به آن است.
تاریخ آخرین بهروزرسانی 2025-08-27 بهوقت ساعت هماهنگ جهانی.
[null,null,["تاریخ آخرین بهروزرسانی 2025-08-27 بهوقت ساعت هماهنگ جهانی."],[],[],null,["# Interpret consent mode values\n\nSelect platform: [Android](/ad-manager/mobile-ads-sdk/android/privacy/consent-mode \"View this page for the Android platform docs.\") [iOS](/ad-manager/mobile-ads-sdk/ios/privacy/consent-mode \"View this page for the iOS platform docs.\") [Flutter](/ad-manager/mobile-ads-sdk/flutter/privacy/consent-mode \"View this page for the Flutter platform docs.\")\n\n\u003cbr /\u003e\n\nThe UMP SDK can interpret GDPR consent choices for Google\n\n[Consent Mode](//support.google.com/admanager/answer/10076805#consentmode).\n\nThe UMP SDK interprets the following purposes:\n\n- ad storage\n- ad personalization\n- ad user data\n- analytics storage\n\nInterpreting consent mode values is useful for apps that get consent for the use\nof your products.\n\nBefore you begin\n----------------\n\n- Make sure you are using the [Google Analytics for Firebase SDK](//firebase.google.com/docs/analytics) in your app.\n- Choose [Basic versus advanced consent mode](//developers.google.com/tag-platform/security/concepts/consent-mode#basic-vs-advanced). Google supports advanced mode by default, while basic mode has additional steps.\n\nGet started\n-----------\n\n1. Turn on consent mode in the AdMob UI. For more details, see\n\n [Manage consent mode settings](//support.google.com/admanager/answer/16053245).\n\n2. Use UMP SDK version 3.0.0 or higher.\n\n3. Initialize Firebase before starting the UMP SDK. For more details, see\n\n [Add the Analytics SDK to your app](//firebase.google.com/docs/analytics/get-started?platform=ios#add-sdk).\n\nSet default consent state\n-------------------------\n\nThe UMP SDK updates the consent state when European Union (EU) regulations\napply to the user.\n\n[Set the default consent state](//developers.google.com/tag-platform/security/guides/app-consent?consentmode=basic&platform=ios#default-consent)\n\nwhen EU regulations don't apply to the user.\n\nUse basic mode\n--------------\n\nTo use basic mode, see [Consent mode basic mode support](//developers.google.com/funding-choices/fc-sdks#consent_mode_basic_mode_support)."]]