Class: Google::Apis::Searchads360V23::GoogleAdsSearchads360V23ResourcesGoal

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

Representation of goals.

Instance Attribute Summary collapse

Instance Method Summary collapse

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_idFixnum

Output only. The ID of this goal. Corresponds to the JSON property goalId

Returns:

  • (Fixnum)


29363
29364
29365
# File 'lib/google/apis/searchads360_v23/classes.rb', line 29363

def goal_id
  @goal_id
end

#goal_typeString

Output only. The type of this goal. Corresponds to the JSON property goalType

Returns:

  • (String)


29368
29369
29370
# File 'lib/google/apis/searchads360_v23/classes.rb', line 29368

def goal_type
  @goal_type
end

#optimization_eligibilityString

Output only. Indicates if this goal is eligible for campaign optimization. Corresponds to the JSON property optimizationEligibility

Returns:

  • (String)


29373
29374
29375
# File 'lib/google/apis/searchads360_v23/classes.rb', line 29373

def optimization_eligibility
  @optimization_eligibility
end

#owner_customerString

Output only. The resource name of the goal owner customer. Corresponds to the JSON property ownerCustomer

Returns:

  • (String)


29378
29379
29380
# File 'lib/google/apis/searchads360_v23/classes.rb', line 29378

def owner_customer
  @owner_customer
end

#resource_nameString

Immutable. The resource name of the goal. Goal resource names have the form: customers/customer_id/goals/goal_id` Corresponds to the JSON propertyresourceName`

Returns:

  • (String)


29384
29385
29386
# File 'lib/google/apis/searchads360_v23/classes.rb', line 29384

def resource_name
  @resource_name
end

#retention_goal_settingsGoogle::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