Google Business Performance API, tek bir API isteğinde birden fazla "GünlükMetrik" getirmeye olanak tanıyan
YENİ bir API yöntemine sahiptir.
Kullanımdan kaldırma planını ve v4 reportInsights API yönteminden Google Business Profile Performance API'ye geçiş talimatlarını inceleyin.
Hesap verileriyle çalışma
Koleksiyonlar ile düzeninizi koruyun
İçeriği tercihlerinize göre kaydedin ve kategorilere ayırın.
Bu eğitimde, hesap verileriyle nasıl çalışacağınız gösterilmektedir. My Business Account Management API ile şunları yapabilirsiniz:
- Tüm hesapları listeleyin.
- Belirli bir hesabı iade edin.
- Hesabı güncelleme.
Başlamadan önce
Benim İşletmem Hesap Yönetimi API'sini kullanmadan önce uygulamanızı kaydettirmeniz ve OAuth 2.0 kimlik bilgileri edinmeniz gerekir.
İşletme Profili API'lerini kullanmaya başlama hakkında ayrıntılı bilgi için Temel kurulum bölümüne bakın.
Tüm hesapları listeleme
Kimliği doğrulanmış bir kullanıcıyla ilişkili hesapları doğrulamanın en iyi yolu, tüm hesaplarını listemektir. Bir kullanıcıyla ilişkili tüm hesapları listelemek için accounts.list
API'sini kullanın.
Kimliği doğrulanmış bir kullanıcının tüm hesaplarını listelemek için aşağıdakileri kullanın:
$ GET https://mybusinessaccountmanagement.googleapis.com/v1/accounts
Belirli bir hesabı döndürme
Bazen yalnızca kimliği doğrulanmış bir kullanıcının belirli bir hesabıyla ilgili bilgileri görmek isteyebilirsiniz. Belirli bir hesabı döndürmek ve ek hesap ayrıntılarını incelemek için accounts.get
API'sini kullanın.
Belirli bir hesabı ada göre döndürmek için aşağıdakileri kullanın:
$ GET https://mybusinessaccountmanagement.googleapis.com/v1/accounts/{accountId}
Hesabı güncelleme
Hesap adını değiştirmek temel bir yönetici görevidir. Hesap adını değiştirmek için accounts.update
API'yi kullanın.
Belirli bir hesabı ada göre güncellemek için aşağıdakileri kullanın:
$ PUT https://mybusinessaccountmanagement.googleapis.com/v1/accounts/{accountId}
{
"account": {
"accountName": "Anne Droyd"
},
"languageCode": "en",
"validateOnly": "true"
}
Kısıtlamalar
- Hesap için düzenlenebilir tek alan
accountName
'tür. İletilen diğer alanlar yoksayılır.
- Yalnızca
BUSINESS
türündeki hesaplar bu şekilde güncellenebilir.
Aksi belirtilmediği sürece bu sayfanın içeriği Creative Commons Atıf 4.0 Lisansı altında ve kod örnekleri Apache 2.0 Lisansı altında lisanslanmıştır. Ayrıntılı bilgi için Google Developers Site Politikaları'na göz atın. Java, Oracle ve/veya satış ortaklarının tescilli ticari markasıdır.
Son güncelleme tarihi: 2025-08-29 UTC.
[null,null,["Son güncelleme tarihi: 2025-08-29 UTC."],[[["\u003cp\u003eThe My Business Account Management API allows you to manage business accounts, including listing all accounts, retrieving specific account details, and updating account names.\u003c/p\u003e\n"],["\u003cp\u003eBefore using the API, you must register your application and obtain OAuth 2.0 credentials as outlined in the basic setup guide.\u003c/p\u003e\n"],["\u003cp\u003eYou can retrieve a list of all accounts associated with an authenticated user or fetch details for a specific account using dedicated API endpoints.\u003c/p\u003e\n"],["\u003cp\u003eUpdating an account is restricted to changing the account name for business type accounts only, with other fields being ignored.\u003c/p\u003e\n"]]],[],null,["# Work with account data\n\n\u003cbr /\u003e\n\nThis tutorial shows you how to work with account data. The My Business Account Management API\nprovides you with the ability to do the following:\n\n- List all accounts.\n- Return a specific account.\n- Update an account.\n\nBefore you begin\n----------------\n\nBefore you use the My Business Account Management API, you need to register your application\nand obtain OAuth 2.0 credentials.\n\nFor details on how to get started with the Business Profile APIs, see\n[Basic setup](/my-business/content/basic-setup).\n\nList all accounts\n-----------------\n\nA great way to validate the accounts associated with an authenticated user is to\nlist all their accounts. Use the [`accounts.list`](/my-business/reference/accountmanagement/rest/v1/accounts/list)\nAPI to list all accounts associated with a user.\n\nTo list all the accounts for an authenticated user, use the following:\nHTTP \n\n```bash\n$ GET https://mybusinessaccountmanagement.googleapis.com/v1/accounts\n```\n\nReturn a specific account\n-------------------------\n\nSometimes, you only want to see information about a specific account for an\nauthenticated user. Use the [`accounts.get`](/my-business/reference/accountmanagement/rest/v1/accounts/get)\nAPI to return a specific account and review additional account details.\n\nTo return a specific account by name, use the following:\nHTTP \n\n```bash\n$ GET https://mybusinessaccountmanagement.googleapis.com/v1/accounts/{accountId}\n```\n\nUpdate an account\n-----------------\n\nChanging an account name is a fundamental administrative task. Use the\n[`accounts.update`](/my-business/reference/accountmanagement/rest/v1/accounts/patch) API to alter\nthe account name.\n\nTo update a specific account by name, use the following:\nHTTP \n\n```bash\n$ PUT https://mybusinessaccountmanagement.googleapis.com/v1/accounts/{accountId}\n\n{\n \"account\": {\n \"accountName\": \"Anne Droyd\"\n },\n \"languageCode\": \"en\",\n \"validateOnly\": \"true\"\n}\n```\n\n### Restrictions\n\n- The only editable field for an account is `accountName`. Any other fields passed are ignored.\n- Only accounts of `BUSINESS` type can be updated in this manner."]]