एक बिना सैंपल वाली रिपोर्ट दिखाता है. एक उदाहरण देखें.
अनुरोध करें
एचटीटीपी अनुरोध
GET https://www.googleapis.com/analytics/v3/management/accounts/accountId/webproperties/webPropertyId/profiles/profileId/unsampledReports/unsampledReportId
पैरामीटर
पैरामीटर का नाम | वैल्यू | जानकारी |
---|---|---|
पाथ पैरामीटर | ||
accountId |
string |
खाता आईडी, जिसके लिए नमूनारहित रिपोर्ट डाउनलोड की जानी है. |
profileId |
string |
(नमूनारहित) रिपोर्ट देखने के लिए (प्रोफ़ाइल) आईडी देखें. |
unsampledReportId |
string |
दोबारा हासिल करने के लिए, बिना सैंपल वाली रिपोर्ट का आईडी. |
webPropertyId |
string |
नमूनारहित वेब रिपोर्ट पाने के लिए वेब प्रॉपर्टी आईडी. |
अनुमति देना
इस अनुरोध के लिए, इनमें से कम से कम किसी एक दायरे की अनुमति ज़रूरी है (पुष्टि करने और अनुमति देने के बारे में ज़्यादा पढ़ें).
अनुमति देने का |
---|
https://www.googleapis.com/auth/analytics |
https://www.googleapis.com/auth/analytics.edit |
https://www.googleapis.com/auth/analytics.readonly |
अनुरोध का मुख्य भाग
इस तरीके से अनुरोध का मुख्य हिस्सा न दें.
जवाब
अगर यह तरीका सही से काम करता है, तो जवाब के तरीके में मैनेज.Unsampledreport संसाधन दिखाया जाता है.
उदाहरण
ध्यान दें: इस तरीके के लिए दिए गए कोड के उदाहरणों में इसके साथ काम करने वाली सभी प्रोग्रामिंग भाषाएं नहीं दिखाई गई हैं (इसके साथ काम करने वाली भाषाओं की सूची के लिए क्लाइंट लाइब्रेरी वाला पेज देखें).
Java
Java क्लाइंट लाइब्रेरी का इस्तेमाल करता है.
/* * Note: This code assumes you have an authorized Analytics service object. * See the Unsampled Reports Developer Guide for details. */ /* * This request gets an existing unsampled report. */ String unsampledReportId = "1112223334111222333411"; try { UnsampledReport report = analytics.management().unsampledReports(). get("123456", "UA-123456-1", "7654321", unsampledReportId).execute(); } catch (GoogleJsonResponseException e) { System.err.println("There was a service error: " + e.getDetails().getCode() + " : " + e.getDetails().getMessage()); }
PHP
PHP क्लाइंट लाइब्रेरी का इस्तेमाल करता है.
/** * Note: This code assumes you have an authorized Analytics service object. * See the Unsampled Reports Developer Guide for details. */ /** * This request gets an existing Unsampled Report. */ try { $unsampledReport = $analytics->management_unsampledReports->get('123456', 'UA-123456-1', '7654321', '1112223334111222333411'); } catch (apiServiceException $e) { print 'There was an Analytics API service error ' . $e->getCode() . ':' . $e->getMessage(); } catch (apiException $e) { print 'There was a general API error ' . $e->getCode() . ':' . $e->getMessage(); }
Python
Python क्लाइंट लाइब्रेरी का इस्तेमाल करता है.
# Note: This code assumes you have an authorized Analytics service object. # See the Unsampled Reports Developer Guide for details. # Example #1: # This request gets an existing unsampled report. try: unsampled_report = analytics.management().unsampledReports().get( accountId='123456', webPropertyId='UA-123456-1', profileId='7654321', unsampledReportId='1112223334111222333411' ).execute() except TypeError, error: # Handle errors in constructing a query. print 'There was an error in constructing your query : %s' % error except HttpError, error: # Handle API errors. print ('There was an API error : %s : %s' % (error.resp.status, error.resp.reason))
JavaScript
JavaScript क्लाइंट लाइब्रेरी का इस्तेमाल करता है.
/* * Note: This code assumes you have an authorized Analytics client object. * See the Unsampled Reports Developer Guide for details. */ /* * This request gets an existing unsampled report. */ function getUnsampledReport() { var request = gapi.client.analytics.management.unsampledReports.get({ 'accountId': '123456', 'webPropertyId': 'UA-123456-1', 'profileId': '7654321', 'unsampledReportId': '1112223334111222333411' }); request.execute(function (response) { /* Handle the response. */ }); }