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.


1527
1528
1529
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 1527

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


1508
1509
1510
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 1508

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


1514
1515
1516
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 1514

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)

1519
1520
1521
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 1519

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)

1525
1526
1527
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 1525

def kind
  @kind
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


1532
1533
1534
1535
1536
1537
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 1532

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