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.



35322
35323
35324
# File 'lib/google/apis/searchads360_v23/classes.rb', line 35322

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)


35313
35314
35315
# File 'lib/google/apis/searchads360_v23/classes.rb', line 35313

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)


35320
35321
35322
# File 'lib/google/apis/searchads360_v23/classes.rb', line 35320

def target_roas
  @target_roas
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



35327
35328
35329
35330
# File 'lib/google/apis/searchads360_v23/classes.rb', line 35327

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