class Google::Apis::YoutubeV3::PromotedItem
Describes a single promoted item.
Attributes
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` @return [String]
Describes a single promoted item id. It is a union of various possible types. Corresponds to the JSON property `id` @return [Google::Apis::YoutubeV3::PromotedItemId]
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` @return [Boolean]
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` @return [Boolean]
Describes a temporal position of a visual widget inside a video. Corresponds to the JSON property `timing` @return [Google::Apis::YoutubeV3::InvideoTiming]
Public Class Methods
# File generated/google/apis/youtube_v3/classes.rb, line 5781 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File generated/google/apis/youtube_v3/classes.rb, line 5786 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