class Google::Apis::YoutubePartnerV1::CampaignData

Attributes

campaign_source[RW]

The campaignSource object contains information about the assets for which the campaign will generate links. Corresponds to the JSON property `campaignSource` @return [Google::Apis::YoutubePartnerV1::CampaignSource]

expire_time[RW]

The time at which the campaign should expire. Do not specify a value if the campaign has no expiration time. Corresponds to the JSON property `expireTime` @return [String]

name[RW]

The user-given name of the campaign. Corresponds to the JSON property `name` @return [String]

promoted_content[RW]

A list of videos or channels that will be linked to from claimed videos that are included in the campaign. Corresponds to the JSON property `promotedContent` @return [Array<Google::Apis::YoutubePartnerV1::PromotedContent>]

start_time[RW]

The time at which the campaign should start. Do not specify a value if the campaign should start immediately. Corresponds to the JSON property `startTime` @return [String]

Public Class Methods

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

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/youtube_partner_v1/classes.rb, line 684
def update!(**args)
  @campaign_source = args[:campaign_source] if args.key?(:campaign_source)
  @expire_time = args[:expire_time] if args.key?(:expire_time)
  @name = args[:name] if args.key?(:name)
  @promoted_content = args[:promoted_content] if args.key?(:promoted_content)
  @start_time = args[:start_time] if args.key?(:start_time)
end