Bu kılavuzda, UMP SDK'sının bir parçası olarak ABD eyalet tüzükleri mesajının desteklenmesi için gereken adımlar özetlenmektedir. Bu talimatları, uygulamanızı UMP SDK ile çalıştırma ve mesajınızı ayarlama hakkında ayrıntılı bilgi veren Başlangıç ile birlikte kullanın. Aşağıdaki yönergeler, ABD eyalet yönetmelikleri mesajına özeldir.
Ön koşullar
Devam etmeden önce aşağıdakileri yaptığınızdan emin olun:
Unity eklentisini en son sürüme güncelleyin.
ABD eyaletlerindeki düzenlemelerle ilgili mesajlaşma desteği için
8.7.0
veya daha yeni bir sürümü kullanmanızı öneririz.
Başlayın bölümündeki adımları tamamlayın.
Gizlilik seçenekleri giriş noktası uyguladığınızdan ve gerekirse oluşturduğunuzdan emin olun. Bu rehberi tamamlayarak ABD eyalet tüzükleri mesajınızı kullanıcılarınıza sunmak için bir giriş noktası elde edersiniz.
ABD eyalet yönetmelikleri mesajını diğer mesajlarla birlikte kullanıyorsanız farklı mesajların kullanıcılarınıza ne zaman gösterileceğini anlamak için Kullanılabilen kullanıcı mesajı türleri başlıklı makaleyi inceleyin.
Reşit olma yaşının altındakiler için etiketi ayarlama
Bir kullanıcının reşit olma yaşının altında olup olmadığını belirtmek için
tagForUnderAgeOfConsent (TFUA) değerini ayarlayın. TFUA'yı true olarak ayarladığınızda UMP SDK
kullanıcıdan izin istemez. Uygulamanızın karma bir kitlesi varsa izin istenmemesi için çocuk kullanıcılar için bu parametreyi ayarlayın.
COPPA ve diğer ilgili düzenlemelere uymak için bu parametreyi gerektiğinde ayarlamak sizin sorumluluğunuzdadır.
Aşağıdaki örnekte, UMP izin isteğinde TFUA değeri true olarak ayarlanır:
ConsentRequestParametersparams=newConsentRequestParameters{// Indicate the user is under age of consent.TagForUnderAgeOfConsent=true;};ConsentInformation.Update(params,(FormErrorupdateError)=>
{// ...});
İzin seçeneklerini okuma
Kullanıcı ABD eyalet yönetmelikleriyle ilgili bir karar verdikten sonra, Global Privacy Platform (GPP) spesifikasyonuna uygun olarak yerel depolama alanından kullanıcının seçimini okuyabilirsiniz. Daha fazla bilgi için Uygulama İçi Ayrıntılar bölümüne bakın.
UMP SDK'sının yalnızca IABGPP_GppSID ve IABGPP_HDR_GppString anahtarlarını doldurduğunu unutmayın.
ABD eyalet yönetmelikleri mesajlaşmanızı test etme
ABD eyaletlerindeki tüzüklerle ilgili mesajlaşmanızı test etmek için UMPDebugGeographyRegulatedUSStatedebugGeography kullanarak UMP SDK'nın test cihazınızı, tüzüklere tabi bir ABD eyaletindeymiş gibi değerlendirmesini sağlayın. ABD eyalet yönetmelikleri mesajlarının bastırılmasını zorlamak için UMPDebugGeographyOther de kullanabilirsiniz. debugGeography hakkında daha fazla bilgi için Coğrafi konum zorlama başlıklı makaleyi inceleyin.
[null,null,["Son güncelleme tarihi: 2025-09-05 UTC."],[],[],null,["Select platform: [Android](/admob/android/privacy/us-iab-support \"View this page for the Android platform docs.\") [iOS](/admob/ios/privacy/us-iab-support \"View this page for the iOS platform docs.\") [Unity](/admob/unity/privacy/us-iab-support \"View this page for the Unity platform docs.\")\n\n\u003cbr /\u003e\n\nThis guide outlines the steps required to support the US states regulations\nmessage as part of the UMP SDK. Pair these instructions with\n[Get started](/admob/unity/privacy), which details how to get your app running\nwith the UMP SDK and set up your message. The following guidance is specific to\nthe US states regulations message.\n\nPrerequisites\n\nBefore continuing, ensure you do the following:\n\n- 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.\n- Complete [Get started](/admob/unity/privacy). 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.\n- [Create a US states regulations message](//support.google.com/admob/answer/10860309) for apps.\n- If you're using the US states regulations message alongside other messages, consult [Available user message types](//support.google.com/admob/answer/10114020) to understand when different messages are displayed to your users.\n\nSet the tag for under age of consent\n\nTo indicate whether a user is under the age of consent, set\n`\n`[tagForUnderAgeOfConsent](/admob/unity/reference/class/google-mobile-ads/ump/api/consent-request-parameters#tagforunderageofconsent) (TFUA). When you set TFUA to `true`, the UMP SDK\ndoesn't request consent from the user. If your app has a mixed audience, set\nthis parameter for child users to ensure consent is not requested.\nIt is your\nresponsibility for setting this parameter where necessary to comply with COPPA\nand other relevant regulations.\n| **Important:** The UMP SDK does not forward the TFUA tag set on consent requests to the Google Mobile Ads SDK. You must explicitly set the `tagForUnderAgeOfConsent` or `tagForChildDirectectedTreatment` on ad requests. If you don't set the `tagForUnderAgeOfConsent` or `tagForChildDirectectedTreatment` on ad requests, the UMP SDK does not collect any information that allows Google to determine whether or not users under the age of consent use your app. For more information about data processing restrictions for these users, see [Tag an ad request from an app for child-directed treatment](//support.google.com/admob/answer/6219315).\n\nThe following example sets TFUA to true on a UMP consent request: \n\n ConsentRequestParameters params = new ConsentRequestParameters\n {\n // Indicate the user is under age of consent.\n TagForUnderAgeOfConsent = true;\n };\n\n ConsentInformation.Update(params, (FormError updateError) =\u003e\n {\n // ...\n });\n\nRead consent choices\n\nAfter the user has made a US states regulations decision, you can read\ntheir choice from local storage following the Global Privacy Platform (GPP)\nspec. For more details see,\n[In-App Details](https://github.com/InteractiveAdvertisingBureau/Global-Privacy-Platform/blob/main/Core/CMP%20API%20Specification.md#in-app-details).\nNote that the UMP SDK only populates the `IABGPP_GppSID` and\n`IABGPP_HDR_GppString` keys.\n\nTest your US states regulations messaging\n\nTo test your US states regulations messaging, use the\n`UMPDebugGeographyRegulatedUSState` `debugGeography` to force the UMP\nSDK to treat your test device as if the device were located in a regulated US\nstate. You can also use `UMPDebugGeographyOther` to force suppression of US\nstates regulations messages. For more details on `debugGeography`, see\n[Force a geography](/admob/unity/privacy#force_a_geography).\n| **Note:** `UMPDebugGeographyRegulatedUSState` is only available in Unity plugin 9.4.0 or higher."]]