Class: Google::Apis::Searchads360V23::GoogleAdsSearchads360V23ServicesApplyRecommendationOperationTargetRoasOptInParameters

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

Parameters to use when applying a Target ROAS opt-in recommendation.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleAdsSearchads360V23ServicesApplyRecommendationOperationTargetRoasOptInParameters

Returns a new instance of GoogleAdsSearchads360V23ServicesApplyRecommendationOperationTargetRoasOptInParameters.



35220
35221
35222
# File 'lib/google/apis/searchads360_v23/classes.rb', line 35220

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#new_campaign_budget_amount_microsFixnum

Optional, budget amount to set for the campaign. Corresponds to the JSON property newCampaignBudgetAmountMicros

Returns:

  • (Fixnum)


35211
35212
35213
# File 'lib/google/apis/searchads360_v23/classes.rb', line 35211

def new_campaign_budget_amount_micros
  @new_campaign_budget_amount_micros
end

#target_roasFloat

Average ROAS (revenue per unit of spend) to use for Target ROAS bidding strategy. The value is between 0.01 and 1000.0, inclusive. This is a required field, unless new_campaign_budget_amount_micros is set. Corresponds to the JSON property targetRoas

Returns:

  • (Float)


35218
35219
35220
# File 'lib/google/apis/searchads360_v23/classes.rb', line 35218

def target_roas
  @target_roas
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



35225
35226
35227
35228
# File 'lib/google/apis/searchads360_v23/classes.rb', line 35225

def update!(**args)
  @new_campaign_budget_amount_micros = args[:new_campaign_budget_amount_micros] if args.key?(:new_campaign_budget_amount_micros)
  @target_roas = args[:target_roas] if args.key?(:target_roas)
end