class Google::Apis::AnalyticsV3::Goal
JSON template for Analytics goal resource.
Attributes
Account
ID to which this goal belongs. Corresponds to the JSON property `accountId` @return [String]
Determines whether this goal is active. Corresponds to the JSON property `active` @return [Boolean]
Determines whether this goal is active. Corresponds to the JSON property `active` @return [Boolean]
Time this goal was created. Corresponds to the JSON property `created` @return [DateTime]
Details for the goal of the type EVENT. Corresponds to the JSON property `eventDetails` @return [Google::Apis::AnalyticsV3::Goal::EventDetails]
Goal
ID. Corresponds to the JSON property `id` @return [String]
Internal ID for the web property to which this goal belongs. Corresponds to the JSON property `internalWebPropertyId` @return [String]
Resource type for an Analytics goal. Corresponds to the JSON property `kind` @return [String]
Goal
name. Corresponds to the JSON property `name` @return [String]
Parent link for a goal. Points to the view (profile) to which this goal belongs. Corresponds to the JSON property `parentLink` @return [Google::Apis::AnalyticsV3::Goal::ParentLink]
View (Profile
) ID to which this goal belongs. Corresponds to the JSON property `profileId` @return [String]
Link for this goal. Corresponds to the JSON property `selfLink` @return [String]
Goal
type. Possible values are URL_DESTINATION, VISIT_TIME_ON_SITE, VISIT_NUM_PAGES, AND EVENT. Corresponds to the JSON property `type` @return [String]
Time this goal was last modified. Corresponds to the JSON property `updated` @return [DateTime]
Details for the goal of the type URL_DESTINATION. Corresponds to the JSON property `urlDestinationDetails` @return [Google::Apis::AnalyticsV3::Goal::UrlDestinationDetails]
Goal
value. Corresponds to the JSON property `value` @return [Float]
Details for the goal of the type VISIT_NUM_PAGES. Corresponds to the JSON property `visitNumPagesDetails` @return [Google::Apis::AnalyticsV3::Goal::VisitNumPagesDetails]
Details for the goal of the type VISIT_TIME_ON_SITE. Corresponds to the JSON property `visitTimeOnSiteDetails` @return [Google::Apis::AnalyticsV3::Goal::VisitTimeOnSiteDetails]
Web property ID to which this goal belongs. The web property ID is of the form UA-XXXXX-YY. Corresponds to the JSON property `webPropertyId` @return [String]
Public Class Methods
# File lib/google/apis/analytics_v3/classes.rb, line 2973 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File lib/google/apis/analytics_v3/classes.rb, line 2978 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) @event_details = args[:event_details] if args.key?(:event_details) @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) @profile_id = args[:profile_id] if args.key?(:profile_id) @self_link = args[:self_link] if args.key?(:self_link) @type = args[:type] if args.key?(:type) @updated = args[:updated] if args.key?(:updated) @url_destination_details = args[:url_destination_details] if args.key?(:url_destination_details) @value = args[:value] if args.key?(:value) @visit_num_pages_details = args[:visit_num_pages_details] if args.key?(:visit_num_pages_details) @visit_time_on_site_details = args[:visit_time_on_site_details] if args.key?(:visit_time_on_site_details) @web_property_id = args[:web_property_id] if args.key?(:web_property_id) end