Method: properties.googleAdsLinks.patch
Memperbarui GoogleAdsLink di properti
Permintaan HTTP
PATCH https://analyticsadmin.googleapis.com/v1alpha/{googleAdsLink.name=properties/*/googleAdsLinks/*}
URL menggunakan sintaksis gRPC Transcoding.
Parameter jalur
Parameter |
googleAdsLink.name |
string
Hanya output. Format: properties/{propertyId}/googleAdsLinks/{googleAdsLinkId} Catatan: googleAdsLinkId bukan ID pelanggan Google Ads.
|
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 GoogleAdsLink
.
Isi respons
Jika berhasil, isi respons memuat instance GoogleAdsLink
.
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."],[[["Updates a GoogleAdsLink on a specified Google Analytics 4 property."],["The request must include an update mask specifying the fields to be updated."],["Requires `analytics.edit` scope for authorization."],["The API uses PATCH method and gRPC Transcoding syntax for the request URL."],["Both request and response bodies utilize the `GoogleAdsLink` object."]]],["This document details updating a GoogleAdsLink on a property using a PATCH HTTP request to `https://analyticsadmin.googleapis.com/v1alpha/{googleAdsLink.name=properties/*/googleAdsLinks/*}`. The `googleAdsLink.name` path parameter specifies the target link. The `updateMask` query parameter, using a FieldMask format, dictates which fields to modify. The request body contains the `GoogleAdsLink` instance, and a successful response also returns a `GoogleAdsLink` instance. Editing requires `https://www.googleapis.com/auth/analytics.edit` authorization scope.\n"]]