Google Business Performance API memiliki metode API
BARU yang memungkinkan pengambilan beberapa `DailyMetrics` dalam satu permintaan API.
Tinjau
jadwal penghentian dan petunjuk untuk bermigrasi dari metode API reportInsights v4 ke Google Business Profile Performance API.
Method: accounts.create
Tetap teratur dengan koleksi
Simpan dan kategorikan konten berdasarkan preferensi Anda.
Membuat akun dengan nama dan jenis yang ditentukan di bawah induk tertentu.
- Akun pribadi dan Organisasi tidak dapat dibuat.
- Grup Pengguna tidak dapat dibuat dengan akun Pribadi sebagai pemilik utama.
- Grup Lokasi tidak dapat dibuat dengan pemilik utama akun Pribadi jika akun Pribadi berada di Organisasi.
- Grup Lokasi tidak dapat memiliki Grup Lokasi.
Permintaan HTTP
POST https://mybusiness.googleapis.com/v4/accounts
URL menggunakan sintaksis gRPC Transcoding.
Parameter kueri
Parameter |
primaryOwner |
string
Nama resource akun yang akan menjadi pemilik utama akun yang sedang dibuat. URL harus dalam bentuk accounts/{accountId}/ .
|
Isi permintaan
Isi permintaan memuat instance Account
.
Isi respons
Jika berhasil, isi respons memuat instance Account
yang baru dibuat.
Cakupan Otorisasi
Memerlukan salah satu cakupan OAuth berikut:
https://www.googleapis.com/auth/plus.business.manage
https://www.googleapis.com/auth/business.manage
Untuk informasi selengkapnya, lihat Ringkasan OAuth 2.0.
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-07-25 UTC.
[null,null,["Terakhir diperbarui pada 2025-07-25 UTC."],[[["\u003cp\u003eThis endpoint creates a new Google My Business account with a specified name, type, and primary owner, but Personal accounts and Organizations cannot be created directly.\u003c/p\u003e\n"],["\u003cp\u003eLocation Groups have ownership restrictions, preventing creation by Personal accounts under certain conditions or ownership of other Location Groups.\u003c/p\u003e\n"],["\u003cp\u003eThe request requires specifying the primary owner's account ID and the account details in the request body, using the \u003ccode\u003ePOST\u003c/code\u003e method with the provided URL.\u003c/p\u003e\n"],["\u003cp\u003eSuccessful requests return the newly created account details, while authorization requires specific OAuth scopes for account management.\u003c/p\u003e\n"],["\u003cp\u003eThis endpoint is deprecated and Google recommends using the Account Management API instead for creating accounts.\u003c/p\u003e\n"]]],[],null,["# Method: accounts.create\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Query parameters](#body.QUERY_PARAMETERS)\n- [Request body](#body.request_body)\n- [Response body](#body.response_body)\n- [Authorization Scopes](#body.aspect)\n\n| Deprecated. Please use the [Account Management API](https://developers.google.com/my-business/reference/accountmanagement/rest/v1/accounts/create) instead.\nCreates an account with the specified name and type under the given parent.\n\n- Personal accounts and Organizations cannot be created.\n- User Groups cannot be created with a Personal account as primary owner.\n- Location Groups cannot be created with a primary owner of a Personal account if the Personal account is in an Organization.\n- Location Groups cannot own Location Groups.\n\n\u003cbr /\u003e\n\n### HTTP request\n\n`POST https://mybusiness.googleapis.com/v4/accounts`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Query parameters\n\n| Parameters ||\n|----------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `primaryOwner` | `string` The resource name of the account which will be the primary owner of the account being created. It should be of the form `accounts/{accountId}/`. |\n\n### Request body\n\nThe request body contains an instance of [Account](/my-business/reference/rest/v4/accounts#Account).\n\n### Response body\n\nIf successful, the response body contains a newly created instance of [Account](/my-business/reference/rest/v4/accounts#Account).\n\n### Authorization Scopes\n\nRequires one of the following OAuth scopes:\n\n- `https://www.googleapis.com/auth/plus.business.manage`\n- `https://www.googleapis.com/auth/business.manage`\n\nFor more information, see the [OAuth 2.0 Overview](https://developers.google.com/identity/protocols/OAuth2)."]]