Method: properties.audiences.get
1 つのオーディエンスを検索します。2020 年より前に作成されたオーディエンスはサポートされていない場合があります。デフォルトのオーディエンスにはフィルタの定義は表示されません。
HTTP リクエスト
GET https://analyticsadmin.googleapis.com/v1alpha/{name=properties/*/audiences/*}
この URL は gRPC Transcoding 構文を使用します。
パスパラメータ
パラメータ |
name |
string
必須。取得するオーディエンスの名前。形式の例: properties/1234/audiences/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"]]