class Google::Apis::AnalyticsV3::Goal

JSON template for Analytics goal resource.

Attributes

account_id[RW]

Account ID to which this goal belongs. Corresponds to the JSON property `accountId` @return [String]

active[RW]

Determines whether this goal is active. Corresponds to the JSON property `active` @return [Boolean]

active?[RW]

Determines whether this goal is active. Corresponds to the JSON property `active` @return [Boolean]

created[RW]

Time this goal was created. Corresponds to the JSON property `created` @return [DateTime]

event_details[RW]

Details for the goal of the type EVENT. Corresponds to the JSON property `eventDetails` @return [Google::Apis::AnalyticsV3::Goal::EventDetails]

id[RW]

Goal ID. Corresponds to the JSON property `id` @return [String]

internal_web_property_id[RW]

Internal ID for the web property to which this goal belongs. Corresponds to the JSON property `internalWebPropertyId` @return [String]

kind[RW]

Resource type for an Analytics goal. Corresponds to the JSON property `kind` @return [String]

name[RW]

Goal name. Corresponds to the JSON property `name` @return [String]

profile_id[RW]

View (Profile) ID to which this goal belongs. Corresponds to the JSON property `profileId` @return [String]

type[RW]

Goal type. Possible values are URL_DESTINATION, VISIT_TIME_ON_SITE, VISIT_NUM_PAGES, AND EVENT. Corresponds to the JSON property `type` @return [String]

updated[RW]

Time this goal was last modified. Corresponds to the JSON property `updated` @return [DateTime]

url_destination_details[RW]

Details for the goal of the type URL_DESTINATION. Corresponds to the JSON property `urlDestinationDetails` @return [Google::Apis::AnalyticsV3::Goal::UrlDestinationDetails]

value[RW]

Goal value. Corresponds to the JSON property `value` @return [Float]

visit_num_pages_details[RW]

Details for the goal of the type VISIT_NUM_PAGES. Corresponds to the JSON property `visitNumPagesDetails` @return [Google::Apis::AnalyticsV3::Goal::VisitNumPagesDetails]

visit_time_on_site_details[RW]

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[RW]

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

new(**args) click to toggle source
# File lib/google/apis/analytics_v3/classes.rb, line 2973
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

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