Google Business Profile एपीआई में
एपीआई का नया तरीका है. इसकी मदद से, एक ही एपीआई अनुरोध में कई `डेली मेट्रिक` फ़ेच की जा सकती हैं.
सेवा बंद होने का शेड्यूल देखें. साथ ही, v4 reportInsights API वाले तरीके से Google Business Profile की परफ़ॉर्मेंस एपीआई में माइग्रेट करने के बारे में निर्देश देखें.
खाते के डेटा के साथ काम करना
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
इस ट्यूटोरियल में, खाते के डेटा को इस्तेमाल करने का तरीका बताया गया है. My Business खाता मैनेजमेंट एपीआई की मदद से, ये काम किए जा सकते हैं:
- सभी खातों की सूची बनाएं.
- कोई खास खाता दिखाता है.
- किसी खाते की जानकारी अपडेट करना.
शुरू करने से पहले
My Business खाता मैनेजमेंट एपीआई का इस्तेमाल करने से पहले, आपको अपना ऐप्लिकेशन रजिस्टर करना होगा और OAuth 2.0 क्रेडेंशियल हासिल करने होंगे.
Business Profile API का इस्तेमाल शुरू करने के तरीके के बारे में जानने के लिए, सामान्य सेटअप देखें.
सभी खातों की सूची बनाना
पुष्टि किए गए उपयोगकर्ता से जुड़े खातों की पुष्टि करने का सबसे अच्छा तरीका यह है कि उनके सभी खातों की सूची बनाई जाए. किसी उपयोगकर्ता से जुड़े सभी खातों की सूची देखने के लिए, accounts.list
API का इस्तेमाल करें.
पुष्टि किए गए उपयोगकर्ता के सभी खातों की सूची देखने के लिए, इनका इस्तेमाल करें:
$ GET https://mybusinessaccountmanagement.googleapis.com/v1/accounts
किसी खास खाते को वापस लाना
कभी-कभी, आपको पुष्टि किए गए उपयोगकर्ता के लिए, सिर्फ़ किसी खास खाते की जानकारी देखनी होती है. किसी खाते की जानकारी देखने और खाते की अन्य जानकारी की समीक्षा करने के लिए, accounts.get
एपीआई का इस्तेमाल करें.
किसी खाते को नाम से खोजने के लिए, यह तरीका अपनाएं:
$ GET https://mybusinessaccountmanagement.googleapis.com/v1/accounts/{accountId}
खाते की जानकारी अपडेट करना
खाते का नाम बदलना, एडमिन के तौर पर किया जाने वाला बुनियादी काम है. खाते का नाम बदलने के लिए,
accounts.update
एपीआई का इस्तेमाल करें.
किसी खाते का नाम अपडेट करने के लिए, यह तरीका अपनाएं:
$ PUT https://mybusinessaccountmanagement.googleapis.com/v1/accounts/{accountId}
{
"account": {
"accountName": "Anne Droyd"
},
"languageCode": "en",
"validateOnly": "true"
}
पाबंदियां
- खाते के लिए, सिर्फ़
accountName
फ़ील्ड में बदलाव किया जा सकता है. पास किए गए अन्य फ़ील्ड को अनदेखा कर दिया जाता है.
- इस तरह से सिर्फ़
BUSINESS
टाइप के खातों को अपडेट किया जा सकता है.
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 2025-08-29 (UTC) को अपडेट किया गया.
[[["समझने में आसान है","easyToUnderstand","thumb-up"],["मेरी समस्या हल हो गई","solvedMyProblem","thumb-up"],["अन्य","otherUp","thumb-up"]],[["वह जानकारी मौजूद नहीं है जो मुझे चाहिए","missingTheInformationINeed","thumb-down"],["बहुत मुश्किल है / बहुत सारे चरण हैं","tooComplicatedTooManySteps","thumb-down"],["पुराना","outOfDate","thumb-down"],["अनुवाद से जुड़ी समस्या","translationIssue","thumb-down"],["सैंपल / कोड से जुड़ी समस्या","samplesCodeIssue","thumb-down"],["अन्य","otherDown","thumb-down"]],["आखिरी बार 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."]]