class Google::Apis::DisplayvideoV1::Campaign
A single campaign.
Attributes
Output only. The unique ID of the advertiser the campaign belongs to. Corresponds to the JSON property `advertiserId` @return [Fixnum]
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>]
Settings that track the planned spend and duration of a campaign. Corresponds to the JSON property `campaignFlight` @return [Google::Apis::DisplayvideoV1::CampaignFlight]
Settings that control the goal of a campaign. Corresponds to the JSON property `campaignGoal` @return [Google::Apis::DisplayvideoV1::CampaignGoal]
Output only. The unique ID of the campaign. Assigned by the system. Corresponds to the JSON property `campaignId` @return [Fixnum]
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]
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]
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]
Output only. The resource name of the campaign. Corresponds to the JSON property `name` @return [String]
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
# File lib/google/apis/displayvideo_v1/classes.rb, line 2142 def initialize(**args) update!(**args) end
Public Instance Methods
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