Class: Google::Apis::YoutubePartnerV1::ContentOwnerAdvertisingOption

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

Returns a new instance of ContentOwnerAdvertisingOption



1598
1599
1600
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 1598

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

Instance Attribute Details

#allowed_optionsGoogle::Apis::YoutubePartnerV1::AllowedAdvertisingOptions

This object identifies the ad formats that the content owner is allowed to use. Corresponds to the JSON property allowedOptions



1579
1580
1581
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 1579

def allowed_options
  @allowed_options
end

#claimed_video_optionsGoogle::Apis::YoutubePartnerV1::ClaimedVideoDefaults

This object identifies the advertising options used by default for the content owner's newly claimed videos. Corresponds to the JSON property claimedVideoOptions



1585
1586
1587
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 1585

def claimed_video_options
  @claimed_video_options
end

#idString

The value that YouTube uses to uniquely identify the content owner. Corresponds to the JSON property id

Returns:

  • (String)


1590
1591
1592
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 1590

def id
  @id
end

#kindString

The type of the API resource. For this resource, the value is youtubePartner# contentOwnerAdvertisingOption. Corresponds to the JSON property kind

Returns:

  • (String)


1596
1597
1598
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 1596

def kind
  @kind
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1603
1604
1605
1606
1607
1608
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 1603

def update!(**args)
  @allowed_options = args[:allowed_options] if args.key?(:allowed_options)
  @claimed_video_options = args[:claimed_video_options] if args.key?(:claimed_video_options)
  @id = args[:id] if args.key?(:id)
  @kind = args[:kind] if args.key?(:kind)
end