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.



29560
29561
29562
# File 'lib/google/apis/searchads360_v23/classes.rb', line 29560

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)


29532
29533
29534
# File 'lib/google/apis/searchads360_v23/classes.rb', line 29532

def goal_id
  @goal_id
end

#goal_typeString

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

Returns:

  • (String)


29537
29538
29539
# File 'lib/google/apis/searchads360_v23/classes.rb', line 29537

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)


29542
29543
29544
# File 'lib/google/apis/searchads360_v23/classes.rb', line 29542

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)


29547
29548
29549
# File 'lib/google/apis/searchads360_v23/classes.rb', line 29547

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)


29553
29554
29555
# File 'lib/google/apis/searchads360_v23/classes.rb', line 29553

def resource_name
  @resource_name
end

#retention_goal_settingsGoogle::Apis::Searchads360V23::GoogleAdsSearchads360V23CommonGoalSettingRetentionGoal

Retention goal settings. Corresponds to the JSON property retentionGoalSettings



29558
29559
29560
# File 'lib/google/apis/searchads360_v23/classes.rb', line 29558

def retention_goal_settings
  @retention_goal_settings
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



29565
29566
29567
29568
29569
29570
29571
29572
# File 'lib/google/apis/searchads360_v23/classes.rb', line 29565

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