Method: accounts.conversionSources.patch
Koleksiyonlar ile düzeninizi koruyun
İçeriği tercihlerinize göre kaydedin ve kategorilere ayırın.
Mevcut bir dönüşüm kaynağının bilgilerini günceller. Yalnızca Merchant Center hedef dönüşüm kaynakları için kullanılabilir.
HTTP isteği
PATCH https://merchantapi.googleapis.com/conversions/v1beta/{conversionSource.name=accounts/*/conversionSources/*}
URL, gRPC Kod Dönüştürme söz dizimini kullanır.
Yol parametreleri
Parametreler |
conversionSource.name |
string
Yalnızca çıkış. Tanımlayıcı. Yeni bir ConversionSource oluşturulduğunda Content API tarafından oluşturulur. Biçim: [a-z]{4}:.+ İki nokta üst üste işaretinden önceki dört karakter, dönüşüm kaynağının türünü temsil eder. İki nokta işaretinden sonraki içerik, söz konusu türdeki dönüşüm kaynağının kimliğini temsil eder. İki farklı dönüşüm kaynağının kimliği, farklı türlerde aynı olabilir. Aşağıdaki tür ön ekleri desteklenir: - galk: GoogleAnalyticsLink kaynakları için. - mcdn: MerchantCenterDestination kaynakları için.
|
Sorgu parametreleri
Parametreler |
updateMask |
string (FieldMask format)
İsteğe bağlıdır. Güncellenen alanların listesi.
|
İstek içeriği
İstek metni, ConversionSource
öğesinin bir örneğini içerir.
Yanıt gövdesi
Başarılıysa yanıt metni, ConversionSource
öğesinin bir örneğini içerir.
Yetkilendirme kapsamları
Aşağıdaki OAuth kapsamını gerektirir:
https://www.googleapis.com/auth/content
Daha fazla bilgi için OAuth 2.0 Overview sayfasına bakın.
Aksi belirtilmediği sürece bu sayfanın içeriği Creative Commons Atıf 4.0 Lisansı altında ve kod örnekleri Apache 2.0 Lisansı altında lisanslanmıştır. Ayrıntılı bilgi için Google Developers Site Politikaları'na göz atın. Java, Oracle ve/veya satış ortaklarının tescilli ticari markasıdır.
Son güncelleme tarihi: 2025-01-23 UTC.
[null,null,["Son güncelleme tarihi: 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)."]]