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.
29391 29392 29393 |
# File 'lib/google/apis/searchads360_v23/classes.rb', line 29391 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
29363 29364 29365 |
# File 'lib/google/apis/searchads360_v23/classes.rb', line 29363 def goal_id @goal_id end |
#goal_type ⇒ String
Output only. The type of this goal.
Corresponds to the JSON property goalType
29368 29369 29370 |
# File 'lib/google/apis/searchads360_v23/classes.rb', line 29368 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
29373 29374 29375 |
# File 'lib/google/apis/searchads360_v23/classes.rb', line 29373 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
29378 29379 29380 |
# File 'lib/google/apis/searchads360_v23/classes.rb', line 29378 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`
29384 29385 29386 |
# File 'lib/google/apis/searchads360_v23/classes.rb', line 29384 def resource_name @resource_name end |
#retention_goal_settings ⇒ Google::Apis::Searchads360V23::GoogleAdsSearchads360V23CommonGoalSettingRetentionGoal
Retention goal settings.
Corresponds to the JSON property retentionGoalSettings
29389 29390 29391 |
# File 'lib/google/apis/searchads360_v23/classes.rb', line 29389 def retention_goal_settings @retention_goal_settings end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
29396 29397 29398 29399 29400 29401 29402 29403 |
# File 'lib/google/apis/searchads360_v23/classes.rb', line 29396 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 |