Create a new client object for AnalyticsAdminService.
By default, this returns an instance of
Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client
for version V1alpha of the API.
However, you can specify specify a different API version by passing it in the
version parameter. If the AnalyticsAdminService service is
supported by that API version, and the corresponding gem is available, the
appropriate versioned client will be returned.
About AnalyticsAdminService
Service Interface for the Analytics Admin API (GA4).
Parameter
version (::String, ::Symbol) (defaults to: :v1alpha) — The API version to connect to. Optional.
Defaults to :v1alpha.
Returns
(AnalyticsAdminService::Client) — A client object for the specified version.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[],[],null,["# Google Analytics Admin API - Module Google::Analytics::Admin (v0.1.4)\n\nVersion latestkeyboard_arrow_down\n\n- [0.1.4 (latest)](/ruby/docs/reference/google-analytics-admin/latest/Google-Analytics-Admin)\n- [0.1.3](/ruby/docs/reference/google-analytics-admin/0.1.3/Google-Analytics-Admin) \nReference documentation and code samples for the Google Analytics Admin API module Google::Analytics::Admin.\n\nMethods\n-------\n\n### .analytics_admin_service\n\n def self.analytics_admin_service(version: :v1alpha, &block) -\u003e AnalyticsAdminService::Client\n\nCreate a new client object for AnalyticsAdminService.\n\n\n\u003cbr /\u003e\n\nBy default, this returns an instance of\n[Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client](https://googleapis.dev/ruby/google-analytics-admin-v1alpha/latest/Google/Analytics/Admin/V1alpha/AnalyticsAdminService/Client.html)\nfor version V1alpha of the API.\nHowever, you can specify specify a different API version by passing it in the\n`version` parameter. If the AnalyticsAdminService service is\nsupported by that API version, and the corresponding gem is available, the\nappropriate versioned client will be returned.\n\n#### About AnalyticsAdminService\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\nService Interface for the Analytics Admin API (GA4). \n**Parameter**\n\n- **version** (::String, ::Symbol) *(defaults to: :v1alpha)* --- The API version to connect to. Optional. Defaults to `:v1alpha`. \n**Returns**\n\n- (AnalyticsAdminService::Client) --- A client object for the specified version.\n\nConstants\n---------\n\n### VERSION\n\n**value:**\"0.1.4\""]]