Reference documentation and code samples for the Google Analytics Data API module Google::Analytics::Data.
Methods
.analytics_data
def self.analytics_data(version: :v1beta, &block) -> AnalyticsData::ClientCreate a new client object for AnalyticsData.
By default, this returns an instance of
Google::Analytics::Data::V1beta::AnalyticsData::Client
for version V1beta of the API.
However, you can specify specify a different API version by passing it in the
version parameter. If the AnalyticsData service is
supported by that API version, and the corresponding gem is available, the
appropriate versioned client will be returned.
About AnalyticsData
Google Analytics reporting data service.
-
version (::String, ::Symbol) (defaults to: :v1beta) — The API version to connect to. Optional.
Defaults to
:v1beta.
- (AnalyticsData::Client) — A client object for the specified version.
Constants
VERSION
value: "0.2.0"