Method: properties.audiences.create
Crea un segmento di pubblico.
Richiesta HTTP
POST https://analyticsadmin.googleapis.com/v1alpha/{parent=properties/*}/audiences
L'URL utilizza la sintassi di transcodifica gRPC.
Parametri del percorso
Parametri |
parent |
string
Obbligatoria. Formato di esempio: Properties/1234
|
Corpo della richiesta
Il corpo della richiesta contiene un'istanza di Audience
.
Corpo della risposta
In caso di esito positivo, il corpo della risposta contiene un'istanza di Audience
appena creata.
Ambiti di autorizzazione
Richiede il seguente ambito OAuth:
https://www.googleapis.com/auth/analytics.edit
Salvo quando diversamente specificato, i contenuti di questa pagina sono concessi in base alla licenza Creative Commons Attribution 4.0, mentre gli esempi di codice sono concessi in base alla licenza Apache 2.0. Per ulteriori dettagli, consulta le norme del sito di Google Developers. Java è un marchio registrato di Oracle e/o delle sue consociate.
Ultimo aggiornamento 2024-05-06 UTC.
[null,null,["Ultimo aggiornamento 2024-05-06 UTC."],[[["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"]]