Method: properties.provisionSubproperty
Buat sub-properti dan filter peristiwa sub-properti yang berlaku untuk sub-properti yang dibuat.
Permintaan HTTP
POST https://analyticsadmin.googleapis.com/v1alpha/properties:provisionSubproperty
URL menggunakan sintaksis gRPC Transcoding.
Isi permintaan
Isi permintaan memuat data dengan struktur berikut:
Kolom |
subproperty |
object (Property )
Wajib. Sub-properti yang akan dibuat.
|
subpropertyEventFilter |
object (SubpropertyEventFilter )
Opsional. Filter peristiwa sub-properti yang akan dibuat di properti biasa.
|
Isi respons
Pesan respons untuk RPC properties.provisionSubproperty.
Jika berhasil, isi respons memuat data dengan struktur berikut:
Kolom |
subproperty |
object (Property )
Sub-properti yang dibuat.
|
subpropertyEventFilter |
object (SubpropertyEventFilter )
Filter peristiwa sub-properti yang dibuat.
|
Cakupan otorisasi
Memerlukan cakupan OAuth berikut:
https://www.googleapis.com/auth/analytics.edit
Kecuali dinyatakan lain, konten di halaman ini dilisensikan berdasarkan Lisensi Creative Commons Attribution 4.0, sedangkan contoh kode dilisensikan berdasarkan Lisensi Apache 2.0. Untuk mengetahui informasi selengkapnya, lihat Kebijakan Situs Google Developers. Java adalah merek dagang terdaftar dari Oracle dan/atau afiliasinya.
Terakhir diperbarui pada 2025-01-14 UTC.
[null,null,["Terakhir diperbarui pada 2025-01-14 UTC."],[[["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"]]