Class: Google::Apis::Searchads360V23::GoogleAdsSearchads360V23CommonMetricGoal

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/searchads360_v23/classes.rb,
lib/google/apis/searchads360_v23/representations.rb,
lib/google/apis/searchads360_v23/representations.rb

Overview

A metric goal for an experiment.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleAdsSearchads360V23CommonMetricGoal

Returns a new instance of GoogleAdsSearchads360V23CommonMetricGoal.



7555
7556
7557
# File 'lib/google/apis/searchads360_v23/classes.rb', line 7555

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

Instance Attribute Details

#directionString

The metric direction of the goal. For example, increase, decrease, no change. Corresponds to the JSON property direction

Returns:

  • (String)


7547
7548
7549
# File 'lib/google/apis/searchads360_v23/classes.rb', line 7547

def direction
  @direction
end

#metricString

The metric of the goal. For example, clicks, impressions, cost, conversions, etc. Corresponds to the JSON property metric

Returns:

  • (String)


7553
7554
7555
# File 'lib/google/apis/searchads360_v23/classes.rb', line 7553

def metric
  @metric
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



7560
7561
7562
7563
# File 'lib/google/apis/searchads360_v23/classes.rb', line 7560

def update!(**args)
  @direction = args[:direction] if args.key?(:direction)
  @metric = args[:metric] if args.key?(:metric)
end