This guide outlines the steps required to support the US states regulations message as part of the UMP SDK. Pair these instructions with Get started , which details how to get your app running with the UMP SDK and set up your message. The following guidance is specific to the US states regulations message.
پیشنیازها
قبل از ادامه، مطمئن شوید که موارد زیر را انجام میدهید:
- Update to the latest version of the Unity plugin. For US states regulations messaging support, we recommend you to use version 8.7.0 or higher.
- Complete Get started . Be sure to implement a privacy options entrypoint and render it if required. By completing this guide, you have an entrypoint to serve your US states regulations message to your users.
- یک پیام مربوط به مقررات ایالت ایالات متحده برای برنامهها ایجاد کنید .
- If you're using the US states regulations message alongside other messages, consult Available user message types to understand when different messages are displayed to your users.
برچسب را برای افراد زیر سن قانونی تنظیم کنید
برای نشان دادن اینکه آیا کاربر زیر سن قانونی است یا خیر، tagForUnderAgeOfConsent (TFUA) را تنظیم کنید. وقتی TFUA را روی true تنظیم میکنید، UMP SDK از کاربر درخواست رضایت نمیکند. اگر برنامه شما مخاطبان مختلطی دارد، این پارامتر را برای کاربران کودک تنظیم کنید تا اطمینان حاصل شود که رضایت درخواست نمیشود. مسئولیت تنظیم این پارامتر در صورت لزوم برای رعایت COPPA و سایر مقررات مربوطه بر عهده شماست.
The following example sets TFUA to true on a UMP consent request:
ConsentRequestParameters params = new ConsentRequestParameters
{
// Indicate the user is under age of consent.
TagForUnderAgeOfConsent = true;
};
ConsentInformation.Update(params, (FormError updateError) =>
{
// ...
});
گزینههای رضایتنامه را بخوانید
After the user has made a US states regulations decision, you can read their choice from local storage following the Global Privacy Platform (GPP) spec. For more details see, In-App Details . Note that the UMP SDK only populates the IABGPP_GppSID and IABGPP_HDR_GppString keys.
پیامرسانی مقررات ایالتهای آمریکا را آزمایش کنید
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 .