Google Business Profile एपीआई में
एपीआई का नया तरीका है. इसकी मदद से, एक ही एपीआई अनुरोध में कई `डेली मेट्रिक` फ़ेच की जा सकती हैं.
सेवा बंद होने का शेड्यूल देखें. साथ ही, v4 reportInsights API वाले तरीके से Google Business Profile की परफ़ॉर्मेंस एपीआई में माइग्रेट करने के बारे में निर्देश देखें.
Method: accounts.listRecommendGoogleLocations
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
उन सभी GoogleLocation
की सूची बनाएं जिन्हें दिए गए Business Profile खाते के लिए सुझाया गया है. सुझाव सिर्फ़ निजी खातों और लोकेशन ग्रुप के लिए दिए जाते हैं. अन्य सभी तरह के खातों के लिए अनुरोध करने पर गड़बड़ी हो सकती है. लोकेशन ग्रुप के लिए सुझाव, उस ग्रुप की जगहों पर आधारित होते हैं.
निजी खातों के लिए सुझाव, उन सभी जगहों के आधार पर दिए जाते हैं जहां उपयोगकर्ता के पास Business Profile का ऐक्सेस है. इनमें वे जगहें भी शामिल हैं जिन्हें लोकेशन ग्रुप की मदद से ऐक्सेस किया जा सकता है. साथ ही, ये सुझाव, उपयोगकर्ता के लिए जनरेट किए गए सभी सुझावों का सुपरसेट होता है.
एचटीटीपी अनुरोध
GET https://mybusiness.googleapis.com/v4/{name=accounts/*}:recommendGoogleLocations
यह यूआरएल gRPC ट्रांसकोडिंग सिंटैक्स का इस्तेमाल करता है.
पाथ पैरामीटर
पैरामीटर |
name |
string
Google की सुझाई गई जगहों को फ़ेच करने के लिए, खाते के संसाधन का नाम.
|
क्वेरी पैरामीटर
पैरामीटर |
pageSize |
integer
हर पेज पर कितनी जगहों की जानकारी फ़ेच की जा सकती है. डिफ़ॉल्ट वैल्यू 25, कम से कम वैल्यू, और ज़्यादा से ज़्यादा साइज़ 100 है.
|
pageToken |
string
अगर इसके बारे में बताया जाता है, तो जगहों का अगला पेज फिर से हासिल किया जाता है.
|
अनुरोध का मुख्य भाग
अनुरोध का मुख्य हिस्सा खाली होना चाहिए.
जवाब का मुख्य भाग
अगर एपीआई सही से जुड़ जाता है, ताे जवाब के मुख्य भाग में नीचे दिए गए स्ट्रक्चर शामिल होता है.
GoogleLocations.ListrecommendedGoogleLocations के लिए रिस्पॉन्स मैसेज.
इसमें कुछ ऐसी जगहें भी शामिल हैं जिन पर Business Profile के दूसरे उपयोगकर्ताओं ने दावा किया है. ऐसा तब से किया जा रहा है, जब पिछली बार इस Business Profile खाते के लिए, उपयोगकर्ताओं को सुझाव दिए गए थे.
JSON के काेड में दिखाना |
{
"googleLocations": [
{
object (GoogleLocation )
}
],
"totalSize": integer,
"nextPageToken": string
} |
फ़ील्ड |
googleLocations[] |
object (GoogleLocation )
Business Profile खाते के लिए सुझाई गई जगहें. ये सभी चरण, Maps पर मौजूद GoogleLocation को दिखाते हैं. जगहों को Business Profile खाते के हिसाब से घटते क्रम में लगाया जाता है.
|
totalSize |
integer
इस Business Profile खाते के लिए सुझाई गई जगहों की कुल संख्या, पेज पर नंबर डालने के बावजूद.
|
nextPageToken |
string
खोज नतीजों को पेजों में बांटने के दौरान, अगर अगले पेज पर फ़ेच करने के लिए और जगहें उपलब्ध होती हैं, तो इस फ़ील्ड में टोकन का इस्तेमाल होता है. इसकी मदद से, बाद वाले कॉल में जगहों का अगला पेज फ़ेच किया जा सकता है. अगर फ़ेच करने के लिए कोई और जगह नहीं है, तो जवाब में यह फ़ील्ड मौजूद नहीं है.
|
अनुमति पाने के लिंक
इनमें से किसी एक OAuth स्कोप की ज़रूरत होती है:
https://www.googleapis.com/auth/plus.business.manage
https://www.googleapis.com/auth/business.manage
ज़्यादा जानकारी के लिए, OAuth 2.0 की खास जानकारी देखें.
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 2025-08-29 (UTC) को अपडेट किया गया.
[null,null,["आखिरी बार 2025-08-29 (UTC) को अपडेट किया गया."],[[["\u003cp\u003eLists recommended Google Locations for a specified Business Profile account, suitable for personal accounts and location groups.\u003c/p\u003e\n"],["\u003cp\u003eRecommendations are based on locations the user has access to and are sorted by relevance.\u003c/p\u003e\n"],["\u003cp\u003eResponse includes location details, total recommendations, and pagination token for accessing further results.\u003c/p\u003e\n"],["\u003cp\u003eRequires authorization with specific OAuth scopes for Business Profile management.\u003c/p\u003e\n"]]],[],null,["# Method: accounts.listRecommendGoogleLocations\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Path parameters](#body.PATH_PARAMETERS)\n- [Query parameters](#body.QUERY_PARAMETERS)\n- [Request body](#body.request_body)\n- [Response body](#body.response_body)\n - [JSON representation](#body.ListRecommendedGoogleLocationsResponse.SCHEMA_REPRESENTATION)\n- [Authorization Scopes](#body.aspect)\n\nList all the [GoogleLocation](/my-business/reference/rest/v4/googleLocations#GoogleLocation)s that have been recommended to the specified Business Profile account. Recommendations are provided for personal accounts and location groups only, requests for all other account types will result in an error. The recommendations for location groups are based on the locations in that group.\n\nThe recommendations for personal accounts are based on all of the locations that the user has access to on Business Profile (which includes locations they can access through location groups), and is a superset of all recommendations generated for the user.\n\n### HTTP request\n\n`GET https://mybusiness.googleapis.com/v4/{name=accounts/*}:recommendGoogleLocations`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n| Parameters ||\n|--------|----------------------------------------------------------------------------------|\n| `name` | `string` Name of the account resource to fetch recommended Google locations for. |\n\n### Query parameters\n\n| Parameters ||\n|-------------|------------------------------------------------------------------------------------------------------------|\n| `pageSize` | `integer` How many locations to fetch per page. Default is 25, minimum is 1, and maximum page size is 100. |\n| `pageToken` | `string` If specified, the next page of locations is retrieved. |\n\n### Request body\n\nThe request body must be empty.\n\n### Response body\n\nIf successful, the response body contains data with the following structure:\nResponse message for GoogleLocations.ListRecommendedGoogleLocations.\n\nIt also contains some locations that have been claimed by other Business Profile users since the last time they were recommended to this Business Profile account.\n\n| JSON representation ||\n|--------------------------------------------------------------------------------------------------------------------------------------------------------------|---|\n| ``` { \"googleLocations\": [ { object (/my-business/reference/rest/v4/googleLocations#GoogleLocation) } ], \"totalSize\": integer, \"nextPageToken\": string } ``` |\n\n| Fields ||\n|---------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `googleLocations[]` | `object (`[GoogleLocation](/my-business/reference/rest/v4/googleLocations#GoogleLocation)`)` The locations recommended to a Business Profile account. Each of these represents a [GoogleLocation](/my-business/reference/rest/v4/googleLocations#GoogleLocation) that is present on Maps. The locations are sorted in decreasing order of relevance to the Business Profile account. |\n| `totalSize` | `integer` The total number of recommended locations for this Business Profile account, irrespective of pagination. |\n| `nextPageToken` | `string` During pagination, if there are more locations available to be fetched in the next page, this field is populated with a token to fetch the next page of locations in a subsequent call. If there are no more locations to be fetched, this field is not present in the response. |\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)."]]