试用 Google Analytics 的 MCP 服务器。从
GitHub 安装,并参阅
公告了解详情。
GoogleSignalsSettings
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
字段 |
name |
string
仅限输出。此设置的资源名称。格式:property/{property_id}/googleSignalsSettings 示例:“properties/1000/googleSignalsSettings”
|
state |
enum (GoogleSignalsState )
此设置的状态。
|
consent |
enum (GoogleSignalsConsent )
仅限输出。接受服务条款。
|
GoogleSignalsState
枚举 |
GOOGLE_SIGNALS_STATE_UNSPECIFIED |
Google 信号状态默认为 GOOGLE_SIGNALS_STATE_UNSPECIFIED,表示用户未做出明确的选择。 |
GOOGLE_SIGNALS_ENABLED |
已启用 Google 信号。 |
GOOGLE_SIGNALS_DISABLED |
Google 信号已停用。 |
GoogleSignalsConsent
枚举 |
GOOGLE_SIGNALS_CONSENT_UNSPECIFIED |
Google 信号意见征求值默认为 GOOGLE_SIGNALS_CONSENT_UNSPECIFIED。系统会将它视为 GOOGLE_SIGNALS_CONSENT_NOT_CONSENTED。 |
GOOGLE_SIGNALS_CONSENT_CONSENTED |
已接受服务条款 |
GOOGLE_SIGNALS_CONSENT_NOT_CONSENTED |
尚未接受服务条款 |
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-26。
[null,null,["最后更新时间 (UTC):2025-07-26。"],[[["\u003cp\u003eGoogle Signals Settings control the status and consent for using Google Signals data in Google Analytics.\u003c/p\u003e\n"],["\u003cp\u003eThese settings have three main components: \u003ccode\u003ename\u003c/code\u003e (resource name), \u003ccode\u003estate\u003c/code\u003e (enabled/disabled), and \u003ccode\u003econsent\u003c/code\u003e (terms of service acceptance).\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003estate\u003c/code\u003e determines whether Google Signals is enabled or disabled for data collection.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003econsent\u003c/code\u003e reflects whether the user has accepted the Google Signals terms of service.\u003c/p\u003e\n"],["\u003cp\u003eThe settings are stored as a singleton resource with a specific JSON representation.\u003c/p\u003e\n"]]],["Google Signals settings, a singleton resource, are defined by a `name`, `state`, and `consent`. The `state` determines if Google Signals is enabled or disabled, with an unspecified default. The `consent` indicates if the user has accepted the terms of service, with an unspecified default being treated as not consented. The resource name is output only and follows the format \"properties/{property_id}/googleSignalsSettings\". These settings can be represented in JSON.\n"],null,["# GoogleSignalsSettings\n\n- [JSON representation](#SCHEMA_REPRESENTATION)\n- [GoogleSignalsState](#GoogleSignalsState)\n- [GoogleSignalsConsent](#GoogleSignalsConsent)\n\nSettings values for Google Signals. This is a singleton resource.\n\n| JSON representation |\n|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"name\": string, \"state\": enum (/analytics/devguides/config/admin/v1/rest/v1alpha/GoogleSignalsSettings#GoogleSignalsState), \"consent\": enum (/analytics/devguides/config/admin/v1/rest/v1alpha/GoogleSignalsSettings#GoogleSignalsConsent) } ``` |\n\n| Fields ||\n|-----------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `name` | `string` Output only. Resource name of this setting. Format: properties/{property_id}/googleSignalsSettings Example: \"properties/1000/googleSignalsSettings\" |\n| `state` | `enum (`[GoogleSignalsState](/analytics/devguides/config/admin/v1/rest/v1alpha/GoogleSignalsSettings#GoogleSignalsState)`)` Status of this setting. |\n| `consent` | `enum (`[GoogleSignalsConsent](/analytics/devguides/config/admin/v1/rest/v1alpha/GoogleSignalsSettings#GoogleSignalsConsent)`)` Output only. Terms of Service acceptance. |\n\nGoogleSignalsState\n------------------\n\nStatus of the Google Signals settings.\n\n| Enums ||\n|------------------------------------|--------------------------------------------------------------------------------------------------------------------------------|\n| `GOOGLE_SIGNALS_STATE_UNSPECIFIED` | Google Signals status defaults to GOOGLE_SIGNALS_STATE_UNSPECIFIED to represent that the user has not made an explicit choice. |\n| `GOOGLE_SIGNALS_ENABLED` | Google Signals is enabled. |\n| `GOOGLE_SIGNALS_DISABLED` | Google Signals is disabled. |\n\nGoogleSignalsConsent\n--------------------\n\nConsent field of the Google Signals settings.\n\n| Enums ||\n|----------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------|\n| `GOOGLE_SIGNALS_CONSENT_UNSPECIFIED` | Google Signals consent value defaults to GOOGLE_SIGNALS_CONSENT_UNSPECIFIED. This will be treated as GOOGLE_SIGNALS_CONSENT_NOT_CONSENTED. |\n| `GOOGLE_SIGNALS_CONSENT_CONSENTED` | Terms of service have been accepted |\n| `GOOGLE_SIGNALS_CONSENT_NOT_CONSENTED` | Terms of service have not been accepted |"]]