class Google::Apis::AnalyticsV3::CustomDimension
JSON template for Analytics Custom Dimension.
Attributes
Account
ID. Corresponds to the JSON property `accountId` @return [String]
Boolean indicating whether the custom dimension is active. Corresponds to the JSON property `active` @return [Boolean]
Boolean indicating whether the custom dimension is active. Corresponds to the JSON property `active` @return [Boolean]
Time the custom dimension was created. Corresponds to the JSON property `created` @return [DateTime]
Custom dimension ID. Corresponds to the JSON property `id` @return [String]
Index of the custom dimension. Corresponds to the JSON property `index` @return [Fixnum]
Kind value for a custom dimension. Set to “analytics#customDimension”. It is a read-only field. Corresponds to the JSON property `kind` @return [String]
Name of the custom dimension. Corresponds to the JSON property `name` @return [String]
Parent link for the custom dimension. Points to the property to which the custom dimension belongs. Corresponds to the JSON property `parentLink` @return [Google::Apis::AnalyticsV3::CustomDimension::ParentLink]
Scope of the custom dimension: HIT, SESSION, USER or PRODUCT. Corresponds to the JSON property `scope` @return [String]
Link for the custom dimension Corresponds to the JSON property `selfLink` @return [String]
Time the custom dimension was last modified. Corresponds to the JSON property `updated` @return [DateTime]
Property ID. Corresponds to the JSON property `webPropertyId` @return [String]
Public Class Methods
# File lib/google/apis/analytics_v3/classes.rb, line 925 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File lib/google/apis/analytics_v3/classes.rb, line 930 def update!(**args) @account_id = args[:account_id] if args.key?(:account_id) @active = args[:active] if args.key?(:active) @created = args[:created] if args.key?(:created) @id = args[:id] if args.key?(:id) @index = args[:index] if args.key?(:index) @kind = args[:kind] if args.key?(:kind) @name = args[:name] if args.key?(:name) @parent_link = args[:parent_link] if args.key?(:parent_link) @scope = args[:scope] if args.key?(:scope) @self_link = args[:self_link] if args.key?(:self_link) @updated = args[:updated] if args.key?(:updated) @web_property_id = args[:web_property_id] if args.key?(:web_property_id) end