Google Analytics Admin API — Properties (GA4).
REST base: https://analyticsadmin.googleapis.com/v1beta/properties
Docs: https://developers.google.com/analytics/devguides/config/admin/v1/rest/v1beta/properties
Summary
Functions
POST properties — create a GA4 property.
DELETE soft-deletes via Admin API properties/{property} DELETE
(moves property to trash; restore is a separate operation).
GET properties/{property} — get a GA4 property.
GET properties — list properties.
PATCH properties/{property} — update a property.
Types
@type result() :: {:ok, term()} | {:error, Noizu.Google.Error.t()}
Functions
POST properties — create a GA4 property.
Body example:
%{
parent: "accounts/123456",
displayName: "Example",
timeZone: "America/Los_Angeles",
currencyCode: "USD",
industryCategory: "TECHNOLOGY"
}
DELETE soft-deletes via Admin API properties/{property} DELETE
(moves property to trash; restore is a separate operation).
GET properties/{property} — get a GA4 property.
property may be "properties/123" or just "123".
GET properties — list properties.
Requires a filter, typically:
filter: "parent:accounts/123456"Optional opts: :filter (required by API), :page_size, :page_token, :show_deleted.
PATCH properties/{property} — update a property.
Optional opts: :update_mask (field mask string, e.g. "displayName,timeZone").