capabilities.work

Reuse or Create an Audience Export

A 2-step recipe with Google Analytics. We can help you get access.

Recipe · 2 steps

Reuse or Create an Audience Export

Reuse an existing audience export for a property, or create one if none exist.

  1. List the existing audience exports for the property so an export can be reused rather than creating an unnecessary new one.
  2. Create a new audience export for the supplied audience, returning the long-running operation that forms the export.
What you'll need to have ready
  • accessToken: OAuth 2.0 bearer access token with an analytics read scope.
  • property: GA4 property resource name (e.g. properties/1234).
  • audience: Audience resource name to export (e.g. properties/1234/audiences/5678).
  • dimensionName: API name of the audience dimension to include in a newly created export.
For your developer

Arazzo workflow google-analytics:audience-export-create-or-reuse, 2 operations: analyticsdata.properties.audienceExports.list → analyticsdata.properties.audienceExports.create. Specs on APIs.io.