Class: Google::Apis::DisplayvideoV2::CampaignGoal
- Inherits:
-
Object
- Object
- Google::Apis::DisplayvideoV2::CampaignGoal
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/displayvideo_v2/classes.rb,
lib/google/apis/displayvideo_v2/representations.rb,
lib/google/apis/displayvideo_v2/representations.rb
Overview
Settings that control the goal of a campaign.
Instance Attribute Summary collapse
-
#campaign_goal_type ⇒ String
Required.
-
#performance_goal ⇒ Google::Apis::DisplayvideoV2::PerformanceGoal
Settings that control the performance goal of a campaign.
Instance Method Summary collapse
-
#initialize(**args) ⇒ CampaignGoal
constructor
A new instance of CampaignGoal.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ CampaignGoal
Returns a new instance of CampaignGoal.
2693 2694 2695 |
# File 'lib/google/apis/displayvideo_v2/classes.rb', line 2693 def initialize(**args) update!(**args) end |
Instance Attribute Details
#campaign_goal_type ⇒ String
Required. The type of the campaign goal.
Corresponds to the JSON property campaignGoalType
2686 2687 2688 |
# File 'lib/google/apis/displayvideo_v2/classes.rb', line 2686 def campaign_goal_type @campaign_goal_type end |
#performance_goal ⇒ Google::Apis::DisplayvideoV2::PerformanceGoal
Settings that control the performance goal of a campaign.
Corresponds to the JSON property performanceGoal
2691 2692 2693 |
# File 'lib/google/apis/displayvideo_v2/classes.rb', line 2691 def performance_goal @performance_goal end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2698 2699 2700 2701 |
# File 'lib/google/apis/displayvideo_v2/classes.rb', line 2698 def update!(**args) @campaign_goal_type = args[:campaign_goal_type] if args.key?(:campaign_goal_type) @performance_goal = args[:performance_goal] if args.key?(:performance_goal) end |