Create an audience export on your GA4 property
google-analytics.x.analyticsdata-properties-audienceexports-createaudienceExports.create — Creates 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 `QueryAudienceExport` method. See [Creati
- Preço
- freePelo preço de tabela
- Taxa de sucesso
- —Ainda não há dados da taxa de sucessoÚltimos 30 dias · 0 chamadas
- Latência p50
- ——
- Última verificação
- —Ainda não verificado
POSThttps://toolswitch.dev/v1/tools/google-analytics.x.analyticsdata-properties-audienceexports-createBeta- Usa a cota da plataforma
- Resposta síncrona
- Lê dados públicos
Parâmetros
| Parâmetro | Tipo | Obrigatório | Descrição | Exemplo |
|---|---|---|---|---|
| Parâmetros de caminho | ||||
parent | string | Obrigatório | Required. The parent resource where this audience export will be created. Format: `properties/{property}` | |
- Parâmetros de caminho
parentstringObrigatórioRequired. The parent resource where this audience export will be created. Format: `properties/{property}`
Exemplos de código
Substitua $TOOLSWITCH_KEY pela chave criada no console.
Beta
curl -X POST 'https://toolswitch.dev/v1/tools/google-analytics.x.analyticsdata-properties-audienceexports-create' \
-H "X-Toolswitch-Key: $TOOLSWITCH_KEY"import os
import requests
response = requests.request(
"POST",
"https://toolswitch.dev/v1/tools/google-analytics.x.analyticsdata-properties-audienceexports-create",
headers={"X-Toolswitch-Key": os.environ["TOOLSWITCH_KEY"]},
)
response.raise_for_status()
print(response.text)const response = await fetch("https://toolswitch.dev/v1/tools/google-analytics.x.analyticsdata-properties-audienceexports-create", {
method: "POST",
headers: {
"X-Toolswitch-Key": process.env.TOOLSWITCH_KEY ?? "",
},
});
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
console.log(await response.text());Esta API de gateway está em Beta; a URL e a autenticação podem mudar. Os parâmetros do exemplo são dados de amostra. As chamadas são cobradas a free, incluindo a taxa de serviço.