Reklamverenler için Tanımlayıcı (IDFA) desteği
Koleksiyonlar ile düzeninizi koruyun
İçeriği tercihlerinize göre kaydedin ve kategorilere ayırın.
Platform seçin:
iOS
Flutter
Kullanıcı Mesajlaşma Platformu (UMP) SDK'sı, kullanıcılarınızdan Uygulama İzleme Şeffaflığı (ATT) için izin istemeden önce onlara bir IDFA mesajı göstermenize olanak tanır. IDFA mesajı, uygulamanızın tanımlayıcıyı nasıl kullandığını kullanıcılara gösterir.
Bu kılavuzda, IDFA mesajı göstermek için UMP SDK'sını kullanma konusu ele alınmaktadır.
Ön koşullar
Başlamadan önce aşağıdakileri yaptığınızdan emin olun:
Info.plist dosyasını güncelleme
Özel bir uyarı mesajı göstermek için aşağıdakileri yapın:
Info.plist
dosyasını açın.
- Kullanımı açıklayan özel bir mesajla
NSUserTrackingUsageDescription
anahtarını ekleyin:
<key>NSUserTrackingUsageDescription</key>
<string>This identifier will be used to deliver personalized ads to you.</string>
Kullanım açıklaması, izin formunu sunduğunuzda IDFA ATT uyarısının bir parçası olarak görünür:

Ardından, AppTrackingTransparency
çerçevesini bağlayın:

Uygulamanız daha sonra ATT uyarısından önce bir IDFA mesajı gösterir.
Test
Test sırasında, ATT uyarısının yalnızca bir kez göründüğünü unutmayın. Bunun nedeni, requestTrackingAuthorization
tek seferlik bir istek olmasıdır. UMP SDK'da yalnızca yetkilendirme durumu ATTrackingManagerAuthorizationStatusNotDetermined
ise yüklenebilecek bir form bulunur.
Uyarının ikinci kez görünmesi için uygulamanızı test cihazınızdan kaldırıp yeniden yüklemeniz gerekir.
IDFA'lı veya IDFA'sız reklam isteğinde bulunma
Bir kullanıcı ATT'yi reddederse reklam biçiminizin API'lerini kullanarak reklam isteğinde bulunmaya devam edin. Google Mobile Ads SDK'sı, reklam isteğinde IDFA göndermez. Daha fazla bilgi için Reklam biçimi seçme başlıklı makaleyi inceleyin.
Aksi belirtilmediği sürece bu sayfanın içeriği Creative Commons Atıf 4.0 Lisansı altında ve kod örnekleri Apache 2.0 Lisansı altında lisanslanmıştır. Ayrıntılı bilgi için Google Developers Site Politikaları'na göz atın. Java, Oracle ve/veya satış ortaklarının tescilli ticari markasıdır.
Son güncelleme tarihi: 2025-09-02 UTC.
[[["Anlaması kolay","easyToUnderstand","thumb-up"],["Sorunumu çözdü","solvedMyProblem","thumb-up"],["Diğer","otherUp","thumb-up"]],[["İhtiyacım olan bilgiler yok","missingTheInformationINeed","thumb-down"],["Çok karmaşık / çok fazla adım var","tooComplicatedTooManySteps","thumb-down"],["Güncel değil","outOfDate","thumb-down"],["Çeviri sorunu","translationIssue","thumb-down"],["Örnek veya kod sorunu","samplesCodeIssue","thumb-down"],["Diğer","otherDown","thumb-down"]],["Son güncelleme tarihi: 2025-09-02 UTC."],[[["\u003cp\u003eThis guide provides steps to integrate the IDFA message within the User Messaging Platform (UMP) SDK for iOS apps.\u003c/p\u003e\n"],["\u003cp\u003eBefore proceeding, complete the UMP SDK setup and create an IDFA message in AdMob.\u003c/p\u003e\n"],["\u003cp\u003eUpdate your app's \u003ccode\u003eInfo.plist\u003c/code\u003e with \u003ccode\u003eNSUserTrackingUsageDescription\u003c/code\u003e to present a custom message within Apple's App Tracking Transparency dialog.\u003c/p\u003e\n"],["\u003cp\u003eRemember to link the \u003ccode\u003eAppTrackingTransparency\u003c/code\u003e framework to display the IDFA explainer message before the ATT dialog.\u003c/p\u003e\n"],["\u003cp\u003eFor testing, reinstall the app to reset the IDFA authorization status and see the dialog again.\u003c/p\u003e\n"]]],["To support the IDFA message with the UMP SDK, complete the \"Get started\" guide and create an IDFA message. Update the `Info.plist` by adding the `NSUserTrackingUsageDescription` key with a custom message. Link the `AppTrackingTransparency` framework. During testing, note that the IDFA ATT dialog only appears once unless the app is reinstalled, due to `requestTrackingAuthorization` being a one-time request and the status needs to be `ATTrackingManagerAuthorizationStatusNotDetermined`.\n"],null,["Select platform: [iOS](/admob/ios/privacy/idfa \"View this page for the iOS platform docs.\") [Flutter](/admob/flutter/privacy/idfa \"View this page for the Flutter platform docs.\")\n\n\u003cbr /\u003e\n\nThe User Messaging Platform (UMP) SDK lets you present an\n\n[IDFA message](//support.google.com/admob/answer/10115027)\n\nto your users before requesting their consent for\n[App Tracking Transparency](//developer.apple.com/documentation/apptrackingtransparency)\n(ATT). The IDFA message shows your users how your app uses the identifier.\n\nThis guide covers using the UMP SDK to present an IDFA message.\n| **Note:** If you enable both GDPR and IDFA messages, refer to [Which message your users will\n| see](//support.google.com/admob/answer/10114020#which-message-your-users-will-see) for the possible outcomes.\n\nPrerequisites\n\nBefore you begin, make sure you've done the following:\n\n- Complete the [Get started guide](/admob/ios/privacy).\n- [Create an IDFA message](//support.google.com/admob/answer/10115331) in the AdMob UI.\n\nUpdate Info.plist\n\nTo show a custom alert message, do the following:\n\n1. Open the `Info.plist` file.\n2. Add the `NSUserTrackingUsageDescription` key with a custom message that describes the usage:\n\n \u003ckey\u003eNSUserTrackingUsageDescription\u003c/key\u003e\n \u003cstring\u003eThis identifier will be used to deliver personalized ads to you.\u003c/string\u003e\n\nThe usage description appears as part of the IDFA ATT alert when you present the\nconsent form:\n\nThen, link the `AppTrackingTransparency` framework:\n\nYour app then shows an IDFA message before the ATT alert.\n\nTesting\n\nWhile testing, remember that the ATT alert only appears a single time since\n[`requestTrackingAuthorization`](//developer.apple.com/documentation/apptrackingtransparency/attrackingmanager/3547037-requesttrackingauthorization)\nis a one-time request. The UMP SDK only has a form available to load if the\nauthorization status is\n[`ATTrackingManagerAuthorizationStatusNotDetermined`](//developer.apple.com/documentation/apptrackingtransparency/attrackingmanagerauthorizationstatus/attrackingmanagerauthorizationstatusnotdetermined?language=objc).\n\nTo make the alert appear a second time, you must uninstall and reinstall your\napp on your test device.\n\nRequest ads with or without IDFA\n\nIf a user denies ATT, continue to request ads using your ad format's APIs. The\nGoogle Mobile Ads SDK doesn't send IDFA in the ad request. For more details see,\n[Select an ad format](/admob/ios/quick-start#select_an_ad_format)."]]