Class: Google::Apis::AnalyticsadminV1beta::GoogleAnalyticsAdminV1betaCustomDimension
- Inherits:
-
Object
- Object
- Google::Apis::AnalyticsadminV1beta::GoogleAnalyticsAdminV1betaCustomDimension
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/analyticsadmin_v1beta/classes.rb,
lib/google/apis/analyticsadmin_v1beta/representations.rb,
lib/google/apis/analyticsadmin_v1beta/representations.rb
Overview
A definition for a CustomDimension.
Instance Attribute Summary collapse
-
#description ⇒ String
Optional.
-
#disallow_ads_personalization ⇒ Boolean
(also: #disallow_ads_personalization?)
Optional.
-
#display_name ⇒ String
Required.
-
#name ⇒ String
Output only.
-
#parameter_name ⇒ String
Required.
-
#scope ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleAnalyticsAdminV1betaCustomDimension
constructor
A new instance of GoogleAnalyticsAdminV1betaCustomDimension.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleAnalyticsAdminV1betaCustomDimension
Returns a new instance of GoogleAnalyticsAdminV1betaCustomDimension.
1036 1037 1038 |
# File 'lib/google/apis/analyticsadmin_v1beta/classes.rb', line 1036 def initialize(**args) update!(**args) end |
Instance Attribute Details
#description ⇒ String
Optional. Description for this custom dimension. Max length of 150 characters.
Corresponds to the JSON property description
996 997 998 |
# File 'lib/google/apis/analyticsadmin_v1beta/classes.rb', line 996 def description @description end |
#disallow_ads_personalization ⇒ Boolean Also known as: disallow_ads_personalization?
Optional. If set to true, sets this dimension as NPA and excludes it from ads
personalization. This is currently only supported by user-scoped custom
dimensions.
Corresponds to the JSON property disallowAdsPersonalization
1003 1004 1005 |
# File 'lib/google/apis/analyticsadmin_v1beta/classes.rb', line 1003 def disallow_ads_personalization @disallow_ads_personalization end |
#display_name ⇒ String
Required. Display name for this custom dimension as shown in the Analytics UI.
Max length of 82 characters, alphanumeric plus space and underscore starting
with a letter. Legacy system-generated display names may contain square
brackets, but updates to this field will never permit square brackets.
Corresponds to the JSON property displayName
1012 1013 1014 |
# File 'lib/google/apis/analyticsadmin_v1beta/classes.rb', line 1012 def display_name @display_name end |
#name ⇒ String
Output only. Resource name for this CustomDimension resource. Format:
properties/property
/customDimensions/customDimension
Corresponds to the JSON property name
1018 1019 1020 |
# File 'lib/google/apis/analyticsadmin_v1beta/classes.rb', line 1018 def name @name end |
#parameter_name ⇒ String
Required. Immutable. Tagging parameter name for this custom dimension. If this
is a user-scoped dimension, then this is the user property name. If this is an
event-scoped dimension, then this is the event parameter name. If this is an
item-scoped dimension, then this is the parameter name found in the eCommerce
items array. May only contain alphanumeric and underscore characters, starting
with a letter. Max length of 24 characters for user-scoped dimensions, 40
characters for event-scoped dimensions.
Corresponds to the JSON property parameterName
1029 1030 1031 |
# File 'lib/google/apis/analyticsadmin_v1beta/classes.rb', line 1029 def parameter_name @parameter_name end |
#scope ⇒ String
Required. Immutable. The scope of this dimension.
Corresponds to the JSON property scope
1034 1035 1036 |
# File 'lib/google/apis/analyticsadmin_v1beta/classes.rb', line 1034 def scope @scope end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1041 1042 1043 1044 1045 1046 1047 1048 |
# File 'lib/google/apis/analyticsadmin_v1beta/classes.rb', line 1041 def update!(**args) @description = args[:description] if args.key?(:description) @disallow_ads_personalization = args[:disallow_ads_personalization] if args.key?(:disallow_ads_personalization) @display_name = args[:display_name] if args.key?(:display_name) @name = args[:name] if args.key?(:name) @parameter_name = args[:parameter_name] if args.key?(:parameter_name) @scope = args[:scope] if args.key?(:scope) end |