Class PropertiesResource
The "properties" collection of methods.
Inheritance
Inherited Members
Namespace: Google.Apis.AnalyticsData.v1alpha
Assembly: Google.Apis.AnalyticsData.v1alpha.dll
Syntax
public class PropertiesResource
Constructors
PropertiesResource(IClientService)
Constructs a new resource.
Declaration
public PropertiesResource(IClientService service)
Parameters
| Type | Name | Description |
|---|---|---|
| IClientService | service |
Methods
GetMetadata(String)
Returns metadata for dimensions and metrics available in reporting methods. Used to explore the dimensions
and metrics. In this method, a Google Analytics GA4 Property Identifier is specified in the request, and the
metadata response includes Custom dimensions and metrics as well as Universal metadata. For example if a
custom metric with parameter name levels_unlocked is registered to a property, the Metadata response will
contain customEvent:levels_unlocked. Universal metadata are dimensions and metrics applicable to any
property such as country and totalUsers.
Declaration
public virtual PropertiesResource.GetMetadataRequest GetMetadata(string name)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | Required. The resource name of the metadata to retrieve. This name field is specified in the URL path and not URL parameters. Property is a numeric Google Analytics GA4 Property identifier. To learn more, see where to find your Property ID. Example: properties/1234/metadata Set the Property ID to 0 for dimensions and metrics common to all properties. In this special mode, this method will not return custom dimensions and metrics. |
Returns
| Type | Description |
|---|---|
| PropertiesResource.GetMetadataRequest |
RunRealtimeReport(RunRealtimeReportRequest, String)
The Google Analytics Realtime API returns a customized report of realtime event data for your property. These reports show events and usage from the last 30 minutes.
Declaration
public virtual PropertiesResource.RunRealtimeReportRequest RunRealtimeReport(RunRealtimeReportRequest body, string property)
Parameters
| Type | Name | Description |
|---|---|---|
| RunRealtimeReportRequest | body | The body of the request. |
| System.String | property | A Google Analytics GA4 property identifier whose events are tracked. Specified in the URL path and not the body. To learn more, see where to find your Property ID. Example: properties/1234 |
Returns
| Type | Description |
|---|---|
| PropertiesResource.RunRealtimeReportRequest |