Method: properties.audiences.create
درخواست HTTP
POST https://analyticsadmin.googleapis.com/v1alpha/{parent=properties/*}/audiences
URL از دستور GRPC Transcoding استفاده می کند.
پارامترهای مسیر
مولفه های |
---|
parent | string ضروری. فرمت مثال: properties/1234 |
درخواست بدن
بدنه درخواست شامل نمونه ای از Audience
است.
بدن پاسخگو
در صورت موفقیت آمیز بودن، بدنه پاسخ حاوی نمونه جدیدی از Audience
است.
محدوده مجوز
به محدوده OAuth زیر نیاز دارد:
-
https://www.googleapis.com/auth/analytics.edit
جز در مواردی که غیر از این ذکر شده باشد،محتوای این صفحه تحت مجوز Creative Commons Attribution 4.0 License است. نمونه کدها نیز دارای مجوز Apache 2.0 License است. برای اطلاع از جزئیات، به خطمشیهای سایت Google Developers مراجعه کنید. جاوا علامت تجاری ثبتشده Oracle و/یا شرکتهای وابسته به آن است.
تاریخ آخرین بهروزرسانی 2024-10-25 بهوقت ساعت هماهنگ جهانی.
[null,null,["تاریخ آخرین بهروزرسانی 2024-10-25 بهوقت ساعت هماهنگ جهانی."],[[["Creates a new Audience using an HTTP POST request to the specified endpoint."],["Requires providing the parent property ID in the URL path and an `Audience` object in the request body."],["A successful response will return the newly created `Audience` object."],["Requires the `analytics.edit` OAuth scope for authorization."]]],["A POST request is made to `https://analyticsadmin.googleapis.com/v1alpha/{parent=properties/*}/audiences` to create an Audience. The `parent` path parameter, a string in the format `properties/1234`, is required. The request body uses the `Audience` resource, and the successful response returns a new `Audience` instance. This operation requires the `https://www.googleapis.com/auth/analytics.edit` authorization scope. The url uses gRPC Transcoding syntax.\n"]]