Unsampled Reports: delete

इसके लिए, अनुमति लेना ज़रूरी है

नमूनारहित रिपोर्ट को मिटाता है. उदाहरण देखें.

अनुरोध

एचटीटीपी अनुरोध

DELETE 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.edit

अनुरोध का मुख्य भाग

इस तरीके का इस्तेमाल करके, अनुरोध का मुख्य हिस्सा न दें.

जवाब

कामयाब होने पर, इस तरीके का इस्तेमाल करने पर जवाब का खाली मुख्य हिस्सा दिखता है.

उदाहरण

ध्यान दें: इस तरीके के लिए दिए गए कोड के उदाहरणों में इसके साथ काम करने वाली सभी प्रोग्रामिंग भाषाएं नहीं दिखाई गई हैं (इसके साथ काम करने वाली भाषाओं की सूची के लिए क्लाइंट लाइब्रेरी वाला पेज देखें).

Java

Java क्लाइंट लाइब्रेरी का इस्तेमाल करता है.

/*
 * Note: This code assumes you have an authorized Analytics service object.
 * See the Unsampled Reports Developer Guide for details.
 */

/*
 * This request deletes an unsampled report.
 */
String unsampledReportId = "1112223334111222333411";
try {
  analytics.management().unsampledReports().
      delete("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 deletes an Unsampled Report.
 */
try {
  $analytics->management_unsampledReports->delete('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 deletes an unsampled report.
try:
  analytics.management().unsampledReports().delete(
      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 deletes an existing unsampled report.
 */
function getUnsampledReport() {
  var request = gapi.client.analytics.management.unsampledReports.delete({
    'accountId': '123456',
    'webPropertyId': 'UA-123456-1',
    'profileId': '7654321',
    'unsampledReportId': '1112223334111222333411'
  });
  request.execute(function (response) { /* Handle the response. */ });
}