目標對象匯出維度
對 Analytics Data API 目標對象匯出方法提出查詢時支援的維度。核心報表方法 (例如 RunReport
) 接受的維度和指標與目標對象匯出方法不同。
尺寸
您可以在任何資源的目標對象匯出作業中,要求下列維度。在目標對象匯出回應中,針對維度欄指定 AudienceDimension
資源的 name
欄位中的「API 名稱」。
API 名稱 |
UI 名稱 |
說明 |
deviceId |
裝置 ID |
裝置 ID 是瀏覽器或行動應用程式 ID,網站或行動應用程式的每一位匿名使用者各有專屬的裝置 ID。詳情請參閱「裝置 ID」。 |
isAdsPersonalizationAllowed |
是否允許廣告個人化 |
如果使用者符合看到個人化廣告的資格,isAdsPersonalizationAllowed 就會傳回 true 。如果使用者不符合看到個人化廣告的資格,isAdsPersonalizationAllowed 則會傳回 false 。 如果 Google Analytics 無法傳回這位使用者是否符合看到個人化廣告的資格,isAdsPersonalizationAllowed 就會傳回 (not set) ;反過來說,isAdsPersonalizationAllowed 傳回 (not set) ,可視為使用者不一定符合看到個人化廣告的資格。如要顯示個人化廣告,您應該將 isAdsPersonalizationAllowed 傳回「(not set) 」的使用者,視為 isAdsPersonalizationAllowed 傳回「false 」,因為在大多數一般情況下,某些 (not set) 列會納入不符合個人化廣告顯示資格的使用者。 isAdsPersonalizationAllowed 傳回「false 」的使用者仍可用於非廣告用途,例如 A/B 測試和資料探索。 |
isLimitedAdTracking |
是否受限廣告追蹤 |
裝置的「限制廣告追蹤」設定。可能的值包括:true 、false 和 (not set) 。如果 Google Analytics 無法傳回這部裝置的「限制廣告追蹤」設定,isLimitedAdTracking 會傳回 (not set) 。 |
userId |
使用者 ID |
在標記中為此使用者指定的使用者 ID。詳情請參閱「利用 User-ID 評估跨平台活動」。 如果已啟用使用者提供資料收集功能,則可在代碼中連同 User-ID 傳送使用者提供資料,以改善評估成效。詳情請參閱「收集使用者提供的資料」。無論資源是否已啟用使用者提供的資料,userId 都會傳回代碼中指定的使用者 ID。 |
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-03-10 (世界標準時間)。
[null,null,["上次更新時間:2025-03-10 (世界標準時間)。"],[[["The Analytics Data API's Audience Export methods use a specific set of dimensions for querying data, differing from the Core Reporting methods."],["Audience exports support dimensions such as Device ID, Ads Personalization status, Limited Ad Tracking status, and User ID for any Google Analytics property."],["These dimensions provide insights into user characteristics, privacy settings, and identifiers for analysis and audience creation."],["You can include these dimensions in your audience export requests by specifying their API names within the `AudienceDimension` resource."]]],["Audience Export methods in the Analytics Data API support specific dimensions for queries, distinct from Core Reporting methods. These dimensions, specified by their API Name, include `deviceId`, a unique user identifier; `isAdsPersonalizationAllowed`, indicating a user's eligibility for personalized ads; `isLimitedAdTracking`, reflecting the device's ad tracking settings; and `userId`, the user ID defined in tagging. Each dimension's API Name is used in the `AudienceDimension` resource to retrieve corresponding data.\n"]]