Class: Google::Apis::DisplayvideoV1::CampaignGoal

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/displayvideo_v1/classes.rb,
lib/google/apis/displayvideo_v1/representations.rb,
lib/google/apis/displayvideo_v1/representations.rb

Overview

Settings that control the goal of a campaign.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ CampaignGoal

Returns a new instance of CampaignGoal.



2375
2376
2377
# File 'lib/google/apis/displayvideo_v1/classes.rb', line 2375

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

Instance Attribute Details

#campaign_goal_typeString

Required. The type of the campaign goal. Corresponds to the JSON property campaignGoalType

Returns:

  • (String)


2368
2369
2370
# File 'lib/google/apis/displayvideo_v1/classes.rb', line 2368

def campaign_goal_type
  @campaign_goal_type
end

#performance_goalGoogle::Apis::DisplayvideoV1::PerformanceGoal

Settings that control the performance goal of a campaign or insertion order. Corresponds to the JSON property performanceGoal



2373
2374
2375
# File 'lib/google/apis/displayvideo_v1/classes.rb', line 2373

def performance_goal
  @performance_goal
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2380
2381
2382
2383
# File 'lib/google/apis/displayvideo_v1/classes.rb', line 2380

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