Class: Google::Apis::YoutubeV3::PromotedItem
- Inherits:
-
Object
- Object
- Google::Apis::YoutubeV3::PromotedItem
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/youtube_v3/classes.rb,
generated/google/apis/youtube_v3/representations.rb,
generated/google/apis/youtube_v3/representations.rb
Overview
Describes a single promoted item.
Instance Attribute Summary collapse
-
#custom_message ⇒ String
A custom message to display for this promotion.
-
#id ⇒ Google::Apis::YoutubeV3::PromotedItemId
Describes a single promoted item id.
-
#promoted_by_content_owner ⇒ Boolean
(also: #promoted_by_content_owner?)
If true, the content owner's name will be used when displaying the promotion.
-
#timing ⇒ Google::Apis::YoutubeV3::InvideoTiming
Describes a temporal position of a visual widget inside a video.
Instance Method Summary collapse
-
#initialize(**args) ⇒ PromotedItem
constructor
A new instance of PromotedItem.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ PromotedItem
Returns a new instance of PromotedItem.
5960 5961 5962 |
# File 'generated/google/apis/youtube_v3/classes.rb', line 5960 def initialize(**args) update!(**args) end |
Instance Attribute Details
#custom_message ⇒ String
A custom message to display for this promotion. This field is currently
ignored unless the promoted item is a website.
Corresponds to the JSON property customMessage
5940 5941 5942 |
# File 'generated/google/apis/youtube_v3/classes.rb', line 5940 def @custom_message end |
#id ⇒ Google::Apis::YoutubeV3::PromotedItemId
Describes a single promoted item id. It is a union of various possible types.
Corresponds to the JSON property id
5945 5946 5947 |
# File 'generated/google/apis/youtube_v3/classes.rb', line 5945 def id @id end |
#promoted_by_content_owner ⇒ Boolean Also known as: promoted_by_content_owner?
If true, the content owner's name will be used when displaying the promotion.
This field can only be set when the update is made on behalf of the content
owner.
Corresponds to the JSON property promotedByContentOwner
5952 5953 5954 |
# File 'generated/google/apis/youtube_v3/classes.rb', line 5952 def promoted_by_content_owner @promoted_by_content_owner end |
#timing ⇒ Google::Apis::YoutubeV3::InvideoTiming
Describes a temporal position of a visual widget inside a video.
Corresponds to the JSON property timing
5958 5959 5960 |
# File 'generated/google/apis/youtube_v3/classes.rb', line 5958 def timing @timing end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
5965 5966 5967 5968 5969 5970 |
# File 'generated/google/apis/youtube_v3/classes.rb', line 5965 def update!(**args) @custom_message = args[:custom_message] if args.key?(:custom_message) @id = args[:id] if args.key?(:id) @promoted_by_content_owner = args[:promoted_by_content_owner] if args.key?(:promoted_by_content_owner) @timing = args[:timing] if args.key?(:timing) end |