Class: Google::Apis::AnalyticsV3::Goal
- Inherits:
 - 
      Object
      
        
- Object
 - Google::Apis::AnalyticsV3::Goal
 
 
- 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 Analytics goal resource.
Defined Under Namespace
Classes: EventDetails, ParentLink, UrlDestinationDetails, VisitNumPagesDetails, VisitTimeOnSiteDetails
Instance Attribute Summary collapse
- 
  
    
      #account_id  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Account ID to which this goal belongs.
 - 
  
    
      #active  ⇒ Boolean 
    
    
      (also: #active?)
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Determines whether this goal is active.
 - 
  
    
      #created  ⇒ DateTime 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Time this goal was created.
 - 
  
    
      #event_details  ⇒ Google::Apis::AnalyticsV3::Goal::EventDetails 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Details for the goal of the type EVENT.
 - 
  
    
      #id  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Goal ID.
 - 
  
    
      #internal_web_property_id  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Internal ID for the web property to which this goal belongs.
 - 
  
    
      #kind  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Resource type for an Analytics goal.
 - 
  
    
      #name  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Goal name.
 - 
  
    
      #parent_link  ⇒ Google::Apis::AnalyticsV3::Goal::ParentLink 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Parent link for a goal.
 - 
  
    
      #profile_id  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
View (Profile) ID to which this goal belongs.
 - 
  
    
      #self_link  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Link for this goal.
 - 
  
    
      #type  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Goal type.
 - 
  
    
      #updated  ⇒ DateTime 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Time this goal was last modified.
 - 
  
    
      #url_destination_details  ⇒ Google::Apis::AnalyticsV3::Goal::UrlDestinationDetails 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Details for the goal of the type URL_DESTINATION.
 - 
  
    
      #value  ⇒ Float 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Goal value.
 - 
  
    
      #visit_num_pages_details  ⇒ Google::Apis::AnalyticsV3::Goal::VisitNumPagesDetails 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Details for the goal of the type VISIT_NUM_PAGES.
 - 
  
    
      #visit_time_on_site_details  ⇒ Google::Apis::AnalyticsV3::Goal::VisitTimeOnSiteDetails 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Details for the goal of the type VISIT_TIME_ON_SITE.
 - 
  
    
      #web_property_id  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Web property ID to which this goal belongs.
 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ Goal 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    
A new instance of Goal.
 - 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    
Update properties of this object.
 
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ Goal
Returns a new instance of Goal
      3067 3068 3069  | 
    
      # File 'generated/google/apis/analytics_v3/classes.rb', line 3067 def initialize(**args) update!(**args) end  | 
  
Instance Attribute Details
#account_id ⇒ String
Account ID to which this goal belongs.
Corresponds to the JSON property accountId
      2976 2977 2978  | 
    
      # File 'generated/google/apis/analytics_v3/classes.rb', line 2976 def account_id @account_id end  | 
  
#active ⇒ Boolean Also known as: active?
Determines whether this goal is active.
Corresponds to the JSON property active
      2981 2982 2983  | 
    
      # File 'generated/google/apis/analytics_v3/classes.rb', line 2981 def active @active end  | 
  
#created ⇒ DateTime
Time this goal was created.
Corresponds to the JSON property created
      2987 2988 2989  | 
    
      # File 'generated/google/apis/analytics_v3/classes.rb', line 2987 def created @created end  | 
  
#event_details ⇒ Google::Apis::AnalyticsV3::Goal::EventDetails
Details for the goal of the type EVENT.
Corresponds to the JSON property eventDetails
      2992 2993 2994  | 
    
      # File 'generated/google/apis/analytics_v3/classes.rb', line 2992 def event_details @event_details end  | 
  
#id ⇒ String
Goal ID.
Corresponds to the JSON property id
      2997 2998 2999  | 
    
      # File 'generated/google/apis/analytics_v3/classes.rb', line 2997 def id @id end  | 
  
#internal_web_property_id ⇒ String
Internal ID for the web property to which this goal belongs.
Corresponds to the JSON property internalWebPropertyId
      3002 3003 3004  | 
    
      # File 'generated/google/apis/analytics_v3/classes.rb', line 3002 def internal_web_property_id @internal_web_property_id end  | 
  
#kind ⇒ String
Resource type for an Analytics goal.
Corresponds to the JSON property kind
      3007 3008 3009  | 
    
      # File 'generated/google/apis/analytics_v3/classes.rb', line 3007 def kind @kind end  | 
  
#name ⇒ String
Goal name.
Corresponds to the JSON property name
      3012 3013 3014  | 
    
      # File 'generated/google/apis/analytics_v3/classes.rb', line 3012 def name @name end  | 
  
#parent_link ⇒ Google::Apis::AnalyticsV3::Goal::ParentLink
Parent link for a goal. Points to the view (profile) to which this goal
belongs.
Corresponds to the JSON property parentLink
      3018 3019 3020  | 
    
      # File 'generated/google/apis/analytics_v3/classes.rb', line 3018 def parent_link @parent_link end  | 
  
#profile_id ⇒ String
View (Profile) ID to which this goal belongs.
Corresponds to the JSON property profileId
      3023 3024 3025  | 
    
      # File 'generated/google/apis/analytics_v3/classes.rb', line 3023 def profile_id @profile_id end  | 
  
#self_link ⇒ String
Link for this goal.
Corresponds to the JSON property selfLink
      3028 3029 3030  | 
    
      # File 'generated/google/apis/analytics_v3/classes.rb', line 3028 def self_link @self_link end  | 
  
#type ⇒ String
Goal type. Possible values are URL_DESTINATION, VISIT_TIME_ON_SITE,
VISIT_NUM_PAGES, AND EVENT.
Corresponds to the JSON property type
      3034 3035 3036  | 
    
      # File 'generated/google/apis/analytics_v3/classes.rb', line 3034 def type @type end  | 
  
#updated ⇒ DateTime
Time this goal was last modified.
Corresponds to the JSON property updated
      3039 3040 3041  | 
    
      # File 'generated/google/apis/analytics_v3/classes.rb', line 3039 def updated @updated end  | 
  
#url_destination_details ⇒ Google::Apis::AnalyticsV3::Goal::UrlDestinationDetails
Details for the goal of the type URL_DESTINATION.
Corresponds to the JSON property urlDestinationDetails
      3044 3045 3046  | 
    
      # File 'generated/google/apis/analytics_v3/classes.rb', line 3044 def url_destination_details @url_destination_details end  | 
  
#value ⇒ Float
Goal value.
Corresponds to the JSON property value
      3049 3050 3051  | 
    
      # File 'generated/google/apis/analytics_v3/classes.rb', line 3049 def value @value end  | 
  
#visit_num_pages_details ⇒ Google::Apis::AnalyticsV3::Goal::VisitNumPagesDetails
Details for the goal of the type VISIT_NUM_PAGES.
Corresponds to the JSON property visitNumPagesDetails
      3054 3055 3056  | 
    
      # File 'generated/google/apis/analytics_v3/classes.rb', line 3054 def visit_num_pages_details @visit_num_pages_details end  | 
  
#visit_time_on_site_details ⇒ Google::Apis::AnalyticsV3::Goal::VisitTimeOnSiteDetails
Details for the goal of the type VISIT_TIME_ON_SITE.
Corresponds to the JSON property visitTimeOnSiteDetails
      3059 3060 3061  | 
    
      # File 'generated/google/apis/analytics_v3/classes.rb', line 3059 def visit_time_on_site_details @visit_time_on_site_details end  | 
  
#web_property_id ⇒ String
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
      3065 3066 3067  | 
    
      # File 'generated/google/apis/analytics_v3/classes.rb', line 3065 def web_property_id @web_property_id end  | 
  
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
      3072 3073 3074 3075 3076 3077 3078 3079 3080 3081 3082 3083 3084 3085 3086 3087 3088 3089 3090 3091  | 
    
      # File 'generated/google/apis/analytics_v3/classes.rb', line 3072 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  |