ลองใช้เซิร์ฟเวอร์ MCP สำหรับ Google Analytics ติดตั้งจาก
GitHub และดูรายละเอียดเพิ่มเติมได้ที่
ประกาศ
Method: properties.audienceExports.create
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
สร้างการส่งออกกลุ่มเป้าหมายเพื่อดึงข้อมูลในภายหลัง วิธีนี้จะแสดงผลชื่อทรัพยากรของการส่งออกกลุ่มเป้าหมายอย่างรวดเร็ว และเริ่มคําขอแบบไม่พร้อมกันที่ทํางานเป็นเวลานานเพื่อสร้างการส่งออกกลุ่มเป้าหมาย หากต้องการส่งออกผู้ใช้ในการส่งออกกลุ่มเป้าหมาย ให้สร้างการส่งออกกลุ่มเป้าหมายด้วยวิธีนี้ก่อน จากนั้นจึงส่งชื่อทรัพยากรกลุ่มเป้าหมายไปยังเมธอด audienceExports.query
ดูการสร้างการส่งออกกลุ่มเป้าหมายสำหรับข้อมูลเบื้องต้นเกี่ยวกับการส่งออกกลุ่มเป้าหมายพร้อมตัวอย่าง
การส่งออกกลุ่มเป้าหมายคือภาพรวมของผู้ใช้ที่อยู่ในกลุ่มเป้าหมาย ณ เวลาที่สร้างการส่งออกกลุ่มเป้าหมาย การสร้างการส่งออกกลุ่มเป้าหมายสำหรับกลุ่มเป้าหมาย 1 กลุ่มในแต่ละวันจะให้ผลลัพธ์ที่แตกต่างกันเมื่อผู้ใช้เปิดและปิดกลุ่มเป้าหมาย
กลุ่มเป้าหมายใน Google Analytics 4 ให้คุณแบ่งกลุ่มผู้ใช้ในรูปแบบที่มีความสำคัญต่อธุรกิจ ดูข้อมูลเพิ่มเติมได้ที่ https://support.google.com/analytics/answer/9267572 การส่งออกกลุ่มเป้าหมายจะมีผู้ใช้ในกลุ่มเป้าหมายแต่ละกลุ่ม
Audience Export API มีบางเมธอดที่เวอร์ชันอัลฟ่าและวิธีอื่นๆ สำหรับความเสถียรของรุ่นเบต้า เราตั้งใจที่จะพัฒนาวิธีไปสู่ความเสถียรของเวอร์ชันเบต้าหลังจากได้รับความคิดเห็นและการนำไปใช้ หากต้องการแสดงความคิดเห็นเกี่ยวกับ API นี้ โปรดกรอกความคิดเห็นเกี่ยวกับ Audience Export API ของ Google Analytics
คำขอ HTTP
POST https://analyticsdata.googleapis.com/v1beta/{parent=properties/*}/audienceExports
URL ใช้ไวยากรณ์การแปลง gRPC
พารามิเตอร์เส้นทาง
พารามิเตอร์ |
parent |
string
ต้องระบุ ทรัพยากรระดับบนสุดที่จะสร้างการส่งออกกลุ่มเป้าหมายนี้ รูปแบบ: properties/{property}
|
เนื้อหาของคำขอ
เนื้อความของคำขอมีอินสแตนซ์ของ AudienceExport
เนื้อหาการตอบกลับ
หากทำสำเร็จ เนื้อหาการตอบกลับจะมีอินสแตนซ์ Operation
ที่สร้างขึ้นใหม่
ขอบเขตการให้สิทธิ์
ต้องใช้ขอบเขต OAuth อย่างใดอย่างหนึ่งต่อไปนี้
https://www.googleapis.com/auth/analytics.readonly
https://www.googleapis.com/auth/analytics
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-07-26 UTC
[null,null,["อัปเดตล่าสุด 2025-07-26 UTC"],[[["\u003cp\u003eCreates an audience export for later retrieval that contains a snapshot of users in an audience at the time of creation.\u003c/p\u003e\n"],["\u003cp\u003eThe API initiates a long-running asynchronous request to form an audience export, and the audience export's resource name is returned quickly.\u003c/p\u003e\n"],["\u003cp\u003eTo export users in an audience export, first create the audience export and then use the \u003ccode\u003eaudienceExports.query\u003c/code\u003e method with the audience resource name.\u003c/p\u003e\n"],["\u003cp\u003eAudience exports may vary day-to-day as users join or leave the audience being exported.\u003c/p\u003e\n"],["\u003cp\u003eRequires authorization with either the \u003ccode\u003eanalytics.readonly\u003c/code\u003e or \u003ccode\u003eanalytics\u003c/code\u003e scope.\u003c/p\u003e\n"]]],["This outlines the process of creating an audience export through an API. It involves sending a POST request to a specified URL, including the parent property ID in the path parameters. The request body uses an `AudienceExport` instance. Upon success, it returns an `Operation` instance, signifying a long-running process. The audience export captures a user snapshot at creation, and different creations yield varied user lists. The API requires specific OAuth scopes for authorization.\n"],null,["# Method: properties.audienceExports.create\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Path parameters](#body.PATH_PARAMETERS)\n- [Request body](#body.request_body)\n- [Response body](#body.response_body)\n- [Authorization scopes](#body.aspect)\n- [Try it!](#try-it)\n\nCreates an audience export for later retrieval. This method quickly returns the audience export's resource name and initiates a long running asynchronous request to form an audience export. To export the users in an audience export, first create the audience export through this method and then send the audience resource name to the `audienceExports.query` method.\n\nSee [Creating an Audience Export](https://developers.google.com/analytics/devguides/reporting/data/v1/audience-list-basics) for an introduction to Audience Exports with examples.\n\nAn audience export is a snapshot of the users currently in the audience at the time of audience export creation. Creating audience exports for one audience on different days will return different results as users enter and exit the audience.\n\nAudiences in Google Analytics 4 allow you to segment your users in the ways that are important to your business. To learn more, see \u003chttps://support.google.com/analytics/answer/9267572\u003e. Audience exports contain the users in each audience.\n\nAudience Export APIs have some methods at alpha and other methods at beta stability. The intention is to advance methods to beta stability after some feedback and adoption. To give your feedback on this API, complete the [Google Analytics Audience Export API Feedback](https://forms.gle/EeA5u5LW6PEggtCEA) form.\n\n### HTTP request\n\n`POST https://analyticsdata.googleapis.com/v1beta/{parent=properties/*}/audienceExports`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n| Parameters ||\n|----------|--------------------------------------------------------------------------------------------------------------------|\n| `parent` | `string` Required. The parent resource where this audience export will be created. Format: `properties/{property}` |\n\n### Request body\n\nThe request body contains an instance of [AudienceExport](/analytics/devguides/reporting/data/v1/rest/v1beta/properties.audienceExports#AudienceExport).\n\n### Response body\n\nIf successful, the response body contains a newly created instance of [Operation](/analytics/devguides/reporting/data/v1/rest/Shared.Types/Operation).\n\n### Authorization scopes\n\nRequires one of the following OAuth scopes:\n\n- `https://www.googleapis.com/auth/analytics.readonly`\n- `https://www.googleapis.com/auth/analytics`"]]