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



1418
1419
1420
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 1418

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)


1395
1396
1397
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 1395

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)


1402
1403
1404
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 1402

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)


1409
1410
1411
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 1409

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>)


1416
1417
1418
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 1416

def new_video_defaults
  @new_video_defaults
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1423
1424
1425
1426
1427
1428
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 1423

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