Class: Google::Apis::AnalyticsV3::Profile

Inherits:
Object
  • Object
show all
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 view (profile).

Defined Under Namespace

Classes: ChildLink, ParentLink, Permissions

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ Profile

Returns a new instance of Profile



4055
4056
4057
# File 'generated/google/apis/analytics_v3/classes.rb', line 4055

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#account_idString

Account ID to which this view (profile) belongs. Corresponds to the JSON property accountId

Returns:

  • (String)


3911
3912
3913
# File 'generated/google/apis/analytics_v3/classes.rb', line 3911

def 
  @account_id
end

#bot_filtering_enabledBoolean Also known as: bot_filtering_enabled?

Indicates whether bot filtering is enabled for this view (profile). Corresponds to the JSON property botFilteringEnabled

Returns:

  • (Boolean)


3916
3917
3918
# File 'generated/google/apis/analytics_v3/classes.rb', line 3916

def bot_filtering_enabled
  @bot_filtering_enabled
end

Child link for this view (profile). Points to the list of goals for this view ( profile). Corresponds to the JSON property childLink



3923
3924
3925
# File 'generated/google/apis/analytics_v3/classes.rb', line 3923

def child_link
  @child_link
end

#createdDateTime

Time this view (profile) was created. Corresponds to the JSON property created

Returns:

  • (DateTime)


3928
3929
3930
# File 'generated/google/apis/analytics_v3/classes.rb', line 3928

def created
  @created
end

#currencyString

The currency type associated with this view (profile), defaults to USD. The supported values are: USD, JPY, EUR, GBP, AUD, KRW, BRL, CNY, DKK, RUB, SEK, NOK, PLN, TRY, TWD, HKD, THB, IDR, ARS, MXN, VND, PHP, INR, CHF, CAD, CZK, NZD, HUF, BGN, LTL, ZAR, UAH, AED, BOB, CLP, COP, EGP, HRK, ILS, MAD, MYR, PEN, PKR, RON, RSD, SAR, SGD, VEF, LVL Corresponds to the JSON property currency

Returns:

  • (String)


3938
3939
3940
# File 'generated/google/apis/analytics_v3/classes.rb', line 3938

def currency
  @currency
end

#default_pageString

Default page for this view (profile). Corresponds to the JSON property defaultPage

Returns:

  • (String)


3943
3944
3945
# File 'generated/google/apis/analytics_v3/classes.rb', line 3943

def default_page
  @default_page
end

#e_commerce_trackingBoolean Also known as: e_commerce_tracking?

Indicates whether ecommerce tracking is enabled for this view (profile). Corresponds to the JSON property eCommerceTracking

Returns:

  • (Boolean)


3948
3949
3950
# File 'generated/google/apis/analytics_v3/classes.rb', line 3948

def e_commerce_tracking
  @e_commerce_tracking
end

#enhanced_e_commerce_trackingBoolean Also known as: enhanced_e_commerce_tracking?

Indicates whether enhanced ecommerce tracking is enabled for this view ( profile). This property can only be enabled if ecommerce tracking is enabled. Corresponds to the JSON property enhancedECommerceTracking

Returns:

  • (Boolean)


3955
3956
3957
# File 'generated/google/apis/analytics_v3/classes.rb', line 3955

def enhanced_e_commerce_tracking
  @enhanced_e_commerce_tracking
end

#exclude_query_parametersString

The query parameters that are excluded from this view (profile). Corresponds to the JSON property excludeQueryParameters

Returns:

  • (String)


3961
3962
3963
# File 'generated/google/apis/analytics_v3/classes.rb', line 3961

def exclude_query_parameters
  @exclude_query_parameters
end

#idString

View (Profile) ID. Corresponds to the JSON property id

Returns:

  • (String)


3966
3967
3968
# File 'generated/google/apis/analytics_v3/classes.rb', line 3966

def id
  @id
end

#internal_web_property_idString

Internal ID for the web property to which this view (profile) belongs. Corresponds to the JSON property internalWebPropertyId

Returns:

  • (String)


3971
3972
3973
# File 'generated/google/apis/analytics_v3/classes.rb', line 3971

def internal_web_property_id
  @internal_web_property_id
end

#kindString

Resource type for Analytics view (profile). Corresponds to the JSON property kind

Returns:

  • (String)


3976
3977
3978
# File 'generated/google/apis/analytics_v3/classes.rb', line 3976

def kind
  @kind
end

#nameString

Name of this view (profile). Corresponds to the JSON property name

Returns:

  • (String)


3981
3982
3983
# File 'generated/google/apis/analytics_v3/classes.rb', line 3981

def name
  @name
end

Parent link for this view (profile). Points to the web property to which this view (profile) belongs. Corresponds to the JSON property parentLink



3987
3988
3989
# File 'generated/google/apis/analytics_v3/classes.rb', line 3987

def parent_link
  @parent_link
end

#permissionsGoogle::Apis::AnalyticsV3::Profile::Permissions

Permissions the user has for this view (profile). Corresponds to the JSON property permissions



3992
3993
3994
# File 'generated/google/apis/analytics_v3/classes.rb', line 3992

def permissions
  @permissions
end

Link for this view (profile). Corresponds to the JSON property selfLink

Returns:

  • (String)


3997
3998
3999
# File 'generated/google/apis/analytics_v3/classes.rb', line 3997

def self_link
  @self_link
end

#site_search_category_parametersString

