Class: Google::Apis::YoutubePartnerV1::ContentOwnerAdvertisingOption
- Inherits:
-
Object
- Object
- Google::Apis::YoutubePartnerV1::ContentOwnerAdvertisingOption
- 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
-
#allowed_options ⇒ Google::Apis::YoutubePartnerV1::AllowedAdvertisingOptions
This object identifies the ad formats that the content owner is allowed to use.
-
#claimed_video_options ⇒ Google::Apis::YoutubePartnerV1::ClaimedVideoDefaults
This object identifies the advertising options used by default for the content owner's newly claimed videos.
-
#id ⇒ String
The value that YouTube uses to uniquely identify the content owner.
-
#kind ⇒ String
The type of the API resource.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ContentOwnerAdvertisingOption
constructor
A new instance of ContentOwnerAdvertisingOption.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
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_options ⇒ Google::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 end |
#claimed_video_options ⇒ Google::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 end |
#id ⇒ String
The value that YouTube uses to uniquely identify the content owner.
Corresponds to the JSON property id
1557 1558 1559 |
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 1557 def id @id end |
#kind ⇒ String
The type of the API resource. For this resource, the value is youtubePartner#
contentOwnerAdvertisingOption.
Corresponds to the JSON property kind
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 |