analytics/v3 library
Google Analytics API - v3
Views and manages your Google Analytics data.
For more information, see developers.google.com/analytics/
Create an instance of AnalyticsApi to access these resources:
- DataResource
- ManagementResource
- ManagementAccountSummariesResource
- ManagementAccountUserLinksResource
- ManagementAccountsResource
- ManagementClientIdResource
- ManagementCustomDataSourcesResource
- ManagementCustomDimensionsResource
- ManagementCustomMetricsResource
- ManagementExperimentsResource
- ManagementFiltersResource
- ManagementGoalsResource
- ManagementProfileFilterLinksResource
- ManagementProfileUserLinksResource
- ManagementProfilesResource
- ManagementRemarketingAudienceResource
- ManagementSegmentsResource
- ManagementUnsampledReportsResource
- ManagementUploadsResource
- ManagementWebPropertyAdWordsLinksResource
- ManagementWebpropertiesResource
- ManagementWebpropertyUserLinksResource
- MetadataResource
- ProvisioningResource
- UserDeletionResource
Classes
- Account
- JSON template for Analytics account entry.
- AccountChildLink
- Child link for an account entry.
- AccountPermissions
- Permissions the user has for this account.
- AccountRef
- JSON template for a linked account.
- Accounts
- An account collection provides a list of Analytics accounts to which a user has access.
- AccountSummaries
- An AccountSummary collection lists a summary of accounts, properties and views (profiles) to which the user has access.
- AccountSummary
- JSON template for an Analytics AccountSummary.
- AccountTicket
- JSON template for an Analytics account ticket.
- AccountTreeRequest
- JSON template for an Analytics account tree requests.
- AccountTreeResponse
- JSON template for an Analytics account tree response.
- AdWordsAccount
- JSON template for an Google Ads account.
- AnalyticsApi
- Views and manages your Google Analytics data.
- AnalyticsDataimportDeleteUploadDataRequest
- Request template for the delete upload data request.
- ByteRange
- Specifies a range of media.
- Column
- JSON template for a metadata column.
- Columns
- Lists columns (dimensions and metrics) for a particular report type.
- CustomDataSource
- JSON template for an Analytics custom data source.
- CustomDataSourceChildLink
- CustomDataSourceParentLink
- Parent link for this custom data source.
- CustomDataSources
- Lists Analytics custom data sources to which the user has access.
- CustomDimension
- JSON template for Analytics Custom Dimension.
- CustomDimensionParentLink
- Parent link for the custom dimension.
- CustomDimensions
- A custom dimension collection lists Analytics custom dimensions to which the user has access.
- CustomMetric
- JSON template for Analytics Custom Metric.
- CustomMetricParentLink
- Parent link for the custom metric.
- CustomMetrics
- A custom metric collection lists Analytics custom metrics to which the user has access.
- DataGaResource
- DataMcfResource
- DataRealtimeResource
- DataResource
- DownloadOptions
- Represents options for downloading media.
- EntityAdWordsLink
- JSON template for Analytics Entity Google Ads Link.
- EntityAdWordsLinkEntity
- Web property being linked.
- EntityAdWordsLinks
- An entity Google Ads link collection provides a list of GA-Google Ads links Each resource in this collection corresponds to a single link.
- EntityUserLink
- JSON template for an Analytics Entity-User Link.
- EntityUserLinkEntity
- Entity for this link.
- EntityUserLinkPermissions
- Permissions the user has for this entity.
- EntityUserLinks
- An entity user link collection provides a list of Analytics ACL links Each resource in this collection corresponds to a single link.
- Experiment
- JSON template for Analytics experiment resource.
- ExperimentParentLink
- Parent link for an experiment.
- Experiments
- An experiment collection lists Analytics experiments to which the user has access.
- ExperimentVariations
- Filter
- JSON template for an Analytics account filter.
- FilterAdvancedDetails
- Details for the filter of the type ADVANCED.
- FilterExpression
- JSON template for an Analytics filter expression.
- FilterLowercaseDetails
- Details for the filter of the type LOWER.
- FilterParentLink
- Parent link for this filter.
- FilterRef
- JSON template for a profile filter link.
- Filters
- A filter collection lists filters created by users in an Analytics account.
- FilterSearchAndReplaceDetails
- Details for the filter of the type SEARCH_AND_REPLACE.
- FilterUppercaseDetails
- Details for the filter of the type UPPER.
- GaData
- Analytics data for a given view (profile).
- GaDataColumnHeaders
- GaDataDataTable
- GaDataDataTableCols
- GaDataDataTableRows
- GaDataDataTableRowsC
- GaDataProfileInfo
- Information for the view (profile), for which the Analytics data was requested.
- GaDataQuery
- Analytics data request query parameters.
- Goal
- JSON template for Analytics goal resource.
- GoalEventDetails
- Details for the goal of the type EVENT.
- GoalEventDetailsEventConditions
- GoalParentLink
- Parent link for a goal.
- Goals
- A goal collection lists Analytics goals to which the user has access.
- GoalUrlDestinationDetails
- Details for the goal of the type URL_DESTINATION.
- GoalUrlDestinationDetailsSteps
- GoalVisitNumPagesDetails
- Details for the goal of the type VISIT_NUM_PAGES.
- GoalVisitTimeOnSiteDetails
- Details for the goal of the type VISIT_TIME_ON_SITE.
- HashClientIdRequest
- JSON template for a hash Client Id request resource.
- HashClientIdResponse
- JSON template for a hash Client Id response resource.
- IncludeConditions
- JSON template for an Analytics Remarketing Include Conditions.
- LinkedForeignAccount
- JSON template for an Analytics Remarketing Audience Foreign Link.
- ManagementAccountsResource
- ManagementAccountSummariesResource
- ManagementAccountUserLinksResource
- ManagementClientIdResource
- ManagementCustomDataSourcesResource
- ManagementCustomDimensionsResource
- ManagementCustomMetricsResource
- ManagementExperimentsResource
- ManagementFiltersResource
- ManagementGoalsResource
- ManagementProfileFilterLinksResource
- ManagementProfilesResource
- ManagementProfileUserLinksResource
- ManagementRemarketingAudienceResource
- ManagementResource
- ManagementSegmentsResource
- ManagementUnsampledReportsResource
- ManagementUploadsResource
- ManagementWebpropertiesResource
- ManagementWebPropertyAdWordsLinksResource
- ManagementWebpropertyUserLinksResource
- McfData
- Multi-Channel Funnels data for a given view (profile).
- McfDataColumnHeaders
- McfDataProfileInfo
- Information for the view (profile), for which the Analytics data was requested.
- McfDataQuery
- Analytics data request query parameters.
- McfDataRows
- A union object representing a dimension or metric value.
- McfDataRowsConversionPathValue
- Media
- Represents a media consisting of a stream of bytes, a content type and a length.
- MetadataColumnsResource
- MetadataResource
- PartialDownloadOptions
- Options for downloading a Media.
- Profile
- JSON template for an Analytics view (profile).
- ProfileChildLink
- Child link for this view (profile).
- ProfileFilterLink
- JSON template for an Analytics profile filter link.
- ProfileFilterLinks
- A profile filter link collection lists profile filter links between profiles and filters.
- ProfileParentLink
- Parent link for this view (profile).
- ProfilePermissions
- Permissions the user has for this view (profile).
- ProfileRef
- JSON template for a linked view (profile).
- Profiles
- A view (profile) collection lists Analytics views (profiles) to which the user has access.
- ProfileSummary
- JSON template for an Analytics ProfileSummary.
- ProvisioningResource
- RealtimeData
- Real time data for a given view (profile).
- RealtimeDataColumnHeaders
- RealtimeDataProfileInfo
- Information for the view (profile), for which the real time data was requested.
- RealtimeDataQuery
- Real time data request query parameters.
- RemarketingAudience
- JSON template for an Analytics remarketing audience.
- RemarketingAudienceAudienceDefinition
- The simple audience definition that will cause a user to be added to an audience.
- RemarketingAudiences
- A remarketing audience collection lists Analytics remarketing audiences to which the user has access.
- RemarketingAudienceStateBasedAudienceDefinition
- A state based audience definition that will cause a user to be added or removed from an audience.
- RemarketingAudienceStateBasedAudienceDefinitionExcludeConditions
- Defines the conditions to exclude users from the audience.
- ResumableUploadOptions
- Specifies options for resumable uploads.
- Segment
- JSON template for an Analytics segment.
- Segments
- An segment collection lists Analytics segments that the user has access to.
- UnsampledReport
- JSON template for Analytics unsampled report resource.
- UnsampledReportCloudStorageDownloadDetails
- Download details for a file stored in Google Cloud Storage.
- UnsampledReportDriveDownloadDetails
- Download details for a file stored in Google Drive.
- UnsampledReports
- An unsampled report collection lists Analytics unsampled reports to which the user has access.
- Upload
- Metadata returned for an upload operation.
- UploadOptions
- Represents options for uploading a Media.
- Uploads
- Upload collection lists Analytics uploads to which the user has access.
- UserDeletionRequest
- JSON template for a user deletion request resource.
- UserDeletionRequestId
- User ID.
- UserDeletionResource
- UserDeletionUserDeletionRequestResource
- UserRef
- JSON template for a user reference.
- Webproperties
- A web property collection lists Analytics web properties to which the user has access.
- Webproperty
- JSON template for an Analytics web property.
- WebpropertyChildLink
- Child link for this web property.
- WebpropertyParentLink
- Parent link for this web property.
- WebpropertyPermissions
- Permissions the user has for this web property.
- WebPropertyRef
- JSON template for a web property reference.
- WebPropertySummary
- JSON template for an Analytics WebPropertySummary.
Exceptions / Errors
- ApiRequestError
- Represents a general error reported by the API endpoint.
- DetailedApiRequestError
- Represents a specific error reported by the API endpoint.