Method: accounts.conversionSources.patch
با مجموعهها، منظم بمانید
ذخیره و طبقهبندی محتوا براساس اولویتهای شما.
اطلاعات یک منبع تبدیل موجود را به روز می کند. فقط برای منابع تبدیل Merchant Center Destination موجود است.
درخواست HTTP
PATCH https://merchantapi.googleapis.com/conversions/v1beta/{conversionSource.name=accounts/*/conversionSources/*}
URL از دستور GRPC Transcoding استفاده می کند.
پارامترهای مسیر
پارامترها |
---|
conversion Source. name | string فقط خروجی شناسه. با ایجاد یک ConversionSource جدید توسط Content API ایجاد شده است. قالب: [az]{4}:.+ چهار کاراکتر قبل از دو نقطه نشان دهنده نوع منبع تبدیل است. محتوای بعد از دو نقطه نشان دهنده شناسه منبع تبدیل در آن نوع است. شناسه دو منبع تبدیل مختلف ممکن است در انواع مختلف یکسان باشد. پیشوندهای نوع زیر پشتیبانی می شوند: - galk: برای منابع GoogleAnalyticsLink. - mcdn: برای منابع MerchantCenterDestination. |
پارامترهای پرس و جو
پارامترها |
---|
update Mask | string ( FieldMask format) اختیاری. لیست فیلدهای در حال به روز رسانی |
درخواست بدن
بدنه درخواست شامل یک نمونه از ConversionSource
است.
بدن پاسخگو
در صورت موفقیت آمیز بودن، بدنه پاسخ حاوی نمونه ای از ConversionSource
است.
محدوده مجوز
به محدوده OAuth زیر نیاز دارد:
-
https://www.googleapis.com/auth/content
برای اطلاعات بیشتر، بهOAuth 2.0 Overview .
جز در مواردی که غیر از این ذکر شده باشد،محتوای این صفحه تحت مجوز Creative Commons Attribution 4.0 License است. نمونه کدها نیز دارای مجوز Apache 2.0 License است. برای اطلاع از جزئیات، به خطمشیهای سایت Google Developers مراجعه کنید. جاوا علامت تجاری ثبتشده Oracle و/یا شرکتهای وابسته به آن است.
تاریخ آخرین بهروزرسانی 2025-01-23 بهوقت ساعت هماهنگ جهانی.
[null,null,["تاریخ آخرین بهروزرسانی 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)."]]