Class: Google::Apis::AnalyticsV3::FilterExpression
- Inherits:
-
Object
- Object
- Google::Apis::AnalyticsV3::FilterExpression
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/analytics_v3/classes.rb,
generated/google/apis/analytics_v3/representations.rb,
generated/google/apis/analytics_v3/representations.rb
Overview
JSON template for an Analytics filter expression.
Instance Attribute Summary collapse
-
#case_sensitive ⇒ Boolean
(also: #case_sensitive?)
Determines if the filter is case sensitive.
-
#expression_value ⇒ String
Filter expression value Corresponds to the JSON property
expressionValue
. -
#field ⇒ String
Field to filter.
-
#field_index ⇒ Fixnum
The Index of the custom dimension.
-
#kind ⇒ String
Kind value for filter expression Corresponds to the JSON property
kind
. -
#match_type ⇒ String
Match type for this filter.
Instance Method Summary collapse
-
#initialize(**args) ⇒ FilterExpression
constructor
A new instance of FilterExpression.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ FilterExpression
Returns a new instance of FilterExpression
2371 2372 2373 |
# File 'generated/google/apis/analytics_v3/classes.rb', line 2371 def initialize(**args) update!(**args) end |
Instance Attribute Details
#case_sensitive ⇒ Boolean Also known as: case_sensitive?
Determines if the filter is case sensitive.
Corresponds to the JSON property caseSensitive
2253 2254 2255 |
# File 'generated/google/apis/analytics_v3/classes.rb', line 2253 def case_sensitive @case_sensitive end |
#expression_value ⇒ String
Filter expression value
Corresponds to the JSON property expressionValue
2259 2260 2261 |
# File 'generated/google/apis/analytics_v3/classes.rb', line 2259 def expression_value @expression_value end |
#field ⇒ String
Field to filter. Possible values:
- Content and Traffic
- PAGE_REQUEST_URI,
- PAGE_HOSTNAME,
- PAGE_TITLE,
- REFERRAL,
- COST_DATA_URI (Campaign target URL),
- HIT_TYPE,
- INTERNAL_SEARCH_TERM,
- INTERNAL_SEARCH_TYPE,
- SOURCE_PROPERTY_TRACKING_ID,
- Campaign or AdGroup
- CAMPAIGN_SOURCE,
- CAMPAIGN_MEDIUM,
- CAMPAIGN_NAME,
- CAMPAIGN_AD_GROUP,
- CAMPAIGN_TERM,
- CAMPAIGN_CONTENT,
- CAMPAIGN_CODE,
- CAMPAIGN_REFERRAL_PATH,
- E-Commerce
- TRANSACTION_COUNTRY,
- TRANSACTION_REGION,
- TRANSACTION_CITY,
- TRANSACTION_AFFILIATION (Store or order location),
- ITEM_NAME,
- ITEM_CODE,
- ITEM_VARIATION,
- TRANSACTION_ID,
- TRANSACTION_CURRENCY_CODE,
- PRODUCT_ACTION_TYPE,
- Audience/Users
- BROWSER,
- BROWSER_VERSION,
- BROWSER_SIZE,
- PLATFORM,
- PLATFORM_VERSION,
- LANGUAGE,
- SCREEN_RESOLUTION,
- SCREEN_COLORS,
- JAVA_ENABLED (Boolean Field),
- FLASH_VERSION,
- GEO_SPEED (Connection speed),
- VISITOR_TYPE,
- GEO_ORGANIZATION (ISP organization),
- GEO_DOMAIN,
- GEO_IP_ADDRESS,
- GEO_IP_VERSION,
- Location
- GEO_COUNTRY,
- GEO_REGION,
- GEO_CITY,
- Event
- EVENT_CATEGORY,
- EVENT_ACTION,
- EVENT_LABEL,
- Other
- CUSTOM_FIELD_1,
- CUSTOM_FIELD_2,
- USER_DEFINED_VALUE,
- Application
- APP_ID,
- APP_INSTALLER_ID,
- APP_NAME,
- APP_VERSION,
- SCREEN,
- IS_APP (Boolean Field),
- IS_FATAL_EXCEPTION (Boolean Field),
- EXCEPTION_DESCRIPTION,
- Mobile device
- IS_MOBILE (Boolean Field, Deprecated. Use DEVICE_CATEGORY=mobile),
- IS_TABLET (Boolean Field, Deprecated. Use DEVICE_CATEGORY=tablet),
- DEVICE_CATEGORY,
- MOBILE_HAS_QWERTY_KEYBOARD (Boolean Field),
- MOBILE_HAS_NFC_SUPPORT (Boolean Field),
- MOBILE_HAS_CELLULAR_RADIO (Boolean Field),
- MOBILE_HAS_WIFI_SUPPORT (Boolean Field),
- MOBILE_BRAND_NAME,
- MOBILE_MODEL_NAME,
- MOBILE_MARKETING_NAME,
- MOBILE_POINTING_METHOD,
- Social
- SOCIAL_NETWORK,
- SOCIAL_ACTION,
- SOCIAL_ACTION_TARGET,
- Custom dimension
- CUSTOM_DIMENSION (See accompanying field index),
Corresponds to the JSON property
field
2350 2351 2352 |
# File 'generated/google/apis/analytics_v3/classes.rb', line 2350 def field @field end |
#field_index ⇒ Fixnum
The Index of the custom dimension. Set only if the field is a is
CUSTOM_DIMENSION.
Corresponds to the JSON property fieldIndex
2356 2357 2358 |
# File 'generated/google/apis/analytics_v3/classes.rb', line 2356 def field_index @field_index end |
#kind ⇒ String
Kind value for filter expression
Corresponds to the JSON property kind
2361 2362 2363 |
# File 'generated/google/apis/analytics_v3/classes.rb', line 2361 def kind @kind end |
#match_type ⇒ String
Match type for this filter. Possible values are BEGINS_WITH, EQUAL, ENDS_WITH,
CONTAINS, or MATCHES. GEO_DOMAIN, GEO_IP_ADDRESS, PAGE_REQUEST_URI, or
PAGE_HOSTNAME filters can use any match type; all other filters must use
MATCHES.
Corresponds to the JSON property matchType
2369 2370 2371 |
# File 'generated/google/apis/analytics_v3/classes.rb', line 2369 def match_type @match_type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2376 2377 2378 2379 2380 2381 2382 2383 |
# File 'generated/google/apis/analytics_v3/classes.rb', line 2376 def update!(**args) @case_sensitive = args[:case_sensitive] if args.key?(:case_sensitive) @expression_value = args[:expression_value] if args.key?(:expression_value) @field = args[:field] if args.key?(:field) @field_index = args[:field_index] if args.key?(:field_index) @kind = args[:kind] if args.key?(:kind) @match_type = args[:match_type] if args.key?(:match_type) end |