Method: accounts.conversionSources.create
Tetap teratur dengan koleksi
Simpan dan kategorikan konten berdasarkan preferensi Anda.
Membuat sumber konversi baru.
Permintaan HTTP
POST https://merchantapi.googleapis.com/conversions/v1beta/{parent=accounts/*}/conversionSources
URL menggunakan sintaksis gRPC Transcoding.
Parameter jalur
Parameter |
parent |
string
Wajib. Akun penjual yang akan memiliki sumber konversi baru. Format: accounts/{account}
|
Isi permintaan
Isi permintaan memuat instance ConversionSource
.
Isi respons
Jika berhasil, isi respons memuat instance ConversionSource
yang baru dibuat.
Cakupan otorisasi
Memerlukan cakupan OAuth berikut:
https://www.googleapis.com/auth/content
Untuk mengetahui informasi selengkapnya, lihat OAuth 2.0 Overview.
Kecuali dinyatakan lain, konten di halaman ini dilisensikan berdasarkan Lisensi Creative Commons Attribution 4.0, sedangkan contoh kode dilisensikan berdasarkan Lisensi Apache 2.0. Untuk mengetahui informasi selengkapnya, lihat Kebijakan Situs Google Developers. Java adalah merek dagang terdaftar dari Oracle dan/atau afiliasinya.
Terakhir diperbarui pada 2025-01-23 UTC.
[null,null,["Terakhir diperbarui pada 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)."]]