試用 Google Analytics 的 MCP 伺服器。從
GitHub 安裝,詳情請參閱
公告。
目標對象匯出維度
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
對 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-07-26 (世界標準時間)。
[null,null,["上次更新時間:2025-07-26 (世界標準時間)。"],[[["\u003cp\u003eThe Analytics Data API's Audience Export methods use a specific set of dimensions for querying data, differing from the Core Reporting methods.\u003c/p\u003e\n"],["\u003cp\u003eAudience exports support dimensions such as Device ID, Ads Personalization status, Limited Ad Tracking status, and User ID for any Google Analytics property.\u003c/p\u003e\n"],["\u003cp\u003eThese dimensions provide insights into user characteristics, privacy settings, and identifiers for analysis and audience creation.\u003c/p\u003e\n"],["\u003cp\u003eYou can include these dimensions in your audience export requests by specifying their API names within the \u003ccode\u003eAudienceDimension\u003c/code\u003e resource.\u003c/p\u003e\n"]]],["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"],null,["# Audience Export Dimensions\n\nThe dimensions supported in queries to the [Audience Export methods](/analytics/devguides/reporting/data/v1/rest/v1beta/properties.audienceExports/create) of the Analytics Data API.\nThe Core Reporting methods ([`RunReport`](/analytics/devguides/reporting/data/v1/rest/v1beta/properties/runReport)\nfor example) accept a different set of [Dimensions \\& Metrics](/analytics/devguides/reporting/data/v1/api-schema)\nthan the Audience Export methods.\n\nDimensions\n----------\n\nThe following dimensions can be requested in audience exports for any property.\nSpecify the \"API Name\" in an\n[`AudienceDimension`](/analytics/devguides/reporting/data/v1/rest/v1beta/properties.audienceExports#AudienceDimension)\nresource's `name` field for a column of the dimension in the audience export\nresponse.\n\n| API Name | UI Name | Description |\n|-------------------------------|--------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `deviceId` | Device ID | A browser-based or mobile-app-based identifier for a unique, pseudonymous website or mobile app user. To learn more, see [Device ID](//support.google.com/analytics/answer/9356035). |\n| `isAdsPersonalizationAllowed` | Is ads personalization allowed | If a user is eligible for ads personalization, isAdsPersonalizationAllowed returns `true`. If a user is not eligible for ads personalization, isAdsPersonalizationAllowed returns `false`. isAdsPersonalizationAllowed returns `(not set)` if Google Analytics can't return whether this user is eligible for ads personalization; users where isAdsPersonalizationAllowed returns `(not set)` may or may not be eligible for personalized ads. For personalized ads, you should treat users where isAdsPersonalizationAllowed = `(not set)` as isAdsPersonalizationAllowed = `false` because, in the most general case, some of the `(not set)` rows will include users that are not eligible for ads personalization. Users where isAdsPersonalizationAllowed = `false` can still be used for non-advertising use cases like A/B testing \\& data explorations. |\n| `isLimitedAdTracking` | Is limited ad tracking | The device's Limit Ad Tracking setting. Possible values include: `true`, `false`, and `(not set)`. isLimitedAdTracking returns `(not set)` if Google Analytics can't return this device's Limit Ad Tracking setting. |\n| `userId` | User ID | The User ID specified for this user in tagging. To learn more, see [Measure activity across platforms with User-ID](//support.google.com/analytics/answer/9213390). If user-provided data collection is turned on, user-provided data along with User-ID can be sent to Google Analytics in tagging to improve measurement. To learn more, see [user-provided data collection](//support.google.com/analytics/answer/14077171). Regardless of whether user-provided data is turned on for your property, `userId` returns the User ID specified in tagging. |"]]