Show / Hide Table of Contents

Class PropertiesResource.GetMetadataRequest

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.

Inheritance
System.Object
ClientServiceRequest
ClientServiceRequest<Metadata>
AnalyticsDataBaseServiceRequest<Metadata>
PropertiesResource.GetMetadataRequest
Implements
IClientServiceRequest<Metadata>
IClientServiceRequest
Inherited Members
AnalyticsDataBaseServiceRequest<Metadata>.Xgafv
AnalyticsDataBaseServiceRequest<Metadata>.AccessToken
AnalyticsDataBaseServiceRequest<Metadata>.Alt
AnalyticsDataBaseServiceRequest<Metadata>.Callback
AnalyticsDataBaseServiceRequest<Metadata>.Fields
AnalyticsDataBaseServiceRequest<Metadata>.Key
AnalyticsDataBaseServiceRequest<Metadata>.OauthToken
AnalyticsDataBaseServiceRequest<Metadata>.PrettyPrint
AnalyticsDataBaseServiceRequest<Metadata>.QuotaUser
AnalyticsDataBaseServiceRequest<Metadata>.UploadType
AnalyticsDataBaseServiceRequest<Metadata>.UploadProtocol
ClientServiceRequest<Metadata>.Execute()
ClientServiceRequest<Metadata>.ExecuteAsStream()
ClientServiceRequest<Metadata>.ExecuteAsync()
ClientServiceRequest<Metadata>.ExecuteAsync(CancellationToken)
ClientServiceRequest<Metadata>.ExecuteAsStreamAsync()
ClientServiceRequest<Metadata>.ExecuteAsStreamAsync(CancellationToken)
ClientServiceRequest<Metadata>.CreateRequest(Nullable<Boolean>)
ClientServiceRequest<Metadata>.GenerateRequestUri()
ClientServiceRequest<Metadata>.GetBody()
ClientServiceRequest<Metadata>.GetDefaultETagAction(String)
ClientServiceRequest<Metadata>.ETagAction
ClientServiceRequest<Metadata>.ModifyRequest
ClientServiceRequest<Metadata>.ValidateParameters
ClientServiceRequest<Metadata>.RequestParameters
ClientServiceRequest<Metadata>.Service
ClientServiceRequest._unsuccessfulResponseHandlers
ClientServiceRequest._exceptionHandlers
ClientServiceRequest._executeInterceptors
ClientServiceRequest.AddUnsuccessfulResponseHandler(IHttpUnsuccessfulResponseHandler)
ClientServiceRequest.AddExceptionHandler(IHttpExceptionHandler)
ClientServiceRequest.AddExecuteInterceptor(IHttpExecuteInterceptor)
ClientServiceRequest.Credential
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Google.Apis.AnalyticsData.v1alpha
Assembly: Google.Apis.AnalyticsData.v1alpha.dll
Syntax
public class GetMetadataRequest : AnalyticsDataBaseServiceRequest<Metadata>, IClientServiceRequest<Metadata>, IClientServiceRequest

Constructors

GetMetadataRequest(IClientService, String)

Constructs a new GetMetadata request.

Declaration
public GetMetadataRequest(IClientService service, string name)
Parameters
Type Name Description
IClientService service
System.String name

Properties

HttpMethod

Gets the HTTP method.

Declaration
public override string HttpMethod { get; }
Property Value
Type Description
System.String
Overrides
Google.Apis.Requests.ClientServiceRequest<Google.Apis.AnalyticsData.v1alpha.Data.Metadata>.HttpMethod

MethodName

Gets the method name.

Declaration
public override string MethodName { get; }
Property Value
Type Description
System.String
Overrides
Google.Apis.Requests.ClientServiceRequest<Google.Apis.AnalyticsData.v1alpha.Data.Metadata>.MethodName

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.

Declaration
[RequestParameter("name", RequestParameterType.Path)]
public virtual string Name { get; }
Property Value
Type Description
System.String

RestPath

Gets the REST path.

Declaration
public override string RestPath { get; }
Property Value
Type Description
System.String
Overrides
Google.Apis.Requests.ClientServiceRequest<Google.Apis.AnalyticsData.v1alpha.Data.Metadata>.RestPath

Methods

InitParameters()

Initializes GetMetadata parameter list.

Declaration
protected override void InitParameters()
Overrides
Google.Apis.AnalyticsData.v1alpha.AnalyticsDataBaseServiceRequest<Google.Apis.AnalyticsData.v1alpha.Data.Metadata>.InitParameters()

Implements

IClientServiceRequest<TResponse>
IClientServiceRequest
In This Article
Back to top