Class: Google::Apis::Searchads360V23::GoogleAdsSearchads360V23CommonMetricGoal
- Inherits:
-
Object
- Object
- Google::Apis::Searchads360V23::GoogleAdsSearchads360V23CommonMetricGoal
- 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
-
#direction ⇒ String
The metric direction of the goal.
-
#metric ⇒ String
The metric of the goal.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleAdsSearchads360V23CommonMetricGoal
constructor
A new instance of GoogleAdsSearchads360V23CommonMetricGoal.
-
#update!(**args) ⇒ Object
Update properties of this object.
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
#direction ⇒ String
The metric direction of the goal. For example, increase, decrease, no change.
Corresponds to the JSON property direction
7487 7488 7489 |
# File 'lib/google/apis/searchads360_v23/classes.rb', line 7487 def direction @direction end |
#metric ⇒ String
The metric of the goal. For example, clicks, impressions, cost, conversions,
etc.
Corresponds to the JSON property metric
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 |