Method: accounts.conversionSources.create
Zadbaj o dobrą organizację dzięki kolekcji
Zapisuj i kategoryzuj treści zgodnie ze swoimi preferencjami.
Tworzy nowe źródło konwersji.
Żądanie HTTP
POST https://merchantapi.googleapis.com/conversions/v1beta/{parent=accounts/*}/conversionSources
Adres URL używa składni transkodowania gRPC.
Parametry ścieżki
Parametry |
parent |
string
Wymagane. Konto sprzedawcy, które będzie właścicielem nowego źródła konwersji. Format: accounts/{account}
|
Treść żądania
Treść żądania zawiera wystąpienie elementu ConversionSource
.
Treść odpowiedzi
Jeśli operacja się powiedzie, treść odpowiedzi będzie zawierała nowo utworzoną instancję ConversionSource
.
Zakresy autoryzacji
Wymaga następującego zakresu OAuth:
https://www.googleapis.com/auth/content
Więcej informacji znajdziesz w OAuth 2.0 Overview.
O ile nie stwierdzono inaczej, treść tej strony jest objęta licencją Creative Commons – uznanie autorstwa 4.0, a fragmenty kodu są dostępne na licencji Apache 2.0. Szczegółowe informacje na ten temat zawierają zasady dotyczące witryny Google Developers. Java jest zastrzeżonym znakiem towarowym firmy Oracle i jej podmiotów stowarzyszonych.
Ostatnia aktualizacja: 2025-01-23 UTC.
[null,null,["Ostatnia aktualizacja: 2025-01-23 UTC."],[[["\u003cp\u003eCreates a new conversion source via \u003ccode\u003ePOST\u003c/code\u003e request to the specified endpoint.\u003c/p\u003e\n"],["\u003cp\u003eRequires \u003ccode\u003eparent\u003c/code\u003e as a path parameter specifying the merchant account.\u003c/p\u003e\n"],["\u003cp\u003eRequest body should contain a \u003ccode\u003eConversionSource\u003c/code\u003e object defining the new source.\u003c/p\u003e\n"],["\u003cp\u003eSuccessful response returns the newly created \u003ccode\u003eConversionSource\u003c/code\u003e object.\u003c/p\u003e\n"],["\u003cp\u003eNeeds authorization with the \u003ccode\u003ehttps://www.googleapis.com/auth/content\u003c/code\u003e scope.\u003c/p\u003e\n"]]],["This document details creating a new conversion source via a `POST` HTTP request to `https://merchantapi.googleapis.com/conversions/v1beta/{parent=accounts/*}/conversionSources`. The `parent` path parameter, representing the merchant account, is required. The request body must contain a `ConversionSource` instance, and upon success, the response body returns the newly created `ConversionSource`. Authorization requires the `https://www.googleapis.com/auth/content` OAuth scope. The API utilizes gRPC Transcoding syntax.\n"],null,["# Method: accounts.conversionSources.create\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Path parameters](#body.PATH_PARAMETERS)\n- [Request body](#body.request_body)\n- [Response body](#body.response_body)\n- [Authorization scopes](#body.aspect)\n- [Try it!](#try-it)\n\nCreates a new conversion source.\n\n### HTTP request\n\n`POST https://merchantapi.googleapis.com/conversions/v1beta/{parent=accounts/*}/conversionSources`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n| Parameters ||\n|----------|---------------------------------------------------------------------------------------------------------------|\n| `parent` | `string` Required. The merchant account that will own the new conversion source. Format: `accounts/{account}` |\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 a newly created 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)."]]