啟用 Ad 支援架構
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
部分 Analytics 功能 (例如目標對象和廣告活動歸因) 及
部分使用者屬性 (例如「年齡」和「興趣」) 需要
AdSupport 架構
如果沒有這個架構,Analytics 就無法收集資訊
讓這些功能正常運作。
如何啟用 AdSupport 架構:
- 在 Xcode 專案中選取專案的目標。
- 選取目標的「一般」分頁。
- 展開「Linked Framework and Libraries」部分。
- 按一下「+」即可新增架構。
- 選取「AdSupport.framework」。
- 將
-ObjC
連結器旗標新增至專案建構設定下方的
Other Linker Flags
。
在將應用程式送交審查之前,請確認您的應用程式符合 IDFA 使用指南。
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-07-24 (世界標準時間)。
[null,null,["上次更新時間:2025-07-24 (世界標準時間)。"],[],[],null,["Some Analytics features, such as audiences and campaign attribution, and\nsome user properties, such as Age and Interests, require the\n[AdSupport framework](https://developer.apple.com/reference/adsupport) to be\nenabled. Without this framework, Analytics cannot collect information\nneeded for these features to function properly.\n\nTo enable the AdSupport framework:\n\n1. In your Xcode project, select your project's target.\n2. Select the **General** tab for your target.\n3. Expand the **Linked Frameworks and Libraries** section.\n4. Click **+** to add a framework.\n5. Select **AdSupport.framework**.\n6. Add the `-ObjC` linker flag to your project's build settings under `Other Linker Flags`.\n\nBefore submitting your app for review, ensure your app complies with\n[IDFA usage guidelines](https://developer.apple.com/library/content/documentation/LanguagesUtilities/Conceptual/iTunesConnect_Guide/Chapters/SubmittingTheApp.html#//apple_ref/doc/uid/TP40011225-CH33-SW8)."]]