Method: properties.audiences.get
ابحث عن شريحة جمهور واحدة. قد لا تتوفّر شرائح الجمهور التي تم إنشاؤها قبل عام 2020. لن تعرض الجماهير التلقائية تعريفات الفلاتر.
طلب HTTP
GET https://analyticsadmin.googleapis.com/v1alpha/{name=properties/*/audiences/*}
يستخدم عنوان URL بنية تحويل الترميز gRPC.
معلمات المسار
المَعلمات |
name |
string
مطلوبة. اسم الجمهور الذي تريد الحصول عليه. مثال على التنسيق: properties/1234/audiences/5678
|
نص الطلب
يجب أن يكون نص الطلب فارغًا.
نص الاستجابة
إذا كانت الاستجابة ناجحة، يحتوي نص الاستجابة على مثال Audience
.
نطاقات التفويض
يتطلب استخدام أحد نطاقات OAuth التالية:
https://www.googleapis.com/auth/analytics.readonly
https://www.googleapis.com/auth/analytics.edit
إنّ محتوى هذه الصفحة مرخّص بموجب ترخيص Creative Commons Attribution 4.0 ما لم يُنصّ على خلاف ذلك، ونماذج الرموز مرخّصة بموجب ترخيص Apache 2.0. للاطّلاع على التفاصيل، يُرجى مراجعة سياسات موقع Google Developers. إنّ Java هي علامة تجارية مسجَّلة لشركة Oracle و/أو شركائها التابعين.
تاريخ التعديل الأخير: 2024-05-06 (حسب التوقيت العالمي المتفَّق عليه)
[null,null,["تاريخ التعديل الأخير: 2024-05-06 (حسب التوقيت العالمي المتفَّق عليه)"],[[["Retrieve a specific Audience resource using its unique name, formatted as properties/{propertyId}/audiences/{audienceId}."],["Request requires authorization using either `analytics.readonly` or `analytics.edit` scope."],["Only audiences created after 2020 and non-default audiences can be successfully retrieved."],["Response includes the Audience object if found, otherwise an error."]]],["This document outlines how to retrieve a single Audience using a `GET` HTTP request to the Google Analytics Admin API. The request URL requires a path parameter, `name`, specifying the Audience's identifier (e.g., `properties/1234/audiences/5678`). The request body must be empty. Successful responses return an Audience instance. Authorization requires either the `analytics.readonly` or `analytics.edit` OAuth scope. The example uses the gRPC Transcoding syntax. Audiences created before 2020 might not be supported.\n"]]