Method: properties.audiences.patch
Memperbarui Audiens di properti.
Permintaan HTTP
PATCH https://analyticsadmin.googleapis.com/v1alpha/{audience.name=properties/*/audiences/*}
URL menggunakan sintaksis gRPC Transcoding.
Parameter jalur
Parameter |
audience.name |
string
Hanya output. Nama resource untuk resource Audiens ini. Format: properties/{propertyId}/audiences/{audienceId}
|
Parameter kueri
Parameter |
updateMask |
string (FieldMask format)
Wajib. Daftar kolom yang akan diperbarui. Nama kolom harus dalam snake case (misalnya, "field_to_update"). Kolom yang dihilangkan tidak akan diperbarui. Untuk mengganti seluruh entitas, gunakan satu jalur dengan string "*" untuk mencocokkan semua kolom. Ini adalah daftar dipisahkan koma yang berisi nama-nama kolom yang sepenuhnya memenuhi syarat. Contoh: "user.displayName,photo" .
|
Isi permintaan
Isi permintaan memuat instance Audience
.
Isi respons
Jika berhasil, isi respons memuat instance Audience
.
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."],[[["This method updates an existing Audience on a Google Analytics property using an HTTP PATCH request."],["The request must specify the Audience resource name in the URL path and provide an `updateMask` query parameter indicating the fields to modify."],["The request body should contain the updated Audience data, and a successful response will return the updated Audience resource."],["Authorization requires the `https://www.googleapis.com/auth/analytics.edit` scope."]]],["This document outlines the process to update an Audience on a property via a PATCH request to the specified URL. The URL utilizes gRPC Transcoding syntax and requires the `audience.name` path parameter in the format `properties/*/audiences/*`. A `updateMask` query parameter specifies which fields to modify. The request and response bodies use the Audience resource. The process requires the `https://www.googleapis.com/auth/analytics.edit` OAuth scope for authorization.\n"]]