Method: properties.audiences.get
ค้นหากลุ่มเป้าหมายกลุ่มเดียว ระบบอาจไม่รองรับกลุ่มเป้าหมายที่สร้างขึ้นก่อนปี 2020 กลุ่มเป้าหมายเริ่มต้นจะไม่แสดงการกำหนดตัวกรอง
คำขอ HTTP
GET https://analyticsadmin.googleapis.com/v1alpha/{name=properties/*/audiences/*}
URL ใช้ไวยากรณ์การแปลง gRPC
พารามิเตอร์เส้นทาง
พารามิเตอร์ |
name |
string
ต้องระบุ ชื่อของกลุ่มเป้าหมายที่จะรับ รูปแบบตัวอย่าง: พร็อพเพอร์ตี้/1234/กลุ่มเป้าหมาย/5678
|
เนื้อหาของคำขอ
เนื้อหาของคำขอต้องว่างเปล่า
เนื้อหาการตอบกลับ
หากทำสำเร็จ เนื้อหาการตอบกลับจะมีอินสแตนซ์ Audience
ขอบเขตการให้สิทธิ์
ต้องใช้ขอบเขต OAuth อย่างใดอย่างหนึ่งต่อไปนี้
https://www.googleapis.com/auth/analytics.readonly
https://www.googleapis.com/auth/analytics.edit
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2024-05-06 UTC
[null,null,["อัปเดตล่าสุด 2024-05-06 UTC"],[[["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"]]