Google Business Profile एपीआई में
एपीआई का नया तरीका है. इसकी मदद से, एक ही एपीआई अनुरोध में कई `डेली मेट्रिक` फ़ेच की जा सकती हैं.
सेवा बंद होने का शेड्यूल देखें. साथ ही, v4 reportInsights API वाले तरीके से Google Business Profile की परफ़ॉर्मेंस एपीआई में माइग्रेट करने के बारे में निर्देश देखें.
BasicMetricsRequest
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
मेट्रिक की बुनियादी इनसाइट के लिए अनुरोध.
JSON के काेड में दिखाना |
{
"metricRequests": [
{
object (MetricRequest )
}
],
"timeRange": {
object (TimeRange )
}
} |
फ़ील्ड |
metricRequests[] |
object (MetricRequest )
मेट्रिक का कलेक्शन, जिससे वैल्यू दी जा सकती हैं. इसमें, डेटा लौटाने के तरीके के विकल्प शामिल किए जाते हैं.
|
timeRange |
object (TimeRange )
वह रेंज जिसके लिए मेट्रिक इकट्ठा करनी है. अनुरोध की तारीख से लेकर 18 महीनों तक की अवधि ज़्यादा से ज़्यादा हो सकती है. कुछ मामलों में, हो सकता है कि अनुरोध करने की तारीख के आस-पास के दिनों का डेटा न दिखे. रिस्पॉन्स के तौर पर, metricValues में उस डेटा की जानकारी दी जाएगी जो मौजूद नहीं है.
|
MetricRequest
किसी एक मेट्रिक की वैल्यू दिखाने का अनुरोध और उन वैल्यू को लौटाने के तरीके से जुड़े विकल्प.
फ़ील्ड |
metric |
enum (Metric )
अनुरोध की गई मेट्रिक.
|
options[] |
enum (MetricOption )
वैल्यू दिखाए जाने पर वे कैसी दिखेंगी.
|
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 2025-07-25 (UTC) को अपडेट किया गया.
[null,null,["आखिरी बार 2025-07-25 (UTC) को अपडेट किया गया."],[[["\u003cp\u003e\u003ccode\u003eBasicMetricsRequest\u003c/code\u003e allows retrieval of basic metric insights for a specified time range, up to 18 months.\u003c/p\u003e\n"],["\u003cp\u003eThe request specifies desired metrics and data return options using \u003ccode\u003eMetricRequest\u003c/code\u003e objects.\u003c/p\u003e\n"],["\u003cp\u003eEach \u003ccode\u003eMetricRequest\u003c/code\u003e defines the specific metric and how the values should be presented in the response.\u003c/p\u003e\n"],["\u003cp\u003eData for days near the request date might be unavailable and is indicated within the \u003ccode\u003emetricValues\u003c/code\u003e field of the response.\u003c/p\u003e\n"]]],[],null,["# BasicMetricsRequest\n\n- [JSON representation](#SCHEMA_REPRESENTATION)\n- [MetricRequest](#MetricRequest)\n - [JSON representation](#MetricRequest.SCHEMA_REPRESENTATION)\n\nA request for basic metric insights.\n\n| JSON representation ||\n|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|\n| ``` { \"metricRequests\": [ { object (/my-business/reference/rest/v4/BasicMetricsRequest#MetricRequest) } ], \"timeRange\": { object (/my-business/reference/rest/v4/TimeRange) } } ``` |\n\n| Fields ||\n|--------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `metricRequests[]` | `object (`[MetricRequest](/my-business/reference/rest/v4/BasicMetricsRequest#MetricRequest)`)` A collection of metrics to return values for including the options for how the data should be returned. |\n| `timeRange` | `object (`[TimeRange](/my-business/reference/rest/v4/TimeRange)`)` The range to gather metrics for. The maximum range is 18 months from the request date. In some cases, the data may still be missing for days close to the request date. Missing data will be specified in the `metricValues` in the response. |\n\nMetricRequest\n-------------\n\nA request to return values for one metric and the options for how those values should be returned.\n\n| JSON representation ||\n|---------------------------------------------------------------------------------------------------------------------------------------|---|\n| ``` { \"metric\": enum (/my-business/reference/rest/v4/Metric), \"options\": [ enum (/my-business/reference/rest/v4/MetricOption) ] } ``` |\n\n| Fields ||\n|-------------|--------------------------------------------------------------------------------------------------------------------|\n| `metric` | `enum (`[Metric](/my-business/reference/rest/v4/Metric)`)` The requested metric. |\n| `options[]` | `enum (`[MetricOption](/my-business/reference/rest/v4/MetricOption)`)` How the values should appear when returned. |"]]