Google বিজনেস পারফরম্যান্স API-এর একটি
নতুন API পদ্ধতি রয়েছে যা একটি একক API অনুরোধে একাধিক `DailyMetrics` আনার অনুমতি দেয়। v4 reportInsights API পদ্ধতি থেকে Google Business Profile Performance API-এ স্থানান্তরিত করার জন্য
অবচয়ের সময়সূচী এবং নির্দেশাবলী পর্যালোচনা করুন।
Method: accounts.locations.list
সেভ করা পৃষ্ঠা গুছিয়ে রাখতে 'সংগ্রহ' ব্যবহার করুন
আপনার পছন্দ অনুযায়ী কন্টেন্ট সেভ করুন ও সঠিক বিভাগে রাখুন।
নির্দিষ্ট অ্যাকাউন্টের জন্য অবস্থান তালিকা.
HTTP অনুরোধ
GET https://mybusiness.googleapis.com/v4/{parent=accounts/*}/locations
URL gRPC ট্রান্সকোডিং সিনট্যাক্স ব্যবহার করে।
পাথ প্যারামিটার
পরামিতি |
---|
parent | string যে অ্যাকাউন্ট থেকে অবস্থানগুলি আনতে হবে তার নাম৷ যদি Account AccountType PERSONAL-এর হয়, শুধুমাত্র অ্যাকাউন্টের সরাসরি মালিকানাধীন অবস্থানগুলি ফেরত দেওয়া হয়, অন্যথায় এটি প্রত্যক্ষ বা পরোক্ষভাবে অ্যাকাউন্ট থেকে সমস্ত অ্যাক্সেসযোগ্য অবস্থানগুলি ফিরিয়ে দেবে৷ |
ক্যোয়ারী প্যারামিটার
পরামিতি |
---|
pageSize | integer প্রতি পৃষ্ঠায় কতটি অবস্থান আনতে হবে। ডিফল্ট হল 100, সর্বনিম্ন হল 1, এবং সর্বাধিক পৃষ্ঠার আকার হল 100৷ |
pageToken | string নির্দিষ্ট করা হলে, এটি অবস্থানের পরবর্তী page নিয়ে আসে। পৃষ্ঠার টোকেনটি পূর্ববর্তী কল দ্বারা locations.list এ ফেরত দেওয়া হয় যখন অনুরোধ করা পৃষ্ঠার আকারে ফিট করার চেয়ে বেশি অবস্থান ছিল। |
filter | string একটি ফিল্টার যা অবস্থানগুলিকে ফিরিয়ে আনতে বাধা দেয়৷ প্রতিক্রিয়া শুধুমাত্র ফিল্টার মেলে যে এন্ট্রি অন্তর্ভুক্ত. filter খালি থাকলে, সীমাবদ্ধতা প্রয়োগ করা হয় এবং অনুরোধ করা অ্যাকাউন্টের জন্য সমস্ত অবস্থান (পৃষ্ঠাযুক্ত) পুনরুদ্ধার করা হয়। বৈধ ক্ষেত্র এবং উদাহরণ ব্যবহার সম্পর্কে আরও তথ্যের জন্য, অবস্থান ডেটা গাইডের সাথে কাজ দেখুন। |
languageCode (deprecated) | string বিসিপি 47 কোড অফ ল্যাঙ্গুয়েজ কোড প্রদর্শনের লোকেশন প্রোপার্টি পেতে। যদি কোনটিই পাওয়া না যায়, সেগুলি ইংরেজিতে প্রদান করা হবে৷ অবচয়। 15ই আগস্ট, 2020 এর পরে, এই ক্ষেত্রটি আর প্রয়োগ করা হবে না। পরিবর্তে, অবস্থানের ভাষা সর্বদা ব্যবহার করা হবে। |
orderBy | string অনুরোধের জন্য বাছাই আদেশ. SQL সিনট্যাক্স অনুসরণ করে একাধিক ক্ষেত্র কমা দ্বারা পৃথক করা উচিত। ডিফল্ট সাজানোর ক্রম ক্রমবর্ধমান। নিচের ক্রম নির্দিষ্ট করতে, একটি প্রত্যয় " desc" যোগ করা উচিত। অর্ডার করার বৈধ ক্ষেত্র হল অবস্থানের নাম এবং স্টোরকোড। যেমন: "locationName, storeCode desc" বা "locationName" বা "storeCode desc" |
শরীরের অনুরোধ
অনুরোধের বডি খালি হতে হবে।
প্রতিক্রিয়া শরীর
সফল হলে, প্রতিক্রিয়া বডিতে নিম্নলিখিত কাঠামোর সাথে ডেটা থাকে:
Locations.ListLocations-এর জন্য প্রতিক্রিয়া বার্তা।
JSON প্রতিনিধিত্ব |
---|
{
"locations": [
{
object (Location )
}
],
"nextPageToken": string,
"totalSize": integer
} |
ক্ষেত্র |
---|
locations[] | object ( Location ) অবস্থানগুলি। |
nextPageToken | string যদি অবস্থানের সংখ্যা অনুরোধ করা পৃষ্ঠার আকারকে অতিক্রম করে, তাহলে এই ক্ষেত্রটি একটি টোকেন দিয়ে পূরণ করা হয় যাতে পরবর্তী পৃষ্ঠাটি locations.list এ করা হয়। যদি আর কোনো অবস্থান না থাকে, তাহলে এই ক্ষেত্রটি প্রতিক্রিয়াতে উপস্থিত থাকে না। |
totalSize | integer পৃষ্ঠা সংখ্যা নির্বিশেষে তালিকায় অবস্থানের আনুমানিক সংখ্যা৷ |
অনুমোদনের সুযোগ
নিম্নলিখিত 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 সাইট নীতি দেখুন। Java হল Oracle এবং/অথবা তার অ্যাফিলিয়েট সংস্থার রেজিস্টার্ড ট্রেডমার্ক।
2025-07-25 UTC-তে শেষবার আপডেট করা হয়েছে।
[null,null,["2025-07-25 UTC-তে শেষবার আপডেট করা হয়েছে।"],[[["\u003cp\u003eLists all accessible locations for a specified Google My Business account, including directly or indirectly owned locations based on account type.\u003c/p\u003e\n"],["\u003cp\u003eAllows filtering, pagination, and sorting of location data through query parameters like \u003ccode\u003efilter\u003c/code\u003e, \u003ccode\u003epageSize\u003c/code\u003e, \u003ccode\u003epageToken\u003c/code\u003e, and \u003ccode\u003eorderBy\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eReturns a list of locations with details like location name, store code, and other properties, along with pagination information if applicable.\u003c/p\u003e\n"],["\u003cp\u003eRequires authorization with specific OAuth scopes for accessing and managing business data.\u003c/p\u003e\n"],["\u003cp\u003eProvides a total count of locations irrespective of pagination for easier management and understanding of the data set.\u003c/p\u003e\n"]]],[],null,["# Method: accounts.locations.list\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.ListLocationsResponse.SCHEMA_REPRESENTATION)\n- [Authorization Scopes](#body.aspect)\n\nLists the locations for the specified account.\n\n### HTTP request\n\n`GET https://mybusiness.googleapis.com/v4/{parent=accounts/*}/locations`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n| Parameters ||\n|----------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `parent` | `string` The name of the account to fetch locations from. If the [Account](/my-business/reference/rest/v4/accounts#Account) is of [AccountType](/my-business/reference/rest/v4/accounts#Account.AccountType) PERSONAL, only Locations that are directly owned by the Account are returned, otherwise it will return all accessible locations from the Account, either directly or indirectly. |\n\n### Query parameters\n\n| Parameters ||\n|---------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `pageSize` | `integer` How many locations to fetch per page. Default is 100, minimum is 1, and maximum page size is 100. |\n| `pageToken` | `string` If specified, it fetches the next `page` of locations. The page token is returned by previous calls to `locations.list` when there were more locations than could fit in the requested page size. |\n| `filter` | `string` A filter constraining the locations to return. The response includes only entries that match the filter. If `filter` is empty, then constraints are applied and all locations (paginated) are retrieved for the requested account. For more information about valid fields and example usage, see [Work with Location Data Guide](https://developers.google.com/my-business/content/location-data#filter_results_when_you_list_locations). |\n| `languageCode` **(deprecated)** | `string` The BCP 47 code of language to get display location properties in. If this language is not available, they will be provided in the language of the location. If neither is available, they will be provided in English. Deprecated. After August 15th, 2020, this field will no longer be applied. Instead, the language of the location will always be used. |\n| `orderBy` | `string` Sorting order for the request. Multiple fields should be comma-separated, following SQL syntax. The default sorting order is ascending. To specify descending order, a suffix \" desc\" should be added. Valid fields to orderBy are locationName and storeCode. For example: \"locationName, storeCode desc\" or \"locationName\" or \"storeCode desc\" |\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 Locations.ListLocations.\n\n| JSON representation ||\n|-----------------------------------------------------------------------------------------------------------------------------------------------------|---|\n| ``` { \"locations\": [ { object (/my-business/reference/rest/v4/accounts.locations#Location) } ], \"nextPageToken\": string, \"totalSize\": integer } ``` |\n\n| Fields ||\n|-----------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `locations[]` | `object (`[Location](/my-business/reference/rest/v4/accounts.locations#Location)`)` The locations. |\n| `nextPageToken` | `string` If the number of locations exceeded the requested page size, this field is populated with a token to fetch the next page of locations on a subsequent call to `locations.list`. If there are no more locations, this field is not present in the response. |\n| `totalSize` | `integer` The approximate number of Locations in the list irrespective of pagination. |\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)."]]