Class: Google::Apis::Searchads360V23::GoogleAdsSearchads360V23ResourcesGoal
- Inherits:
-
Object
- Object
- Google::Apis::Searchads360V23::GoogleAdsSearchads360V23ResourcesGoal
- 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
Representation of goals.
Instance Attribute Summary collapse
-
#goal_id ⇒ Fixnum
Output only.
-
#goal_type ⇒ String
Output only.
-
#optimization_eligibility ⇒ String
Output only.
-
#owner_customer ⇒ String
Output only.
-
#resource_name ⇒ String
Immutable.
-
#retention_goal_settings ⇒ Google::Apis::Searchads360V23::GoogleAdsSearchads360V23CommonGoalSettingRetentionGoal
Retention goal settings.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleAdsSearchads360V23ResourcesGoal
constructor
A new instance of GoogleAdsSearchads360V23ResourcesGoal.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleAdsSearchads360V23ResourcesGoal
Returns a new instance of GoogleAdsSearchads360V23ResourcesGoal.
29488 29489 29490 |
# File 'lib/google/apis/searchads360_v23/classes.rb', line 29488 def initialize(**args) update!(**args) end |
Instance Attribute Details
#goal_id ⇒ Fixnum
Output only. The ID of this goal.
Corresponds to the JSON property goalId
29460 29461 29462 |
# File 'lib/google/apis/searchads360_v23/classes.rb', line 29460 def goal_id @goal_id end |
#goal_type ⇒ String
Output only. The type of this goal.
Corresponds to the JSON property goalType
29465 29466 29467 |
# File 'lib/google/apis/searchads360_v23/classes.rb', line 29465 def goal_type @goal_type end |
#optimization_eligibility ⇒ String
Output only. Indicates if this goal is eligible for campaign optimization.
Corresponds to the JSON property optimizationEligibility
29470 29471 29472 |
# File 'lib/google/apis/searchads360_v23/classes.rb', line 29470 def optimization_eligibility @optimization_eligibility end |
#owner_customer ⇒ String
Output only. The resource name of the goal owner customer.
Corresponds to the JSON property ownerCustomer
29475 29476 29477 |
# File 'lib/google/apis/searchads360_v23/classes.rb', line 29475 def owner_customer @owner_customer end |
#resource_name ⇒ String
Immutable. The resource name of the goal. Goal resource names have the form:
customers/customer_id/goals/goal_id`
Corresponds to the JSON propertyresourceName`
29481 29482 29483 |
# File 'lib/google/apis/searchads360_v23/classes.rb', line 29481 def resource_name @resource_name end |
#retention_goal_settings ⇒ Google::Apis::Searchads360V23::GoogleAdsSearchads360V23CommonGoalSettingRetentionGoal
Retention goal settings.
Corresponds to the JSON property retentionGoalSettings
29486 29487 29488 |
# File 'lib/google/apis/searchads360_v23/classes.rb', line 29486 def retention_goal_settings @retention_goal_settings end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
29493 29494 29495 29496 29497 29498 29499 29500 |
# File 'lib/google/apis/searchads360_v23/classes.rb', line 29493 def update!(**args) @goal_id = args[:goal_id] if args.key?(:goal_id) @goal_type = args[:goal_type] if args.key?(:goal_type) @optimization_eligibility = args[:optimization_eligibility] if args.key?(:optimization_eligibility) @owner_customer = args[:owner_customer] if args.key?(:owner_customer) @resource_name = args[:resource_name] if args.key?(:resource_name) @retention_goal_settings = args[:retention_goal_settings] if args.key?(:retention_goal_settings) end |