Method: accounts.conversionSources.patch
Mit Sammlungen den Überblick behalten
Sie können Inhalte basierend auf Ihren Einstellungen speichern und kategorisieren.
Aktualisiert Informationen zu einer vorhandenen Conversion-Quelle. Nur für Merchant Center-Ziel-Conversion-Quellen verfügbar.
HTTP-Anfrage
PATCH https://merchantapi.googleapis.com/conversions/v1beta/{conversionSource.name=accounts/*/conversionSources/*}
Die URL verwendet die Syntax der gRPC-Transcodierung.
Pfadparameter
Parameter |
conversionSource.name |
string
Nur Ausgabe. Kennung. Wird von der Content API beim Erstellen einer neuen ConversionSource generiert. Format: [a-z]{4}:.+ Die vier Zeichen vor dem Doppelpunkt geben den Conversion-Quelltyp an. Der Inhalt nach dem Doppelpunkt ist die ID der Conversion-Quelle dieses Typs. Die ID zweier verschiedener Conversion-Quellen kann für verschiedene Typen identisch sein. Die folgenden Präfixe für den Typ werden unterstützt: - galk: Für GoogleAnalyticsLink-Quellen. – mcdn: Für MerchantCenterDestination-Quellen.
|
Abfrageparameter
Parameter |
updateMask |
string (FieldMask format)
Optional. Liste der aktualisierten Felder.
|
Anfragetext
Der Anfragetext enthält eine Instanz von ConversionSource
.
Antworttext
Wenn der Vorgang erfolgreich abgeschlossen wurde, enthält der Antworttext eine Instanz von ConversionSource
.
Autorisierungsbereiche
Erfordert den folgenden OAuth-Bereich:
https://www.googleapis.com/auth/content
Weitere Informationen finden Sie unter OAuth 2.0 Overview.
Sofern nicht anders angegeben, sind die Inhalte dieser Seite unter der Creative Commons Attribution 4.0 License und Codebeispiele unter der Apache 2.0 License lizenziert. Weitere Informationen finden Sie in den Websiterichtlinien von Google Developers. Java ist eine eingetragene Marke von Oracle und/oder seinen Partnern.
Zuletzt aktualisiert: 2025-01-23 (UTC).
[null,null,["Zuletzt aktualisiert: 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)."]]