class Google::Apis::DisplayvideoV1::Campaign

A single campaign.

Attributes

advertiser_id[RW]

Output only. The unique ID of the advertiser the campaign belongs to. Corresponds to the JSON property `advertiserId` @return [Fixnum]

campaign_budgets[RW]

The list of budgets available to this campaign. If this field is not set, the campaign uses an unlimited budget. Corresponds to the JSON property `campaignBudgets` @return [Array<Google::Apis::DisplayvideoV1::CampaignBudget>]

campaign_flight[RW]

Settings that track the planned spend and duration of a campaign. Corresponds to the JSON property `campaignFlight` @return [Google::Apis::DisplayvideoV1::CampaignFlight]

campaign_goal[RW]

Settings that control the goal of a campaign. Corresponds to the JSON property `campaignGoal` @return [Google::Apis::DisplayvideoV1::CampaignGoal]

campaign_id[RW]

Output only. The unique ID of the campaign. Assigned by the system. Corresponds to the JSON property `campaignId` @return [Fixnum]

display_name[RW]

Required. The display name of the campaign. Must be UTF-8 encoded with a maximum size of 240 bytes. Corresponds to the JSON property `displayName` @return [String]

entity_status[RW]

Required. Controls whether or not the insertion orders under this campaign can spend their budgets and bid on inventory. * Accepted values are ` ENTITY_STATUS_ACTIVE`, `ENTITY_STATUS_ARCHIVED`, and `ENTITY_STATUS_PAUSED`. * For CreateCampaign method, `ENTITY_STATUS_ARCHIVED` is not allowed. Corresponds to the JSON property `entityStatus` @return [String]

frequency_cap[RW]

Settings that control the number of times a user may be shown with the same ad during a given time period. Corresponds to the JSON property `frequencyCap` @return [Google::Apis::DisplayvideoV1::FrequencyCap]

name[RW]

Output only. The resource name of the campaign. Corresponds to the JSON property `name` @return [String]

update_time[RW]

Output only. The timestamp when the campaign was last updated. Assigned by the system. Corresponds to the JSON property `updateTime` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/displayvideo_v1/classes.rb, line 2142
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/displayvideo_v1/classes.rb, line 2147
def update!(**args)
  @advertiser_id = args[:advertiser_id] if args.key?(:advertiser_id)
  @campaign_budgets = args[:campaign_budgets] if args.key?(:campaign_budgets)
  @campaign_flight = args[:campaign_flight] if args.key?(:campaign_flight)
  @campaign_goal = args[:campaign_goal] if args.key?(:campaign_goal)
  @campaign_id = args[:campaign_id] if args.key?(:campaign_id)
  @display_name = args[:display_name] if args.key?(:display_name)
  @entity_status = args[:entity_status] if args.key?(:entity_status)
  @frequency_cap = args[:frequency_cap] if args.key?(:frequency_cap)
  @name = args[:name] if args.key?(:name)
  @update_time = args[:update_time] if args.key?(:update_time)
end