Method: properties.provisionSubproperty
创建一个子媒体资源以及适用于所创建子媒体资源的子媒体资源事件过滤器。
HTTP 请求
POST https://analyticsadmin.googleapis.com/v1alpha/properties:provisionSubproperty
网址采用 gRPC 转码语法。
请求正文
请求正文中包含结构如下的数据:
字段 |
subproperty |
object (Property )
必需。要创建的子媒体资源。
|
subpropertyEventFilter |
object (SubpropertyEventFilter )
可选。要在普通媒体资源上创建的子媒体资源事件过滤器。
|
响应正文
针对 properties.provisionSubproperty RPC 的响应消息。
如果成功,响应正文将包含结构如下的数据:
字段 |
subproperty |
object (Property )
创建的子媒体资源。
|
subpropertyEventFilter |
object (SubpropertyEventFilter )
创建的子媒体资源事件过滤器。
|
授权范围
需要以下 OAuth 范围:
https://www.googleapis.com/auth/analytics.edit
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-01-14。
[null,null,["最后更新时间 (UTC):2025-01-14。"],[[["Provision a new subproperty and an optional subproperty event filter within a Google Analytics property using the `properties.provisionSubproperty` method."],["The request body requires a `subproperty` object and optionally includes a `subpropertyEventFilter` for defining event filtering criteria."],["A successful response returns the created `subproperty` and the `subpropertyEventFilter` if provided."],["This operation requires the `https://www.googleapis.com/auth/analytics.edit` OAuth scope for authorization."]]],["This content outlines how to provision a subproperty and its event filter using an HTTP POST request. The request, sent to `https://analyticsadmin.googleapis.com/v1alpha/properties:provisionSubproperty`, requires a JSON body containing the `subproperty` object and an optional `subpropertyEventFilter` object. Upon success, the response body will include the created `subproperty` and the `subpropertyEventFilter`, as objects. Authorization using the `analytics.edit` scope is required.\n"]]