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.



7495
7496
7497
# File 'lib/google/apis/searchads360_v23/classes.rb', line 7495

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)


7487
7488
7489
# File 'lib/google/apis/searchads360_v23/classes.rb', line 7487

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)


7493
7494
7495
# File 'lib/google/apis/searchads360_v23/classes.rb', line 7493

def metric
  @metric
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



7500
7501
7502
7503
# File 'lib/google/apis/searchads360_v23/classes.rb', line 7500

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