Class: Google::Apis::YoutubePartnerV1::ClaimedVideoDefaults

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ ClaimedVideoDefaults

Returns a new instance of ClaimedVideoDefaults.


1347
1348
1349
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 1347

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

Instance Attribute Details

#auto_generated_breaksBoolean Also known as: auto_generated_breaks?

Set this property to true to enable automatically generated breaks for a newly claimed video longer than 10 minutes. The first partner that claims the video sets its default advertising options to that video. claimedVideoOptions. auto_generated_breaks_default Corresponds to the JSON property autoGeneratedBreaks

Returns:

  • (Boolean)

1324
1325
1326
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 1324

def auto_generated_breaks
  @auto_generated_breaks
end

#channel_overrideBoolean Also known as: channel_override?

Set this property to true to indicate that the channel's claimedVideoOptions can override the content owner's claimedVideoOptions. Corresponds to the JSON property channelOverride

Returns:

  • (Boolean)

1331
1332
1333
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 1331

def channel_override
  @channel_override
end

#kindString

Identifies this resource as default options for newly claimed video. Value: " youtubePartner#claimedVideoDefaults". Corresponds to the JSON property kind

Returns:

  • (String)

1338
1339
1340
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 1338

def kind
  @kind
end

#new_video_defaultsArray<String>

A list of ad formats that could be used as the default settings for a newly claimed video. The first partner that claims the video sets its default advertising options to that video. Corresponds to the JSON property newVideoDefaults

Returns:

  • (Array<String>)

1345
1346
1347
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 1345

def new_video_defaults
  @new_video_defaults
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


1352
1353
1354
1355
1356
1357
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 1352

def update!(**args)
  @auto_generated_breaks = args[:auto_generated_breaks] if args.key?(:auto_generated_breaks)
  @channel_override = args[:channel_override] if args.key?(:channel_override)
  @kind = args[:kind] if args.key?(:kind)
  @new_video_defaults = args[:new_video_defaults] if args.key?(:new_video_defaults)
end