این راهنما مراحل مورد نیاز برای پشتیبانی از پیام مقررات ایالتهای ایالات متحده را به عنوان بخشی از UMP SDK تشریح میکند. این دستورالعملها را با «شروع کنید» همراه کنید، که جزئیات نحوه اجرای برنامه شما با UMP SDK و تنظیم پیام شما را شرح میدهد. راهنمایی زیر مختص پیام مقررات ایالتهای ایالات متحده است.
پیشنیازها
Before continuing, ensure you do the following:
- به آخرین نسخه UMP SDK بهروزرسانی کنید. برای پشتیبانی از پیامرسانی مقررات ایالتهای ایالات متحده، توصیه میکنیم از نسخه ۲.۱.۰ یا بالاتر استفاده کنید.
- UMP SDK را راهاندازی کنید . حتماً یک نقطه ورود برای گزینههای حریم خصوصی پیادهسازی کنید و در صورت لزوم آن را رندر کنید. با تکمیل این راهنما، یک نقطه ورود برای ارائه پیام مقررات ایالتهای ایالات متحده به کاربران خود دارید.
- Create a US states regulations message for apps.
- اگر از پیام مقررات ایالتهای ایالات متحده در کنار سایر پیامها استفاده میکنید، برای اطلاع از زمان نمایش پیامهای مختلف به کاربرانتان، به بخش «انواع پیامهای موجود برای کاربران» مراجعه کنید.
Set the tag for under age of consent
To indicate whether a user is under the age of consent, set setTagForUnderAgeOfConsent (TFUA). When you set TFUA to true , the UMP SDK doesn't request consent from the user. If your app has a mixed audience, set this parameter for child users to ensure consent is not requested. It is your responsibility for setting this parameter where necessary to comply with COPPA and other relevant regulations.
The following example sets TFUA to true on a UMP consent request:
جاوا
ConsentRequestParameters params =
new ConsentRequestParameters.Builder()
// Indicate the user is under age of consent.
.setTagForUnderAgeOfConsent(true)
.build();
کاتلین
val params =
ConsentRequestParameters.Builder()
// Indicate the user is under age of consent.
.setTagForUnderAgeOfConsent(true)
.build()
Read consent choices
پس از اینکه کاربر تصمیمی در مورد مقررات ایالتهای ایالات متحده گرفت، میتوانید انتخاب او را از حافظه محلی و طبق مشخصات پلتفرم جهانی حریم خصوصی (GPP) بخوانید. برای جزئیات بیشتر، به جزئیات درون برنامه مراجعه کنید. توجه داشته باشید که UMP SDK فقط کلیدهای IABGPP_GppSID و IABGPP_HDR_GppString را پر میکند.
Test your US states regulations messaging
To test your US states regulations messaging, use the UMPDebugGeographyRegulatedUSState debugGeography to force the UMP SDK to treat your test device as if the device were located in a regulated US state. You can also use UMPDebugGeographyOther to force suppression of US states regulations messages. For more details on debugGeography , see Force a geography .