Method: accounts.conversionSources.patch
Tetap teratur dengan koleksi
Simpan dan kategorikan konten berdasarkan preferensi Anda.
Memperbarui informasi sumber konversi yang ada. Hanya tersedia untuk sumber konversi Tujuan Merchant Center.
Permintaan HTTP
PATCH https://merchantapi.googleapis.com/conversions/v1beta/{conversionSource.name=accounts/*/conversionSources/*}
URL menggunakan sintaksis gRPC Transcoding.
Parameter jalur
Parameter |
conversionSource.name |
string
Hanya output. ID. Dibuat oleh Content API setelah pembuatan ConversionSource baru. Format: [a-z]{4}:.+ Empat karakter sebelum titik dua mewakili jenis sumber konversi. Konten setelah titik dua mewakili ID sumber konversi dalam jenis tersebut. ID dari dua sumber konversi yang berbeda mungkin sama di berbagai jenis. Awalan jenis berikut didukung: - galk: Untuk sumber GoogleAnalyticsLink. - mcdn: Untuk sumber MerchantCenterDestination.
|
Parameter kueri
Parameter |
updateMask |
string (FieldMask format)
Opsional. Daftar kolom yang diperbarui.
|
Isi permintaan
Isi permintaan memuat instance ConversionSource
.
Isi respons
Jika berhasil, isi respons memuat instance ConversionSource
.
Cakupan otorisasi
Memerlukan cakupan OAuth berikut:
https://www.googleapis.com/auth/content
Untuk mengetahui informasi selengkapnya, lihat OAuth 2.0 Overview.
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-23 UTC.
[null,null,["Terakhir diperbarui pada 2025-01-23 UTC."],[[["\u003cp\u003eThis operation updates an existing Merchant Center Destination conversion source using an HTTP PATCH request.\u003c/p\u003e\n"],["\u003cp\u003eThe request should target the specific conversion source using its unique name in the path parameter.\u003c/p\u003e\n"],["\u003cp\u003eAn optional \u003ccode\u003eupdateMask\u003c/code\u003e query parameter allows for specifying which fields to update.\u003c/p\u003e\n"],["\u003cp\u003eThe request body must contain a \u003ccode\u003eConversionSource\u003c/code\u003e object with the updated data.\u003c/p\u003e\n"],["\u003cp\u003eSuccessful responses will return the updated \u003ccode\u003eConversionSource\u003c/code\u003e object.\u003c/p\u003e\n"]]],["This document outlines the process for updating an existing Merchant Center Destination conversion source via a `PATCH` request to the Merchant API. The request URL uses gRPC Transcoding and requires a `conversionSource.name` path parameter to identify the specific source. The `updateMask` query parameter specifies which fields to update. The request and response bodies are both `ConversionSource` instances. Authorization requires the `https://www.googleapis.com/auth/content` OAuth scope. The identifier of conversion source is outputed by the Content API.\n"],null,["# Method: accounts.conversionSources.patch\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Path parameters](#body.PATH_PARAMETERS)\n- [Query parameters](#body.QUERY_PARAMETERS)\n- [Request body](#body.request_body)\n- [Response body](#body.response_body)\n- [Authorization scopes](#body.aspect)\n- [Try it!](#try-it)\n\nUpdates information of an existing conversion source. Available only for Merchant Center Destination conversion sources.\n\n### HTTP request\n\n`PATCH https://merchantapi.googleapis.com/conversions/v1beta/{conversionSource.name=accounts/*/conversionSources/*}`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n| Parameters ||\n|-------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `conversionSource.name` | `string` Output only. Identifier. Generated by the Content API upon creation of a new `ConversionSource`. Format: `[a-z]{4}:.+` The four characters before the colon represent the type of conversion source. Content after the colon represents the ID of the conversion source within that type. The ID of two different conversion sources might be the same across different types. The following type prefixes are supported: \\* `galk`: For GoogleAnalyticsLink sources. \\* `mcdn`: For MerchantCenterDestination sources. |\n\n### Query parameters\n\n| Parameters ||\n|--------------|----------------------------------------------------------------------------------------------------------------------------------------------|\n| `updateMask` | `string (`[FieldMask](https://protobuf.dev/reference/protobuf/google.protobuf/#field-mask)` format)` Optional. List of fields being updated. |\n\n### Request body\n\nThe request body contains an instance of [ConversionSource](/merchant/api/reference/rest/conversions_v1beta/accounts.conversionSources#ConversionSource).\n\n### Response body\n\nIf successful, the response body contains an instance of [ConversionSource](/merchant/api/reference/rest/conversions_v1beta/accounts.conversionSources#ConversionSource).\n\n### Authorization scopes\n\nRequires the following OAuth scope:\n\n- `https://www.googleapis.com/auth/content`\n\nFor more information, see the [OAuth 2.0 Overview](/identity/protocols/OAuth2)."]]