Reference documentation and code samples for the Google Analytics Admin V1alpha API class Google::Analytics::Admin::V1alpha::CreateCustomMetricRequest.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-09 UTC."],[],[],null,["# Google Analytics Admin V1alpha API - Class Google::Analytics::Admin::V1alpha::CreateCustomMetricRequest (v0.11.0)\n\nVersion latestkeyboard_arrow_down\n\n- [0.11.0 (latest)](/ruby/docs/reference/google-analytics-admin-v1alpha/latest/Google-Analytics-Admin-V1alpha-CreateCustomMetricRequest)\n- [0.10.0](/ruby/docs/reference/google-analytics-admin-v1alpha/0.10.0/Google-Analytics-Admin-V1alpha-CreateCustomMetricRequest)\n- [0.9.1](/ruby/docs/reference/google-analytics-admin-v1alpha/0.9.1/Google-Analytics-Admin-V1alpha-CreateCustomMetricRequest) \nReference documentation and code samples for the Google Analytics Admin V1alpha API class Google::Analytics::Admin::V1alpha::CreateCustomMetricRequest.\n\nRequest message for CreateCustomMetric RPC. \n\nInherits\n--------\n\n- Object \n\nExtended By\n-----------\n\n- Google::Protobuf::MessageExts::ClassMethods \n\nIncludes\n--------\n\n- Google::Protobuf::MessageExts\n\nMethods\n-------\n\n### #custom_metric\n\n def custom_metric() -\u003e ::Google::Analytics::Admin::V1alpha::CustomMetric\n\n**Returns**\n\n- ([::Google::Analytics::Admin::V1alpha::CustomMetric](./Google-Analytics-Admin-V1alpha-CustomMetric)) --- Required. The CustomMetric to create.\n\n### #custom_metric=\n\n def custom_metric=(value) -\u003e ::Google::Analytics::Admin::V1alpha::CustomMetric\n\n**Parameter**\n\n- **value** ([::Google::Analytics::Admin::V1alpha::CustomMetric](./Google-Analytics-Admin-V1alpha-CustomMetric)) --- Required. The CustomMetric to create. \n**Returns**\n\n- ([::Google::Analytics::Admin::V1alpha::CustomMetric](./Google-Analytics-Admin-V1alpha-CustomMetric)) --- Required. The CustomMetric to create.\n\n### #parent\n\n def parent() -\u003e ::String\n\n**Returns**\n\n- (::String) --- Required. Example format: properties/1234\n\n### #parent=\n\n def parent=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::String) --- Required. Example format: properties/1234 \n**Returns**\n\n- (::String) --- Required. Example format: properties/1234"]]