Site search category parameters for this view (profile). Corresponds to the JSON property siteSearchCategoryParameters

Returns:

  • (String)


4002
4003
4004
# File 'generated/google/apis/analytics_v3/classes.rb', line 4002

def site_search_category_parameters
  @site_search_category_parameters
end

#site_search_query_parametersString

The site search query parameters for this view (profile). Corresponds to the JSON property siteSearchQueryParameters

Returns:

  • (String)


4007
4008
4009
# File 'generated/google/apis/analytics_v3/classes.rb', line 4007

def site_search_query_parameters
  @site_search_query_parameters
end

#starredBoolean Also known as: starred?

Indicates whether this view (profile) is starred or not. Corresponds to the JSON property starred

Returns:

  • (Boolean)


4012
4013
4014
# File 'generated/google/apis/analytics_v3/classes.rb', line 4012

def starred
  @starred
end

#strip_site_search_category_parametersBoolean Also known as: strip_site_search_category_parameters?

Whether or not Analytics will strip search category parameters from the URLs in your reports. Corresponds to the JSON property stripSiteSearchCategoryParameters

Returns:

  • (Boolean)


4019
4020
4021
# File 'generated/google/apis/analytics_v3/classes.rb', line 4019

def strip_site_search_category_parameters
  @strip_site_search_category_parameters
end

#strip_site_search_query_parametersBoolean Also known as: strip_site_search_query_parameters?

Whether or not Analytics will strip search query parameters from the URLs in your reports. Corresponds to the JSON property stripSiteSearchQueryParameters

Returns:

  • (Boolean)


4026
4027
4028
# File 'generated/google/apis/analytics_v3/classes.rb', line 4026

def strip_site_search_query_parameters
  @strip_site_search_query_parameters
end

#timezoneString

Time zone for which this view (profile) has been configured. Time zones are identified by strings from the TZ database. Corresponds to the JSON property timezone

Returns:

  • (String)


4033
4034
4035
# File 'generated/google/apis/analytics_v3/classes.rb', line 4033

def timezone
  @timezone
end

#typeString

View (Profile) type. Supported types: WEB or APP. Corresponds to the JSON property type

Returns:

  • (String)


4038
4039
4040
# File 'generated/google/apis/analytics_v3/classes.rb', line 4038

def type
  @type
end

#updatedDateTime

Time this view (profile) was last modified. Corresponds to the JSON property updated

Returns:

  • (DateTime)


4043
4044
4045
# File 'generated/google/apis/analytics_v3/classes.rb', line 4043

def updated
  @updated
end

#web_property_idString

Web property ID of the form UA-XXXXX-YY to which this view (profile) belongs. Corresponds to the JSON property webPropertyId

Returns:

  • (String)


4048
4049
4050
# File 'generated/google/apis/analytics_v3/classes.rb', line 4048

def web_property_id
  @web_property_id
end

#website_urlString

Website URL for this view (profile). Corresponds to the JSON property websiteUrl

Returns:

  • (String)


4053
4054
4055
# File 'generated/google/apis/analytics_v3/classes.rb', line 4053

def website_url
  @website_url
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4060
4061
4062
4063
4064
4065
4066
4067
4068
4069
4070
4071
4072
4073
4074
4075
4076
4077
4078
4079
4080
4081
4082
4083
4084
4085
4086
4087
# File 'generated/google/apis/analytics_v3/classes.rb', line 4060

def update!(**args)
  @account_id = args[:account_id] if args.key?(:account_id)
  @bot_filtering_enabled = args[:bot_filtering_enabled] if args.key?(:bot_filtering_enabled)
  @child_link = args[:child_link] if args.key?(:child_link)
  @created = args[:created] if args.key?(:created)
  @currency = args[:currency] if args.key?(:currency)
  @default_page = args[:default_page] if args.key?(:default_page)
  @e_commerce_tracking = args[:e_commerce_tracking] if args.key?(:e_commerce_tracking)
  @enhanced_e_commerce_tracking = args[:enhanced_e_commerce_tracking] if args.key?(:enhanced_e_commerce_tracking)
  @exclude_query_parameters = args[:exclude_query_parameters] if args.key?(:exclude_query_parameters)
  @id = args[:id] if args.key?(:id)
  @internal_web_property_id = args[:internal_web_property_id] if args.key?(:internal_web_property_id)
  @kind = args[:kind] if args.key?(:kind)
  @name = args[:name] if args.key?(:name)
  @parent_link = args[:parent_link] if args.key?(:parent_link)
  @permissions = args[:permissions] if args.key?(:permissions)
  @self_link = args[:self_link] if args.key?(:self_link)
  @site_search_category_parameters = args[:site_search_category_parameters] if args.key?(:site_search_category_parameters)
  @site_search_query_parameters = args[:site_search_query_parameters] if args.key?(:site_search_query_parameters)
  @starred = args[:starred] if args.key?(:starred)
  @strip_site_search_category_parameters = args[:strip_site_search_category_parameters] if args.key?(:strip_site_search_category_parameters)
  @strip_site_search_query_parameters = args[:strip_site_search_query_parameters] if args.key?(:strip_site_search_query_parameters)
  @timezone = args[:timezone] if args.key?(:timezone)
  @type = args[:type] if args.key?(:type)
  @updated = args[:updated] if args.key?(:updated)
  @web_property_id = args[:web_property_id] if args.key?(:web_property_id)
  @website_url = args[:website_url] if args.key?(:website_url)
end