Method: properties.audiences.archive
เก็บกลุ่มเป้าหมายในพร็อพเพอร์ตี้
คำขอ HTTP
POST https://analyticsadmin.googleapis.com/v1alpha/{name=properties/*/audiences/*}:archive
URL ใช้ไวยากรณ์การแปลง gRPC
พารามิเตอร์เส้นทาง
พารามิเตอร์ |
name |
string
ต้องระบุ รูปแบบตัวอย่าง: properties/1234/audiences/5678
|
เนื้อหาของคำขอ
เนื้อหาของคำขอต้องว่างเปล่า
เนื้อหาการตอบกลับ
หากทำสำเร็จ เนื้อหาการตอบกลับจะเป็นออบเจ็กต์ JSON ว่าง
ขอบเขตการให้สิทธิ์
ต้องใช้ขอบเขต OAuth ต่อไปนี้
https://www.googleapis.com/auth/analytics.edit
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-01-14 UTC
[null,null,["อัปเดตล่าสุด 2025-01-14 UTC"],[[["Archives an Audience on a specified Google Analytics 4 property."],["Requires an empty request body and returns an empty response body upon successful completion."],["Utilizes the `POST` method with the URL format: `https://analyticsadmin.googleapis.com/v1alpha/{name=properties/*/audiences/*}:archive`, where `{name}` represents the property and audience IDs."],["Needs the `https://www.googleapis.com/auth/analytics.edit` OAuth scope for authorization."]]],["The core function is archiving an Audience on a property via a POST request to a specific URL: `https://analyticsadmin.googleapis.com/v1alpha/{name=properties/*/audiences/*}:archive`. The required `name` path parameter identifies the Audience to be archived (e.g., `properties/1234/audiences/5678`). The request body must be empty, and a successful response returns an empty JSON object. The `analytics.edit` OAuth scope is required for authorization.\n"]]