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.



1565
1566
1567
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 1565

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



1546
1547
1548
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 1546

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



1552
1553
1554
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 1552

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)


1557
1558
1559
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 1557

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)


1563
1564
1565
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 1563

def kind
  @kind
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1570
1571
1572
1573
1574
1575
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 1570

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