يجب تقديم تفويض
حذف رابط فلتر الملف الشخصي جرِّبه الآن أو شاهد مثالاً.
الطلب
طلب HTTP
DELETE https://www.googleapis.com/analytics/v3/management/accounts/accountId/webproperties/webPropertyId/profiles/profileId/profileFilterLinks/linkId
المَعلمات
اسم المعلَمة | القيمة | الوصف |
---|---|---|
مَعلمات المسار | ||
accountId |
string |
رقم تعريف الحساب الذي ينتمي إليه رابط فلتر الملف الشخصي. |
linkId |
string |
رقم تعريف رابط فلتر الملف الشخصي المطلوب حذفه. |
profileId |
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 Filters Developer Guide for details. */ /* * This request deletes an existing profile filter link. */ try { analytics.management().profileFilterLinks().delete("123456", "UA-123456-1", "7654321", "11223344").execute(); } catch (GoogleJsonResponseException e) { System.err.println("There was a service error: " + e.getDetails().getCode() + " : " + e.getDetails().getMessage()); }
Python
تستخدم مكتبة برامج Python.
# Note: This code assumes you have an authorized Analytics service object. # See the Filters Developer Guide for details. # This request deletes an existing filter. try: filters = analytics.management().profileFilterLinks().delete( accountId='123456', webPropertyId='UA-123456-1', profileId='7654321', linkId='11223344' ).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))
تجربة
يمكنك استخدام مستكشف واجهات برمجة التطبيقات أدناه لطلب هذه الطريقة على البيانات المباشرة والاطّلاع على الاستجابة. ويمكنك بدلاً من ذلك تجربة المستكشف المستقل.