Method: accounts.conversionSources.patch
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
更新现有转化来源的信息。仅适用于 Merchant Center 目标转化来源。
HTTP 请求
PATCH https://merchantapi.googleapis.com/conversions/v1beta/{conversionSource.name=accounts/*/conversionSources/*}
网址采用 gRPC 转码语法。
路径参数
参数 |
conversionSource.name |
string
仅限输出。标识符。在创建新的 ConversionSource 时由 Content API 生成。格式:[a-z]{4}:.+ 英文冒号前的四个字符表示转化来源的类型。冒号后的内容表示相应类型中的转化来源的 ID。两种不同转化来源的 ID 在不同类型之间可能相同。支持以下类型前缀:- galk:适用于 GoogleAnalyticsLink 来源。- mcdn:适用于 MerchantCenterDestination 来源。
|
查询参数
参数 |
updateMask |
string (FieldMask format)
可选。要更新的字段的列表。
|
请求正文
请求正文包含一个 ConversionSource
实例。
响应正文
如果成功,则响应正文包含一个 ConversionSource
实例。
授权范围
需要以下 OAuth 范围:
https://www.googleapis.com/auth/content
如需了解详情,请参阅 OAuth 2.0 Overview。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-01-23。
[null,null,["最后更新时间 (UTC):2025-01-23。"],[[["\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)."]]