pub struct AnalyticsDataApi {}Expand description
Entry point for the Google Analytics 4 (GA4) Data API v1beta.
Each method takes an OAuth2 access token (&str) and a numeric GA4
property ID (e.g. "123456789").
Implementations§
Source§impl AnalyticsDataApi
impl AnalyticsDataApi
Sourcepub async fn batch_run_pivot_reports(
token: &str,
property: &str,
requests: Vec<RunPivotReportRequest>,
) -> Result<BatchRunPivotReportsResponse, GoogleApiError>
pub async fn batch_run_pivot_reports( token: &str, property: &str, requests: Vec<RunPivotReportRequest>, ) -> Result<BatchRunPivotReportsResponse, GoogleApiError>
Runs multiple pivot reports in a single API request.
Sourcepub async fn batch_run_reports(
token: &str,
property: &str,
requests: Vec<RunReportRequest>,
) -> Result<BatchRunReportsResponse, GoogleApiError>
pub async fn batch_run_reports( token: &str, property: &str, requests: Vec<RunReportRequest>, ) -> Result<BatchRunReportsResponse, GoogleApiError>
Runs up to 5 reports in a single API request.
Sourcepub async fn check_compatibility(
token: &str,
property: &str,
request: CheckCompatibilityRequest,
) -> Result<CheckCompatibilityResponse, GoogleApiError>
pub async fn check_compatibility( token: &str, property: &str, request: CheckCompatibilityRequest, ) -> Result<CheckCompatibilityResponse, GoogleApiError>
Checks which dimensions and metrics can be combined in a report.
Sourcepub async fn get_metadata(
token: &str,
property: &str,
) -> Result<GetMetadataResponse, GoogleApiError>
pub async fn get_metadata( token: &str, property: &str, ) -> Result<GetMetadataResponse, GoogleApiError>
Lists all dimensions and metrics available on a property, including custom definitions.
Sourcepub async fn run_pivot_report(
token: &str,
property: &str,
request: RunPivotReportRequest,
) -> Result<RunPivotReportResponse, GoogleApiError>
pub async fn run_pivot_report( token: &str, property: &str, request: RunPivotReportRequest, ) -> Result<RunPivotReportResponse, GoogleApiError>
Runs a pivot-table style report.
Sourcepub async fn run_realtime_report(
token: &str,
property: &str,
request: RunRealtimeReportRequest,
) -> Result<RunReportResponse, GoogleApiError>
pub async fn run_realtime_report( token: &str, property: &str, request: RunRealtimeReportRequest, ) -> Result<RunReportResponse, GoogleApiError>
Returns realtime event data for the last 30 minutes (e.g. active users).
Sourcepub async fn run_report(
token: &str,
property: &str,
request: RunReportRequest,
) -> Result<RunReportResponse, GoogleApiError>
pub async fn run_report( token: &str, property: &str, request: RunReportRequest, ) -> Result<RunReportResponse, GoogleApiError>
Runs a report of dimensions and metrics over a date range.
https://developers.google.com/analytics/devguides/reporting/data/v1/rest/v1beta/properties/runReport
Auto Trait Implementations§
impl Freeze for AnalyticsDataApi
impl RefUnwindSafe for AnalyticsDataApi
impl Send for AnalyticsDataApi
impl Sync for AnalyticsDataApi
impl Unpin for AnalyticsDataApi
impl UnsafeUnpin for AnalyticsDataApi
impl UnwindSafe for AnalyticsDataApi
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more