پشتیبانی IAB ایالات متحده

پلتفرم مورد نظر: اندروید، iOS و یونیتی

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.

پیش‌نیازها

قبل از ادامه، مطمئن شوید که موارد زیر را انجام می‌دهید:

برای نشان دادن اینکه آیا کاربر زیر سن قانونی است یا خیر، 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 .